public void FizzBuzzTest(int numerp, string valorEsperado)
        {
            var fizzBuzz  = new FizzBuzzProgram();
            var resultado = fizzBuzz.FizzBuzz(numerp);

            Assert.Equal(valorEsperado, resultado);
        }
Exemple #2
0
        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);
        }
Exemple #6
0
        static void Main(string[] args)
        {
            FizzBuzzProgram fizzBuzzProgram = new FizzBuzzProgram();

            fizzBuzzProgram.FizzBuzz();
            Console.WriteLine("Jeniks Testing");
            Console.WriteLine("Jeniks Testing");
            Console.ReadKey();
        }
Exemple #7
0
        static void Main(string[] args)
        {
            List <string> lista = new List <string>();

            var fizzBuzz = new FizzBuzzProgram(lista);

            fizzBuzz.Executar(lista);
            fizzBuzz.Listar(lista);
        }
Exemple #8
0
        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);
        }