public void ColumnPrefixFilter_ValueSet_Builds_OK() { var filter = new ColumnPrefixFilter <MockDomainObject>(_map); filter.ColumnName(Maps.MockDomainObject.NameColumn); var expected = $"ColumnPrefixFilter ('{Maps.MockDomainObject.NameColumn}')"; var validation = filter.ToFilterBuild(); Assert.Equal(expected, validation.Build()); }
public void ColumnPrefixFilter_MapNull_RaisesException() { var filter = new ColumnPrefixFilter <MockDomainObject>(null); Assert.Throws <MappingException>(() => filter.ColumnName(x => x.Address.Number)); }