Example #1
0
        static void Main(string[] args)
        {
            Problem1 p1 = new Problem1(1, 100, "Pip", "Pop");
             p1.printOutput();

             Console.WriteLine("\nPress any key to exit");
             Console.ReadKey();
        }
        public void chooseForNumberNotDivisibleBy3OrBy5()
        {
            Problem1 p1 = new Problem1(1, 100, "Pip", "Pop");
             string expected = "11";

             string actual = p1.chooseString(11);

             Assert.AreEqual(expected, actual, "Wrong output for numbers not divisible by 3 or by 5");
        }
        public void chooseForNumberDivisibleBy3AndBy5()
        {
            Problem1 p1 = new Problem1(1, 100, "Pip", "Pop");
             string expected = "PipPop";

             string actual = p1.chooseString(15);

             Assert.AreEqual(expected, actual, "Wrong output for numbers divisible by 3 and by 5");
        }
        public void chooseForNumberDivisibleBy3()
        {
            //arange
             Problem1 p1 = new Problem1(1, 100, "Pip", "Pop");
             string expected = "Pip";

             //act
             string actual = p1.chooseString(6);

             //assert
             Assert.AreEqual(expected, actual, "Wrong output for numbers divisible by 3");
        }