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

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

            Assert.That(actual, Is.False);
        }
Exemple #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);
        }