Пример #1
0
 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));
 }
Пример #2
0
 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"));
 }
Пример #3
0
 public void TestSimpleEqualsConditionedProperty()
 {
     SimpleThreeProps obja = new SimpleThreeProps("test", 15, "RR");
     SimpleThreeProps objb = new SimpleThreeProps("test", 16, "DIFFERENT");
     Assert.That(obja, MyIs.SomePropertiesEqualTo(objb, "PropA"));
 }