Exemplo n.º 1
0
        public void IsEqual_OneNull_ReturnsFalse()
        {
            //prepare
            _mappingArguments.Getter = t => null;
            var propertyMapping = new StringPropertyMapping <StringPropertyMappingTest>(_mappingArguments);
            DirectoryAttributeModification modification;
            //act
            var value = propertyMapping.IsEqual(this, "2", out modification);

            //assert
            value.Should().Be.False();
            modification.Should().Not.Be.Null();
        }
Exemplo n.º 2
0
        public void IsEqual_SameValues_ReturnsTrue()
        {
            //prepare
            _mappingArguments.Getter = t => "4";
            var propertyMapping = new StringPropertyMapping <StringPropertyMappingTest>(_mappingArguments);
            DirectoryAttributeModification modification;

            //act
            var value = propertyMapping.IsEqual(this, "4", out modification);

            //assert
            value.Should().Be.True();
            modification.Should().Be.Null();
        }