public void UnMap_WhenRemovesAnExistingMapping_ShouldRemoveMappingFromProperties() { var target = new IntEntityClassMapper(); target.Map(p => p.String); Assert.True(target.MappingExists(x => x.String)); target.UnMap(p => p.String); Assert.False(target.MappingExists(x => x.String)); }
public void UnMap_WhenUnMapNonExistenceProperty_ShouldThrowException() { var target = new IntEntityClassMapper(); Assert.Throws <PropertyMapNotFoundException>(() => target.UnMap(p => p.String)); }