Пример #1
0
        public void FizzBuzzTest()
        {
            var sut    = new FizzBuzzResolver();
            var result = sut.Resolve(15);

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

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

            Assert.AreEqual(number.ToString(), result);
        }
Пример #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);
        }
Пример #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);
        }
Пример #6
0
 public void FizzTest()
 {
     var sut = new FizzBuzzResolver();
         var result = sut.Resolve(3);
         Assert.AreEqual("Fizz", result);
 }
Пример #7
0
 public void FizzBuzzTest()
 {
     var sut = new FizzBuzzResolver();
         var result = sut.Resolve(15);
         Assert.AreEqual(result, "FizzBuzz");
 }
Пример #8
0
 public void NumbersNotDivisibleBy3Or5()
 {
     var number = 11;
         var sut = new FizzBuzzResolver();
         var result = sut.Resolve(number);
         Assert.AreEqual(number.ToString(), result);
 }