private static void Main(string[] args) { Console.WriteLine("Starting FizzBuzz!"); Console.WriteLine("Press enter to continue..."); Console.ReadLine(); for (var i = StartValue; i < EndValue; i++) { var valueToPrint = FizzBuzzService.CalculateFizzBuzzValue(i); Console.WriteLine(valueToPrint); } Console.WriteLine(); Console.WriteLine("Finished FizzBuzz!"); Console.WriteLine("Press enter to exit."); Console.ReadLine(); }
public void CalculateFizzBuzzValue_Method_Returns_Fizz_When_Number_Is_Divisible_By_Only_3(int value) { FizzBuzzService.CalculateFizzBuzzValue(value).Should().Be("Fizz"); }