public void FizzBuzzTest(int numerp, string valorEsperado) { var fizzBuzz = new FizzBuzzProgram(); var resultado = fizzBuzz.FizzBuzz(numerp); Assert.Equal(valorEsperado, resultado); }
public void Deve_criar_um_fizz_buzz() { List <string> lista = new List <string>(); var fizz = new FizzBuzzProgram(lista); Assert.NotNull(fizz); }
public void Part2NegativeTest([Values(46)] int input) { FizzBuzzCheck FBCheck = SetupFBCheckForPart2(); string resultString; resultString = FizzBuzzProgram.FizzBuzzCheckNumber(input, FBCheck); Assert.AreEqual(input.ToString(), resultString); }
public void Part2BuzzTest([Values(52, 55, 56)] int input) { FizzBuzzCheck FBCheck = SetupFBCheckForPart2(); string resultString; resultString = FizzBuzzProgram.FizzBuzzCheckNumber(input, FBCheck); Assert.AreEqual("buzz", resultString); }
public void Part1FizzTest([Values(3, 6, 9, 12, 18)] int input) { FizzBuzzCheck FBCheck = SetupFBCheckForPart1(); string resultString; resultString = FizzBuzzProgram.FizzBuzzCheckNumber(input, FBCheck); Assert.AreEqual("fizz", resultString); }
static void Main(string[] args) { FizzBuzzProgram fizzBuzzProgram = new FizzBuzzProgram(); fizzBuzzProgram.FizzBuzz(); Console.WriteLine("Jeniks Testing"); Console.WriteLine("Jeniks Testing"); Console.ReadKey(); }
static void Main(string[] args) { List <string> lista = new List <string>(); var fizzBuzz = new FizzBuzzProgram(lista); fizzBuzz.Executar(lista); fizzBuzz.Listar(lista); }
public void Deve_listar_se_tamanho_lista_valido() { List <string> lista = new List <string>(); var fizz = new FizzBuzzProgram(lista); fizz.Listar(lista); Assert.True(lista.Count <= 100); }