Exemplo n.º 1
0
        public void EmptyTextIsSpam()
        {
            var spamChecker = new SpamChecker();
            var actual      = spamChecker.CheckIfTextIsSpam("");

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

            Assert.That(actual, Is.False);
        }
Exemplo n.º 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);
        }