Пример #1
0
 public void PrintMultipleOfThreeWithFizz()
 {
     _fizBuzzNumberG = new NumberGenerator();
     _iConditionList = new List<ICondition> {new MultipleThreeCondition()};
     var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20,_iConditionList);
     Assert.AreEqual("12fizz45fizz78fizz1011fizz1314fizz1617fizz19", numbersPrinted);
 }
Пример #2
0
 public void PrintMultipleOfFiveAndThreeWithBuzz()
 {
     _fizBuzzNumberG = new NumberGenerator();
     _iConditionList = new List<ICondition> {new MultipleFiveThreeCondition()};
     var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList);
     Assert.AreEqual("1234567891011121314fizzbuzz16171819", numbersPrinted);
 }
Пример #3
0
 public void PrintNumbersFromOneToTwenty()
 {
     _fizBuzzNumberG = new NumberGenerator();
     _iConditionList = new List<ICondition>();
     var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1,20,_iConditionList);
     Assert.AreEqual("12345678910111213141516171819",numbersPrinted);
 }
Пример #4
0
        public void PrintNumbersFromOneToTwenty()
        {
            _fizBuzzNumberG = new NumberGenerator();
            _iConditionList = new List <ICondition>();
            var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList);

            Assert.AreEqual("12345678910111213141516171819", numbersPrinted);
        }
Пример #5
0
 public void PrintNumberMultipleThreeJustOneNumber()
 {
     _fizBuzzNumberG = new NumberGenerator();
     _iConditionList = new List<ICondition>
     {
        new MultipleThreeCondition()
     };
     var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(3, 4, _iConditionList);
     Assert.AreEqual("fizz", numbersPrinted);
 }
Пример #6
0
        public void PrintMultipleOfFiveAndThreeWithBuzz()
        {
            _fizBuzzNumberG = new NumberGenerator();
            _iConditionList = new List <ICondition> {
                new MultipleFiveThreeCondition()
            };
            var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList);

            Assert.AreEqual("1234567891011121314fizzbuzz16171819", numbersPrinted);
        }
Пример #7
0
        public void PrintMultipleOfThreeWithFizz()
        {
            _fizBuzzNumberG = new NumberGenerator();
            _iConditionList = new List <ICondition> {
                new MultipleThreeCondition()
            };
            var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(1, 20, _iConditionList);

            Assert.AreEqual("12fizz45fizz78fizz1011fizz1314fizz1617fizz19", numbersPrinted);
        }
Пример #8
0
        public void PrintNumberMultipleThreeJustOneNumber()
        {
            _fizBuzzNumberG = new NumberGenerator();
            _iConditionList = new List <ICondition>
            {
                new MultipleThreeCondition()
            };
            var numbersPrinted = _fizBuzzNumberG.ObtainNumbers(3, 4, _iConditionList);

            Assert.AreEqual("fizz", numbersPrinted);
        }
Пример #9
0
 public void FizzBuzzPrinterDefine()
 {
     _fizBuzzNumberG = new NumberGenerator();
 }
Пример #10
0
 public void FizzBuzzPrinterDefine()
 {
     _fizBuzzNumberG = new NumberGenerator();
 }