Esempio n. 1
0
        static void Main(string[] args)
        {
            FizzBuzzGenerator fizzBuzzGenerator = new FizzBuzzGenerator(RulesProvider.GetRules());

            Console.WriteLine(string.Join(Environment.NewLine, fizzBuzzGenerator.Generate(12, 125)));
            Console.Read();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var generator = new FizzBuzzGenerator(new ConsoleOutputWriter());

            generator.Generate();
            Console.ReadKey();
        }
Esempio n. 3
0
        public void NoFizzOrBuzzFromRange()
        {
            var output = string.Join(",", _fizzBuzz.Generate(10, 15));

            Assert.AreEqual("Buzz,11,Fizz,13,14,FizzBuzz", output);
        }
Esempio n. 4
0
 static void Main(string[] args)
 {
     FizzBuzzGenerator fizzBuzzGenerator = new FizzBuzzGenerator(RulesProvider.GetRules());
     Console.WriteLine(string.Join(Environment.NewLine, fizzBuzzGenerator.Generate(12, 125)));
     Console.Read();
 }