{"action":"created","issue":{"url":"https://api.github.com/repos/tpierrain/NFluent/issues/166","repository_url":"https://api.github.com/repos/tpierrain/NFluent","labels_url":"https://api.github.com/repos/tpierrain/NFluent/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/tpierrain/NFluent/issues/166/comments","events_url":"https://api.github.com/repos/tpierrain/NFluent/issues/166/events","html_url":"https://github.com/tpierrain/NFluent/issues/166","id":177411374,"number":166,"title":"Explicit Fail Message","user":{"login":"Ouarzy","id":3096569,"avatar_url":"https://avatars1.githubusercontent.com/u/3096569?v=4","gravatar_id":"","url":"https://api.github.com/users/Ouarzy","html_url":"https://github.com/Ouarzy","followers_url":"https://api.github.com/users/Ouarzy/followers","following_url":"https://api.github.com/users/Ouarzy/following{/other_user}","gists_url":"https://api.github.com/users/Ouarzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ouarzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ouarzy/subscriptions","organizations_url":"https://api.github.com/users/Ouarzy/orgs","repos_url":"https://api.github.com/users/Ouarzy/repos","events_url":"https://api.github.com/users/Ouarzy/events{/privacy}","received_events_url":"https://api.github.com/users/Ouarzy/received_events","type":"User","site_admin":false},"labels":[{"id":36977116,"url":"https://api.github.com/repos/tpierrain/NFluent/labels/new%20feature","name":"new feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-16T12:15:42Z","updated_at":"2018-05-08T14:05:23Z","closed_at":null,"author_association":"NONE","body":"Hi guyz,\n\nA little improvement that may be more user friendly when we have a few thousands tests to track, may be to add an explicit message when a test fail.\n\nFor example the default message when this test :\n`Check.That(person.HasAName).IsTrue();\n`\nFail is:\n\n> \"The checked boolean is false whereas it must be true.\"\n\nI would prefer Something like:\n\n>  \"The person has no name\"\n\nIt would be a feature similar to this code in Xunit:\n`Assert.True(person.HasAName, \"The person has no name\");`\n\nI am still looking for a fluent syntax for that.\nWhat about:\n`Check.That(person.HasAName).IsTrue().DisplayOnFailure(\"The person has no name\");\n`\n"},"comment":{"url":"https://api.github.com/repos/tpierrain/NFluent/issues/comments/387413976","html_url":"https://github.com/tpierrain/NFluent/issues/166#issuecomment-387413976","issue_url":"https://api.github.com/repos/tpierrain/NFluent/issues/166","id":387413976,"user":{"login":"dupdob","id":3131866,"avatar_url":"https://avatars1.githubusercontent.com/u/3131866?v=4","gravatar_id":"","url":"https://api.github.com/users/dupdob","html_url":"https://github.com/dupdob","followers_url":"https://api.github.com/users/dupdob/followers","following_url":"https://api.github.com/users/dupdob/following{/other_user}","gists_url":"https://api.github.com/users/dupdob/gists{/gist_id}","starred_url":"https://api.github.com/users/dupdob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dupdob/subscriptions","organizations_url":"https://api.github.com/users/dupdob/orgs","repos_url":"https://api.github.com/users/dupdob/repos","events_url":"https://api.github.com/users/dupdob/events{/privacy}","received_events_url":"https://api.github.com/users/dupdob/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T14:05:23Z","updated_at":"2018-05-08T14:05:23Z","author_association":"COLLABORATOR","body":"_As_ already exists in NFluent (see the [wiki](https://github.com/tpierrain/NFluent/wiki/Custom-Messages#as)). Can't remember when it was added, but it has been there for quite some time now. \r\nIt does not support string formatting like its java counterpart, but I do not think this is an issue.\r\n\r\nUsing the sample you provide, one could use:\r\n```csharp\r\n            Check.That(validationResult.IsValid).As(\"Validity status\").IsFalse();\r\n```\r\nIt could raise:\r\nThe checked [validity status] is true whereas it must be false.\r\n"}}
{"actor":{"display_login":"dupdob"}}