public void WithCellValueMappers_ValidMappers_ThrowsArgumentNullException() { OneToOneMap <string> propertyMap = Map(t => t.Value); ICellValueMapper mapper1 = Assert.Single(propertyMap.Pipeline.CellValueMappers); ICellValueMapper mapper2 = new BoolMapper();; Assert.Same(propertyMap, propertyMap.WithCellValueMappers(mapper2)); Assert.Equal(new ICellValueMapper[] { mapper1, mapper2 }, propertyMap.Pipeline.CellValueMappers); }
public void WithCellValueMappers_NullMapperInMapperss_ThrowsArgumentNullException() { OneToOneMap <string> propertyMap = Map(t => t.Value); Assert.Throws <ArgumentNullException>("mappers", () => propertyMap.WithCellValueMappers(new ICellValueMapper[] { null })); }