Пример #1
0
        static void Main(string[] args)
        {
            var fizzbuzzer = new FizzBuzzer();
            int range;

            if (args.Length == 1)
            {
                Int32.TryParse(args[0], out range);
            }
            else
            {
                range = 100;
            }

            for (var i = 1; i <= range; i++)
            {
                Console.WriteLine(fizzbuzzer.DetermineIsDivisable(i));
            }

            Console.ReadLine();
        }
Пример #2
0
 public void Acceptance()
 {
     var sut = new FizzBuzzer ();
     sut.FizzBuzz (1, 20);
 }