public void PrefixFilter_KeySet_Validates_OK() { var filter = new PrefixFilter(); var key = "test"; filter.Key(key); filter.ToFilterBuild().Validate(); }
public void PrefixFilter_KeySet_Builds_OK() { var filter = new PrefixFilter(); var key = "test"; filter.Key(key); var build = filter.ToFilterBuild().Build(); Assert.Equal(build, $"PrefixFilter ('{key}')"); }
public void PrefixFilter_KeyNotSet_Validation_Fails() { var filter = new PrefixFilter(); Assert.Throws <FilterException>(() => filter.ToFilterBuild().Validate()); }