public void WildcardDirty()
{
var censor = new Censor(new []
{
"gosh",
"drat",
"darn*",
});
string result;
result = censor.CensorText("I stubbed my toe. Gosh it hurts!");
Assert.AreEqual(result, "I stubbed my toe. **** it hurts!");
result = censor.CensorText("The midrate on the USD -> EUR forex trade has soured my day. Drat!");
Assert.AreEqual(result, "The midrate on the USD -> EUR forex trade has soured my day. ****!");
result = censor.CensorText("Gosh darnit, my shoe laces are undone.");
Assert.AreEqual(result, "**** ******, my shoe laces are undone.");
}