public void Should_return_empty_line_to_empty_line() { const string expected = ""; var actual = FizzBuzz.Play(""); Assert.AreEqual(expected, actual); }
static void Main(string[] args) { var fileName = args[0]; // "G:/Develop/CodeEval/src/C#Code/nFizzBuzz/forTest.txt"; string[] datas; var fizzBuzz = new FizzBuzz(); ReadFile(fileName, out datas); foreach (var newGame in datas) { Console.WriteLine(FizzBuzz.Play(newGame)); } }
public void Should_return__for_15() { Assert.AreEqual("1 F 3 F 5 F B F 9 F 11 F 13 FB 15", FizzBuzz.Play("2 7 15")); }
public void Should_return__for_15() { Assert.AreEqual("1 2 F 4 B F 7 8 F B 11 F 13 14 FB", FizzBuzz.Play("3 5 15")); }
public void Should_return__for_10() { Assert.AreEqual("1 2 F 4 B F 7 8 F B", FizzBuzz.Play("3 5 10")); }
public void Should_return_1_F_3_F_B_F_7_F_9_FB_for_10() { Assert.AreEqual("1 F 3 F B F 7 F 9 FB", FizzBuzz.Play("2 5 10")); }
public void Should_return_1_F_3_F_B_for_5() { Assert.AreEqual("1 F 3 F B", FizzBuzz.Play("2 5 5")); }
public void Should_return_F_FB_F_FB() { Assert.AreEqual("F FB F FB", FizzBuzz.Play("1 2 4")); }
public void Should_return_F_FB_for_1_2_2() { Assert.AreEqual("F FB", FizzBuzz.Play("1 2 2")); }
public void Should_return_F_for_1_2_1() { const string expected = "F"; Assert.AreEqual(expected, FizzBuzz.Play("1 2 1")); }