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 Part2NegativeTest([Values(46)] int input) { FizzBuzzCheck FBCheck = SetupFBCheckForPart2(); string resultString; resultString = FizzBuzzProgram.FizzBuzzCheckNumber(input, FBCheck); Assert.AreEqual(input.ToString(), 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); }