RFC: PropertyConstraint breaking change

"Charlie Poole" <[email protected]> Wed, 3 Sep 2008 18:00:37 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <004501c90e29$a4d6ac30$6401a8c0@ferrari>
Hi All,

As I go through the 2.4 Constraint syntax for the 2.5 release,
I'm finding some things I'd like to change. Here's one that
will call for editing of some tests, if you already use the
affected syntactic elements...

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)

It's more verbose, but enables things you can't now 
write, like

  Has.Length.AtLeast(3)
  Has.Message.Containing("xxxxx")

In addition, this change helps clean up one of the
dirtier bits of the implementation.

Silence means you don't care. :-)

Charlie




-------------------------------------------------------------------------
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=/