public void TestSimpleEqualsConditionedProperty2() { SimpleThreeProps obja = new SimpleThreeProps("test", 15, "EQ"); SimpleThreeProps objb = new SimpleThreeProps("test", 16, "EQ"); Assert.That(obja, MyIs.SomePropertiesEqualTo(objb, "PropA", "ThirdProperty")); }
public void TestSimpleEqualsConditionedProperty() { SimpleThreeProps obja = new SimpleThreeProps("test", 15, "RR"); SimpleThreeProps objb = new SimpleThreeProps("test", 16, "DIFFERENT"); Assert.That(obja, MyIs.SomePropertiesEqualTo(objb, "PropA")); }
public void TestSimpleEqualsConditionedProperty3() { SimpleThreeProps obja = new SimpleThreeProps("test", 15, "EQ"); SimpleThreeProps objb = new SimpleThreeProps("test", 1, "EQ"); Assert.That(obja, MyIs.SomePropertiesEqualTo(objb, "PropA", "ThirdProperty") .And.Property("PropB").GreaterThan(14)); }