Example #1
0
        public void GetResultTest_ResultIsError()
        {
            var fizzBuzz = new FizzBuzzClass();

            Assert.That(() => fizzBuzz.GetResult(-1), Throws.ArgumentException);
        }
Example #2
0
        public void GetResultTest_ResultStringISOK(int number, string result)
        {
            var fizzBuzz = new FizzBuzzClass();

            Assert.That(fizzBuzz.GetResult(number), Is.EqualTo(result));
        }