private static void PrintList(int count, List <DivisibleFactor> divisibleFactors, bool ascending = true) { var service = new FizzBuzzService(100, divisibleFactors, ascending); service.Process(); service.Print(); }
public void ShouldReturnNumber() { Assert.Equal("1", fizzBuzz.Print(1)); Assert.Equal("Fizz", fizzBuzz.Print(9)); Assert.Equal("Buzz", fizzBuzz.Print(10)); Assert.Equal("FizzBuzz", fizzBuzz.Print(15)); }
public void Print_WhenTheNumberDivisableByThree_ShouldPrintFizz(int num) { // Arrange var service = new FizzBuzzService(); // Act var result = service.Print(num); // Assert //Assert.Equal(result, "Fizz"); result.Should().Be("Fizz"); }
public void ShouldReturnNumber() { Assert.Equal("1", _fizzBuzzService.Print(1)); Assert.Equal("2", _fizzBuzzService.Print(2)); }
public void PrintShouldBeNumber() { Assert.Equal("2", _fizzBuzzService.Print(2)); }
public void ShouldPrintNumber() { Assert.Equal("1", _fizzBuzz.Print(1)); }
public void ShouldPrintNumber() { Assert.AreEqual("2", _fizzBuzz.Print(2)); }
public void ShouldReturnNumber() { Assert.Equal("1", FizzBuzz.Print(1)); Assert.Equal("2", FizzBuzz.Print(2)); }
public void ShouldPrintNumber() { Assert.AreEqual("1", _fizzBuzz.Print(1)); }
public void shouldPrintNumberWhenNumberIsEntered() { Assert.AreEqual("2", _fizzBuzz.Print(2)); }