Esempio n. 1
0
        public void returnFizzBuzzforBoth()
        {
            //arranage
            double       a        = 15;
            String       expected = "fizzbuzz";
            FizzBuzzCode fizzbuzz = new FizzBuzzCode(a);
            String       actual   = fizzbuzz.getText();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void returnNeither()
        {
            //arranage
            double       a        = 22;
            String       expected = "neither";
            FizzBuzzCode fizzbuzz = new FizzBuzzCode(a);
            String       actual   = fizzbuzz.getText();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void returnBuzzforMultipleOfFive()
        {
            //arranage
            double       a        = 5;
            String       expected = "buzz";
            FizzBuzzCode fizzbuzz = new FizzBuzzCode(a);
            String       actual   = fizzbuzz.getText();

            Assert.AreEqual(expected, actual);
        }