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

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

            Assert.Equal(expected, fb.Generate(val));
        }
示例#3
0
        public string FizzBuzzLib_Generate()
        {
            var fb = new FizzBuzzLib();

            return(fb.Generate(Val));
        }