コード例 #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);
        }