public void Test(int input, string expected) { var s = new Solution(); var output = s.FizzBuzz(input); var outputStr = JsonConvert.SerializeObject(output); outputStr.Should().Be(expected); }