public void TestIndexerExceptionAlt()
        {
            string result = "";
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);

            result = fb[201];
        }
        public void TestIndexNotDivByThreeOrFiveAlt()
        {
            string result = "";
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);
            result = fb[23];

            Assert.AreEqual(result, "23");
        }
        public void TestIndexDivByThreeAndFiveAlt()
        {
            string result = "";
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);
            result = fb[60];

            Assert.AreEqual(result, "FizzBuzz");
        }
Ejemplo n.º 4
0
        public void TestIndexerExceptionAlt()
        {
            string result = "";

            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);

            result = fb[201];
        }
Ejemplo n.º 5
0
        // Tests an Index that should be Divisible by neither 3 or 5
        public void TestIndexNotDivByThreeOrFiveAlt()
        {
            string result = "";

            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);
            result = fb[23];

            Assert.AreEqual(result, "23");
        }
Ejemplo n.º 6
0
        // Tests an Index that should be Divisible by 3 and 5
        public void TestIndexDivByThreeAndFiveAlt()
        {
            string result = "";

            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(0, 200);
            result = fb[60];

            Assert.AreEqual(result, "FizzBuzz");
        }
        public void TestNoneDivisibleAlt()
        {
            string result = "";
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(16, 17);
            foreach (string str in fb)
            {
                result += str + " ";
            }

            Assert.AreEqual(result, "16 17 ");
        }
        public void TestAllDivisibleAlt()
        {
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(9, 15);
            string result = "";
            foreach (string str in fb)
            {
                result += str + " ";
            }

            Assert.AreEqual<string>(result, "Fizz Buzz 11 Fizz 13 14 FizzBuzz ");
        }
Ejemplo n.º 9
0
        public void TestRangeExceptionAlt()
        {
            string result = "";

            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(40, 2);

            foreach (string str in fb)
            {
                result += str + " ";
            }
        }
Ejemplo n.º 10
0
        // Tests a series that includes numbers that are not divisible by either 3 or 5
        public void TestNoneDivisibleAlt()
        {
            string result = "";

            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(16, 17);
            foreach (string str in fb)
            {
                result += str + " ";
            }

            Assert.AreEqual(result, "16 17 ");
        }
Ejemplo n.º 11
0
        public void TestAllDivisibleAlt()
        {
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(9, 15);
            string result = "";

            foreach (string str in fb)
            {
                result += str + " ";
            }

            Assert.AreEqual <string>(result, "Fizz Buzz 11 Fizz 13 14 FizzBuzz ");
        }
        public void TestRangeExceptionAlt()
        {
            string result = "";
            FizzBuzzProject.FizzBuzzAlt fb = new FizzBuzzProject.FizzBuzzAlt(40, 2);

            foreach (string str in fb)
            {
                result += str + " ";
            }
        }