예제 #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);
        }