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 TestComplexEquals() { ComposedTwoProps obja = new ComposedTwoProps("propv", new SimpleTwoProps("test", 15)); ComposedTwoProps objb = new ComposedTwoProps("propv", new SimpleTwoProps("test", 15)); Assert.That(obja, MyIs.AllPropertiesEqualTo(objb)); }
public void TestSimpleEquals() { SimpleTwoProps obja = new SimpleTwoProps("test", 15); SimpleTwoProps objb = new SimpleTwoProps("test", 15); Assert.That(obja, MyIs.AllPropertiesEqualTo(objb)); }
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)); }
public void TestBasicOperator2() { Assert.That(3, (MyIs.EqualTo(3) & MyIs.EqualTo(6)) | MyIs.LessThan(5)); }
public void TestBasicOperator() { Assert.That(3, MyIs.EqualTo(2) & (MyIs.EqualTo(3) | MyIs.LessThan(5))); }
public void TestBasic2() { Assert.That(3, MyIs.EqualTo(3).And['('].EqualTo(2).Or.LessThan(5)[')']); }
public void TestSimpleEqualsSingleProperty() { SimpleTwoProps obja = new SimpleTwoProps("test", 15); Assert.That(obja, MyIs.Property("PropA", "test")); }
public void TestStandardOr() { Assert.That(4, MyIs.EqualTo(5).Or.EqualTo(4)); }