public void PrintMultipleOfThreeWithFizz() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List<ICondition> {new MultipleThreeCondition()}; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20,_iConditionList); Assert.AreEqual("12fizz45fizz78fizz1011fizz1314fizz1617fizz19", numbersPrinted); }
public void PrintMultipleOfFiveAndThreeWithBuzz() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List<ICondition> {new MultipleFiveThreeCondition()}; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList); Assert.AreEqual("1234567891011121314fizzbuzz16171819", numbersPrinted); }
public void PrintNumbersFromOneToTwenty() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List<ICondition>(); var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1,20,_iConditionList); Assert.AreEqual("12345678910111213141516171819",numbersPrinted); }
public void PrintNumbersFromOneToTwenty() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List <ICondition>(); var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList); Assert.AreEqual("12345678910111213141516171819", numbersPrinted); }
public void PrintNumberMultipleThreeJustOneNumber() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List<ICondition> { new MultipleThreeCondition() }; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(3, 4, _iConditionList); Assert.AreEqual("fizz", numbersPrinted); }
public void PrintMultipleOfFiveAndThreeWithBuzz() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List <ICondition> { new MultipleFiveThreeCondition() }; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList); Assert.AreEqual("1234567891011121314fizzbuzz16171819", numbersPrinted); }
public void PrintMultipleOfThreeWithFizz() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List <ICondition> { new MultipleThreeCondition() }; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList); Assert.AreEqual("12fizz45fizz78fizz1011fizz1314fizz1617fizz19", numbersPrinted); }
public void PrintNumberMultipleThreeJustOneNumber() { _fizBuzzNumberG = new NumberGenerator(); _iConditionList = new List <ICondition> { new MultipleThreeCondition() }; var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(3, 4, _iConditionList); Assert.AreEqual("fizz", numbersPrinted); }
public void FizzBuzzPrinterDefine() { _fizBuzzNumberG = new NumberGenerator(); }