Censored.Tests.AllTests.MultipleDirtyWords C# (CSharp) Method

MultipleDirtyWords() private method

private MultipleDirtyWords ( ) : void
return void
        public void MultipleDirtyWords()
        {
            var test = "The dirty word hello and world";
            var censor = new Censor(new []{"hello", "world"});
            var correct = "The dirty word ***** and *****";

            var result = censor.CensorText(test);

            Assert.IsTrue(censor.HasCensoredWord(test), "The text is dirty, but returned false");
            Assert.AreEqual(result, correct, "All words were not filtered");

        }