public void CanApply_MatchingSourceAndTargetTypes_ReturnsTrue() { var propertyMapping = new PropertyMapping <Source, Target, string>(string.Empty, t => t.TargetValue, (s, t) => t.TargetValue = s.SourceValue, string.Empty); propertyMapping.CanApply(new Source(), new Target()).Should().BeTrue(); }
public void CanApply_MismatchingTargetType_ReturnsFalse() { var propertyMapping = new PropertyMapping <Source, Target, string>(string.Empty, t => t.TargetValue, (s, t) => t.TargetValue = s.SourceValue, string.Empty); propertyMapping.CanApply(new Source(), new object()).Should().BeFalse(); }
public void CanApply_MismatchingSourceType_ReturnsFalse() { var propertyMapping = new PropertyMapping <Source, Target, string>("", t => t.TargetValue, (s, t) => t.TargetValue = s.SourceValue, ""); propertyMapping.CanApply(new object(), new Target()); }