Exemplo n.º 1
0
        static void ClassicFizzBuzz()
        {
            var factory  = new ClassicFizzBuzzFactory(1, 100);
            var fizzbuzz = factory.GetFizzBuzz();
            var result   = fizzbuzz.Evaluate();

            Console.WriteLine("{0}\n", result);
        }
        public void Should_Return_ClassicFizzBuzz_Instance(int a, int b)
        {
            FizzBuzzFactory factory = null;

            factory = new ClassicFizzBuzzFactory(a, b);
            var fizzbuzz = factory.GetFizzBuzz();

            Assert.That("Classic", Is.EqualTo(fizzbuzz.FizzBuzzType));
        }