Re: RFC: PropertyConstraint breaking change

Cory Foy <[email protected]> Wed, 03 Sep 2008 23:09:05 -0400
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
Hi Charlie,

Charlie Poole wrote:
> I plan to remove the following syntactic examples
> 
>   Has.Property("X", value)
>   Has.Length(value)
>   Has.Count(value)
> 
> The new syntax is
> 
>   Has.Property("x").EqualTo(value)
>   Has.Length.EqualTo(value)
>   Has.Count.EqualTo(value)

And sadly we can't mark the former as deprecated because there would be 
a namespace collision. I guess we could if we were willing to do:

Has.Length().EqualTo(value)

And then next release go to the proposed syntax.

But I say that if no one has any objections, the latter seems clearer to me.


-- 
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/