tag:blogger.com,1999:blog-3924739636407907202.post6590486906456408705..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: NUnitEx : NewsFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3924739636407907202.post-24766612873300683382009-03-23T13:47:00.000-03:002009-03-23T13:47:00.000-03:00Do you mean something like this ?http://code.googl...Do you mean something like this ?<BR/>http://code.google.com/p/nunitex/source/browse/trunk/NUnitEx/NUnitEx.Tests/StringConstraintsFixture.cs<BR/><BR/>100% code (well... today is 99%)Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-43186112895638837712009-03-23T13:41:00.000-03:002009-03-23T13:41:00.000-03:00Cool!. I'm not really used to Extension Methods ye...Cool!. I'm not really used to Extension Methods yet...<BR/>I've never tried it, but somewhere must be a simple test that proves it works.<BR/>Thanks Tano.Diego Jancichttps://www.blogger.com/profile/05757820946421364916noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-79757452095816564172009-03-23T13:32:00.000-03:002009-03-23T13:32:00.000-03:00@DiegoYes, you are. ;)@Diego<BR/>Yes, you are. ;)Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-31471733468305595192009-03-23T13:11:00.000-03:002009-03-23T13:11:00.000-03:00string somethig;......somethig.Should().Be.Null();...string somethig;<BR/>......<BR/>somethig.Should().Be.Null();<BR/><BR/>It does not have sense... because if "something" is null it will throw an exception :). Am I wrong?Diego Jancichttps://www.blogger.com/profile/05757820946421364916noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-40425932400152946672009-03-22T17:55:00.000-03:002009-03-22T17:55:00.000-03:00I like every one but this:actual.Should().Be.Equal...I like every one but this:<BR/>actual.Should().Be.Equal(something);<BR/><BR/>Can't it be EqualTo?Gustavo Ringelhttps://www.blogger.com/profile/13441986755970832372noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-12866321916204739192009-03-22T14:08:00.000-03:002009-03-22T14:08:00.000-03:00I know that, but for newbies to testing, actual do...I know that, but for newbies to testing, actual doesnt mean anyting. But everyone can relate to testing a result.<BR/><BR/>But this is beside this good blog.<BR/><BR/>You do a fantastic job.<BR/><BR/>BennyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-81989196432662407882009-03-22T10:45:00.000-03:002009-03-22T10:45:00.000-03:00Well... in the post "actual" is only to be short a...Well... in the post "actual" is only to be short and it represent the variable you are testing.<BR/>For example:<BR/>string somethig;<BR/>......<BR/>somethig.Should().StartsWith("Benn");Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-88184598219641541622009-03-22T10:41:00.000-03:002009-03-22T10:41:00.000-03:00I don't like the name actual. I feel result is mor...I don't like the name actual. I feel result is more compelling and tells me more about what we are testing<BR/><BR/>But I kind of like this approach.Anonymousnoreply@blogger.com