Beispiel #1
0
        public void AddNewFilterToFilterBy_doesnt_append_with_null_new_filter()
        {
            // When
            var result = FilteringHelper.AddNewFilterToFilterBy("Test", null);

            // Then
            result.Should().Be("Test");
        }
Beispiel #2
0
        public void AddNewFilterToFilterBy_appends_new_filter_even_if_substring(string filterBy, string newFilterValue)
        {
            // When
            var result = FilteringHelper.AddNewFilterToFilterBy(filterBy, newFilterValue);

            // Then
            result.Should().Be($"{filterBy}╡{newFilterValue}");
        }
Beispiel #3
0
        public void AddNewFilterToFilterBy_returns_new_filter_if_filterBy_is_null()
        {
            // When
            var result = FilteringHelper.AddNewFilterToFilterBy(null, "Test");

            // Then
            result.Should().Be("Test");
        }
Beispiel #4
0
        public void AddNewFilterToFilterBy_appends_new_filter()
        {
            // When
            var result = FilteringHelper.AddNewFilterToFilterBy("Test", "Filter");

            // Then
            result.Should().Be("Test╡Filter");
        }
Beispiel #5
0
        public void AddNewFilterToFilterBy_doesnt_append_with_new_filter_already_in_filterBy(
            string filterBy,
            string newFilterValue
            )
        {
            // When
            var result = FilteringHelper.AddNewFilterToFilterBy(filterBy, newFilterValue);

            // Then
            result.Should().Be(filterBy);
        }