public void IsEqual_OneNull_ReturnsFalse() { //prepare _mappingArguments.Getter = t => null; var propertyMapping = new GuidPropertyMapping <GuidPropertyMappingTest>(_mappingArguments); DirectoryAttributeModification modification; //act var value = propertyMapping.IsEqual(this, _guid, out modification); //assert value.Should().Be.False(); modification.Should().Not.Be.Null(); }
public void IsEqual_SameGuids_ReturnsTrue() { //prepare _mappingArguments.Getter = t => new Guid(_guid.ToString()); var propertyMapping = new GuidPropertyMapping <GuidPropertyMappingTest>(_mappingArguments); DirectoryAttributeModification modification; //act var value = propertyMapping.IsEqual(this, _guid, out modification); //assert value.Should().Be.True(); modification.Should().Be.Null(); }