public void Remove() { var redactor = new Redactor(); redactor.Add("password123"); redactor.Remove("password123"); var actual = redactor.Redact("this is a password: password123"); Assert.AreEqual("this is a password: password123", actual); }
public void RemoveThrows() { var redactor = new Redactor(); try { redactor.Remove("password123"); Assert.Fail("Should have thrown exception"); } catch (RedactionStringNotFoundException) { } }