示例#1
0
        public void ConvertToFizzBuzzTest_Abnromal(int val)
        {
            var fb = new FizzBuzzLib();

            Assert.Throws <ArgumentOutOfRangeException>(() =>
            {
                fb.ConvertToFizzBuzz(val);
            });
        }
示例#2
0
        public void ConvertToFizzBuzzTest_Normal(int val, string expected)
        {
            var fb = new FizzBuzzLib();

            Assert.Equal(expected, fb.ConvertToFizzBuzz(val));
        }