Пример #1
0
        public void CleanTextShouldAcceptNullSearch()
        {
            var sut    = new GdsValidation();
            var result = sut.CleanText(null, true, restrictedWords, allowedChars);

            result.Should().NotBe(null);
        }
Пример #2
0
        public void CleanTextShouldAcceptNotNullSearch()
        {
            var search = "search";
            var sut    = new GdsValidation();
            var result = sut.CleanText(search, true, restrictedWords, allowedChars);

            result.Should().Be(search);
        }