コード例 #1
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"));
        }
コード例 #2
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"));
        }
コード例 #3
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));
        }