Esempio n. 1
0
        private void We_use_that_lambda_representation_when_we_compare_two_objects_that_differ_on_that_property()
        {
            var someObject    = new ObjectWithValueTypeProperties();
            var anotherObject = new ObjectWithValueTypeProperties {
                MyBoolean = true
            };
            var test = new CharacterizationTest();

            test.IgnoreOnType(booleanPropertySelector);
            test.CompareObjects(someObject, anotherObject);
        }
Esempio n. 2
0
        private void We_use_that_lambda_representation_when_we_compare_two_objects_that_differ_on_underlying_properties()
        {
            var someObject = new ObjectWithMixedTypeProperties {
                MySimpleObject = new ObjectWithValueTypeProperties()
            };
            var anotherObject = new ObjectWithMixedTypeProperties
            {
                MySimpleObject = new ObjectWithValueTypeProperties
                {
                    MyBoolean = true,
                    MyDecimal = 1,
                    MyInteger = 1
                }
            };
            var test = new CharacterizationTest();

            test.IgnoreOnType(referenceTypePropertySelector);
            test.CompareObjects(someObject, anotherObject);
        }
Esempio n. 3
0
        private void We_try_to_ignore_on_that_unary_selector()
        {
            var test = new CharacterizationTest();

            thrownException = Record.Exception(() => test.IgnoreOnType(unarySelector));
        }