public void When_Range_Is_From_1_To_100_Then_Returns_100_Translated_Entries()
        {
            FizzBuzz fizzbuzz = new FizzBuzz();
            Dictionary<int, string> translations = fizzbuzz.TranslateAll(1, 100);

            for (int i = 1; i <= 100; i++)
                Assert.Equal(fizzbuzz.Translate(i), translations[i]);
        }
Ejemplo n.º 2
0
 public void When_Number_Is_No_Multiples_Of_Three_Or_Five_Then_Returns_Number()
 {
     FizzBuzz fizzbuzz = new FizzBuzz();
     string translation = fizzbuzz.Translate(7);
     Assert.Equal("7", translation);
 }
Ejemplo n.º 3
0
 public void When_Number_Is_Multiples_Of_Five_Then_Returns_Buzz()
 {
     FizzBuzz fizzbuzz = new FizzBuzz();
     string translation = fizzbuzz.Translate(10);
     Assert.Equal("Buzz", translation);
 }
 public void When_Range_Is_From_1_To_100_Then_Returns_100_Entries()
 {
     FizzBuzz fizzbuzz = new FizzBuzz();
     Dictionary<int, string> translations = fizzbuzz.TranslateAll(1, 100);
     Assert.Equal(100, translations.Count);
 }