public void FizzBuzzTest() { var sut = new FizzBuzzResolver(); var result = sut.Resolve(15); Assert.AreEqual(result, "FizzBuzz"); }
public void BuzzTest() { var sut = new FizzBuzzResolver(); var result = sut.Resolve(5); Assert.AreEqual("Buzz", result); }
public void NumbersNotDivisibleBy3Or5() { var number = 11; var sut = new FizzBuzzResolver(); var result = sut.Resolve(number); Assert.AreEqual(number.ToString(), result); }
public static void Main(string[] args) { var fizzBuzzResolver = new FizzBuzzResolver(); //Console.Write("Please Enter Number between 1-100:"); //string selection = Console.ReadLine(); //int number = Convert.ToInt32(selection) for(int number = 1; number <=100; number++){ fizzBuzzResolver.Resolve(number); } Console.Write("Press any key to continue . . . "); Console.ReadKey(true); }
public static void Main(string[] args) { var fizzBuzzResolver = new FizzBuzzResolver(); //Console.Write("Please Enter Number between 1-100:"); //string selection = Console.ReadLine(); //int number = Convert.ToInt32(selection) for (int number = 1; number <= 100; number++) { fizzBuzzResolver.Resolve(number); } Console.Write("Press any key to continue . . . "); Console.ReadKey(true); }
public void FizzTest() { var sut = new FizzBuzzResolver(); var result = sut.Resolve(3); Assert.AreEqual("Fizz", result); }