public void ClassicRules(int upperBound, string expected) { FizzBuzz buzz = new FizzBuzz(); string actual = string.Join(string.Empty, buzz.Range(upperBound)); Assert.AreEqual(expected, actual); }
public void CustomRules_EmptySet(int upperBound, string expected) { FizzBuzz buzz = new FizzBuzz(new Dictionary<int, string>()); string actual = string.Join(string.Empty, buzz.Range(upperBound)); Assert.AreEqual(expected, actual); }
public void CustomRules_LowerCase(int upperBound, string expected) { FizzBuzz buzz = new FizzBuzz(new Dictionary<int, string> { {5, "buzz"}, {3, "fizz"}, }); string actual = string.Join(string.Empty, buzz.Range(upperBound)); Assert.AreEqual(expected, actual); }