Beispiel #1
0
        public static void Main(string[] args)
        {
            // Example real world usecase of FizzBuzz
            FizzBuzz app = new FizzBuzz();

            app.PrintFizzBuzz(100, new ConsoleWriter());
        }
Beispiel #2
0
        public void TestFizzBuzz(int input, string expected)
        {
            var app = new FizzBuzz.FizzBuzz();

            InMemReadWriter inmemReadWriter = new InMemReadWriter();

            app.PrintFizzBuzz(input, inmemReadWriter);

            Assert.Equal(expected, inmemReadWriter.Read());
        }