Example #1
0
        public void FizzBuzzTest()
        {
            var sut    = new FizzBuzzResolver();
            var result = sut.Resolve(15);

            Assert.AreEqual(result, "FizzBuzz");
        }
Example #2
0
        public void BuzzTest()
        {
            var sut    = new FizzBuzzResolver();
            var result = sut.Resolve(5);

            Assert.AreEqual("Buzz", result);
        }
Example #3
0
        public void NumbersNotDivisibleBy3Or5()
        {
            var number = 11;
            var sut    = new FizzBuzzResolver();
            var result = sut.Resolve(number);

            Assert.AreEqual(number.ToString(), result);
        }
Example #4
0
        public static void Main(string[] args)
        {
            var fizzBuzzResolver = new FizzBuzzResolver();

            //Console.Write("Please Enter Number between 1-100:");
            //string selection = Console.ReadLine();
            //int number = Convert.ToInt32(selection)

            for(int number = 1; number <=100; number++){
            fizzBuzzResolver.Resolve(number);
            }

            Console.Write("Press any key to continue . . . ");

            Console.ReadKey(true);
        }
Example #5
0
        public static void Main(string[] args)
        {
            var fizzBuzzResolver = new FizzBuzzResolver();

            //Console.Write("Please Enter Number between 1-100:");
            //string selection = Console.ReadLine();
            //int number = Convert.ToInt32(selection)

            for (int number = 1; number <= 100; number++)
            {
                fizzBuzzResolver.Resolve(number);
            }

            Console.Write("Press any key to continue . . . ");

            Console.ReadKey(true);
        }
Example #6
0
 public void FizzTest()
 {
     var sut = new FizzBuzzResolver();
         var result = sut.Resolve(3);
         Assert.AreEqual("Fizz", result);
 }
Example #7
0
 public void FizzBuzzTest()
 {
     var sut = new FizzBuzzResolver();
         var result = sut.Resolve(15);
         Assert.AreEqual(result, "FizzBuzz");
 }
Example #8
0
 public void NumbersNotDivisibleBy3Or5()
 {
     var number = 11;
         var sut = new FizzBuzzResolver();
         var result = sut.Resolve(number);
         Assert.AreEqual(number.ToString(), result);
 }