public void No_Multiples_Of_Three_Or_Five_Returns_Number() { FizzBuzz fizzbuzz = new FizzBuzz(); string translation = fizzbuzz.Translate(7); Assert.That(translation, Is.EqualTo("7")); }
public void Multiples_Of_Three_Returns_Fizz() { FizzBuzz fizzbuzz = new FizzBuzz(); string translation = fizzbuzz.Translate(6); Assert.That(translation, Is.EqualTo("Fizz")); }
public void Multiples_Of_Three_Returns_Fizz() { FizzBuzz fizzbuzz = new FizzBuzz(); string translation = fizzbuzz.Translate(6); Assert.That(translation, Is.EqualTo("Fizz")); }
public void No_Multiples_Of_Three_Or_Five_Returns_Number() { FizzBuzz fizzbuzz = new FizzBuzz(); string translation = fizzbuzz.Translate(7); Assert.That(translation, Is.EqualTo("7")); }
public void Returns_Elements_Whose_Values_Match_The_Translation_Of_Their_Corresponding_Keys() { FizzBuzz fizzbuzz = new FizzBuzz(); Dictionary<int, string> translations = fizzbuzz.TranslateRange(1, 15); foreach (var translation in translations) Assert.That(translation.Value, Is.EqualTo(fizzbuzz.Translate(translation.Key))); }
public void Returns_Elements_Whose_Values_Match_The_Translation_Of_Their_Corresponding_Keys() { FizzBuzz fizzbuzz = new FizzBuzz(); Dictionary <int, string> translations = fizzbuzz.TranslateRange(1, 15); foreach (var translation in translations) { Assert.That(translation.Value, Is.EqualTo(fizzbuzz.Translate(translation.Key))); } }