예제 #1
0
        public void ReturnBleepedString_ShouldBleepOutSubstring(
            string input,
            string bleepableWord,
            string expected)
        {
            // Arrange

            // Act
            string actual = ExampleMethods.ReturnBleepedString(input, bleepableWord);

            // Arrange
            Assert.Equal(expected, actual);
        }
예제 #2
0
 public void ReturnBleepedString_EmptyBleepWordShouldThrowException()
 {
     // Assert
     Assert.Throws <ArgumentException>("bleepedWord", () => ExampleMethods.ReturnBleepedString("McChicken", ""));
 }
예제 #3
0
 public void ReturnBleepedString_EmptyInputShouldThrowException()
 {
     // Assert
     Assert.Throws <ArgumentException>("input", () => ExampleMethods.ReturnBleepedString("", "duck"));
 }