More fluent on Nunit

In the previous post I talked about nunit and fluent interface, I did some modification, now I can write

[Test]
publicvoid TestSimpleEqualsConditionedProperty3() {
SimpleThreeProps obja = newSimpleThreeProps(“test”, 15, “EQ”);
SimpleThreeProps objb = newSimpleThreeProps(“test”, 1, “EQ”);
Assert.That(obja, MyIs.SomePropertiesEqualTo(objb, “PropA”, “ThirdProperty”)
.And.Property(“PropB”).GreaterThan(14));
}

Now I can check for equality with a list of properties but added support to create constraint over the single property using the basic property constraint of nunit.

Alk