tag:blogger.com,1999:blog-3924739636407907202.post394374280931448483..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: NUnitEx: assertion.Should().Satisfy(lambda);Fabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3924739636407907202.post-56081118092922512842009-05-04T16:21:00.000-03:002009-05-04T16:21:00.000-03:00terrific: tremendous, wonderful, wondrous.
Yes, I...terrific: tremendous, wonderful, wondrous.<br /><br />Yes, I know but if you add something like this:<br /><br />[Obsolete]<br />public override bool Equals(object obj)<br />{<br /> return base.Equals(obj);<br />}<br /><br />If you write -> "Should().Be.Eq.." , "Equals" will appear strikethrough....And if you still try to use, then you will have a compiler warning.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-48174040223545909512009-05-04T15:36:00.000-03:002009-05-04T15:36:00.000-03:00what do you mean with "The syntax is terrific" ?
...what do you mean with "The syntax is terrific" ?<br /><br />The old impl was "Equal" and not "Equals". I have tried to remove System.Object's methods from intellisense but, so far, without lucky.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-90046284379540338972009-05-04T15:20:00.000-03:002009-05-04T15:20:00.000-03:00The syntax is terrific. However, I found a very li...The syntax is terrific. However, I found a very little problem with this:<br /><br />"foo".Should().Be.Equals("bar");<br /><br />Note that I wrote inadvertently "Equals" and not "EqualTo". This is very very very similar. IMHO: Two options for me override "Equals" or add obsolete attributte.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-72953647739788006732009-04-19T06:50:00.000-03:002009-04-19T06:50:00.000-03:00I still hate that you should use () for C# to be a...I still hate that you should use () for C# to be able to compile...excepting this i think this can help readability of tests, although i didn't use it and i'm still not sure it will be better than the traditional asserts...<br />I'll let you know after trying it :)Gustavo Ringelhttps://www.blogger.com/profile/13441986755970832372noreply@blogger.com