示例#1
0
        public void EmptyTextIsSpam()
        {
            var spamChecker = new SpamChecker();
            var actual      = spamChecker.CheckIfTextIsSpam("");

            Assert.That(actual, Is.True);
        }
示例#2
0
        public void OrdinaryTextIsNotSpam()
        {
            var spamChecker = new SpamChecker();
            var actual      = spamChecker.CheckIfTextIsSpam("I am not spam!");

            Assert.That(actual, Is.False);
        }
示例#3
0
        public void TextWithDollarSignIsSpam()
        {
            var spamChecker = new SpamChecker();
            var actual      = spamChecker.CheckIfTextIsSpam("I am spam because I have $ sign.");

            Assert.That(actual, Is.True);
        }