static void Main() { var fizzbuzz = new FizzBuzzClass(); for (var i = 1; i <= 100; i++) { fizzbuzz.Increment(); Console.WriteLine(fizzbuzz.Write()); } Console.ReadLine(); }
public void should_write_number() { var fb = new FizzBuzzClass(1); Assert.IsTrue(fb.Write() == fb.Counter.ToString()); }
public void should_write_fizzbuzz() { var fb = new FizzBuzzClass(15); Assert.IsTrue(fb.Write() == "FizzBuzz"); }
public void should_increment() { var fb = new FizzBuzzClass(); fb.Increment(); Assert.IsTrue(fb.Counter == 1); }