Exemplo n.º 1
0
        public void NumbersToFizzBuzz_TestCases_Returns(int a, string expected)
        {
            NumbersToFizzBuzz numbersToFizzBuzz = new NumbersToFizzBuzz();
            var result = numbersToFizzBuzz.ConvertToFizz(a);

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
        public void NumbersToFizzBuzz_LowerThanZero_Returns()
        {
            NumbersToFizzBuzz _checker = new NumbersToFizzBuzz();

            Assert.That(() => _checker.ConvertToFizz(-1), Throws.ArgumentException);
        }