public void ShouldReturnEmpty_When_InputIsNotMultipleOf3And5() { // Arrange var subject = new FizzBuzz(); // Act var output1 = subject.Analyze(1); var output2 = subject.Analyze(2); var output3 = subject.Analyze(4); // Assert Assert.AreEqual(string.Empty, output1); Assert.AreEqual(string.Empty, output2); Assert.AreEqual(string.Empty, output3); }
public void ShouldReturnFizzBuzz_When_InputIsMultipleOf3And5() { // Arrange var subject = new FizzBuzz(); // Act var output1 = subject.Analyze(15); var output2 = subject.Analyze(30); var output3 = subject.Analyze(60); // Assert Assert.AreEqual("FizzBuzz", output1); Assert.AreEqual("FizzBuzz", output2); Assert.AreEqual("FizzBuzz", output3); }