public void WhenCreatingAFilterFieldWithCustomDelimiter(string text, string value, string delimiter) { var filter = FilterField.CreateWithCustomDelimiter(text, value, delimiter); filter.Value.Should().Be(value); filter.Text.Should().Be(text); filter.Key.Should().Be($"{value}{delimiter}{text}"); }
public void ShouldIgnoreDelimiterDifferences() { var f1 = FilterField.CreateWithCustomDelimiter("Hello world", "||"); var f2 = FilterField.CreateWithCustomDelimiter("Hello world", "!!"); f1.Equals(f2).Should().Be(true); f2.Equals(f1).Should().Be(true); }