public void Test(string inputStr, string expectedStr) { var input = JsonConvert.DeserializeObject <int[][]>(inputStr); var s = new Solution(); var output = s.FindRightInterval(input); var outputStr = JsonConvert.SerializeObject(output); outputStr.Should().Be(expectedStr); }