public void TestMethod1() { var input = new int[1][]; input[0] = new int[] { 1, 0 }; var result = new CourseSchedule207().CanFinish(2, input); Assert.IsTrue(result); }
public void TestMethod2() { var input = new int[2][]; input[0] = new int[] { 1, 0 }; input[1] = new int[] { 0, 1 }; var result = new CourseSchedule207().CanFinish(2, input); Assert.IsFalse(result); }
public void TestMethod4() { var input = new int[3][]; input[0] = new int[] { 1, 0 }; input[1] = new int[] { 2, 1 }; input[2] = new int[] { 3, 2 }; var result = new CourseSchedule207().CanFinish(3, input); Assert.IsTrue(result); }