public void TestSimpleEqualsSingleProperty() { SimpleTwoProps obja = new SimpleTwoProps("test", 15); Assert.That(obja, MyIs.Property("PropA", "test")); }
public ComposedTwoProps(string mAnotherProps, SimpleTwoProps mComplexProp) { this.mAnotherProps = mAnotherProps; this.mComplexProp = mComplexProp; }
public void TestSimpleEquals() { SimpleTwoProps obja = new SimpleTwoProps("test", 15); SimpleTwoProps objb = new SimpleTwoProps("test", 15); Assert.That(obja, MyIs.AllPropertiesEqualTo(objb)); }