public void ReturnBleepedString_ShouldBleepOutSubstring( string input, string bleepableWord, string expected) { // Arrange // Act string actual = ExampleMethods.ReturnBleepedString(input, bleepableWord); // Arrange Assert.Equal(expected, actual); }
public void ReturnBleepedString_EmptyBleepWordShouldThrowException() { // Assert Assert.Throws <ArgumentException>("bleepedWord", () => ExampleMethods.ReturnBleepedString("McChicken", "")); }
public void ReturnBleepedString_EmptyInputShouldThrowException() { // Assert Assert.Throws <ArgumentException>("input", () => ExampleMethods.ReturnBleepedString("", "duck")); }