public async Task Test(string input, string expected) { // Arrange var runner = new LeetCodeTestRunner <MyHashMap>(); // Act await runner.Run(input, expected); }
public void Test(string input, bool expected) { // Arrange var leetCodeRunner = new LeetCodeTestRunner <GraphBipartite>(); // Act var actual = leetCodeRunner.Run <int[][]>(input, (o, p) => o.IsBipartite(p)); // Assert Assert.AreEqual(expected, actual); }