Example #1
0
        public void DoesMethodReturnFizzBuzzWoofWhenMatchesMultipleRules()
        {
            Testing test = new Testing();

            test.FizzBuzzMethod("2");
            Assert.AreEqual("FizzBuzz", test.FizzBuzz);
            test.FizzBuzzMethod("15");
            Assert.AreEqual("FizzBuzzWoof", test.FizzBuzzWoof);
        }
Example #2
0
        public void DoesMethodReturnBuzzWhenDivisibleByFive()
        {
            Testing testing = new Testing();

            testing.FizzBuzzMethod("51");
            Assert.AreEqual("Buzz", testing.Buzz);
        }
Example #3
0
        public void DoesMethodReturnWoofWhenDivisibleBySeven()
        {
            Testing testing = new Testing();

            testing.FizzBuzzMethod("71");
            Assert.AreEqual("Woof", testing.Woof);
        }
Example #4
0
        public void DoesMethodReturnFizzWhenDivisibleByThree()
        {
            Testing testing = new Testing();

            testing.FizzBuzzMethod("31");
            Assert.AreEqual("Fizz", testing.Fizz);
        }