Exemple #1
0
        public void DivisibleBy3()
        {
            GameClass numberFizzBuzz = new GameClass();

            numberFizzBuzz.DivisibleBy3(3);
            Assert.AreEqual("Fizz", numberFizzBuzz.Shout);
        }
        public static void Main(string[] arg)
        {
            GameClass obj = new GameClass();

            Console.WriteLine("Enter a Number: ");
            string numberString = Console.ReadLine();
            int    number       = int.Parse(numberString);

            obj.DivisibleBy3(number);
            obj.DivisibleBy5(number);
            obj.DivisibleBy15(number);
            Console.WriteLine(obj.Shout);
        }