public void TestStringMappingNullSet() { var mapping = new ColumnPropertyMapping<TestUser, string>("UserName", model => model.Name); var user = new TestUser(); Assert.Equal(null, mapping.GetValue(user)); }
public void TestStringMappingGet() { var mapping = new ColumnPropertyMapping<TestUser, string>("UserName", model => model.Name); var user = new TestUser {Name = "Arne"}; Assert.Equal("Arne", mapping.GetValue(user)); }