public void AddMappingWithSourceAndDestinationType_ShouldReturn_DestinationTypeOnGetWithSourceTypeAsInput(Type source, Type destination) { var options = new MapResultOptions(); options.AddMapping(source, destination); var result = options.GetMapping(source); Assert.Equal(destination, result); }
public void AddMappingWithWithNonCustructedSourceOrDestinationType_ShouldThrow_ArgumentException(Type source, Type destination) { var options = new MapResultOptions(); Assert.Throws <ArgumentException>(() => options.AddMapping(source, destination)); }
public void AddMappingWithSourceOrDestinationTypeEqualToNull_ShouldThrow_ArgumentNullException(Type source, Type destination) { var options = new MapResultOptions(); Assert.Throws <ArgumentNullException>(() => options.AddMapping(source, destination)); }