Пример #1
0
        public void TestMethod1()
        {
            var input = new int[1][];

            input[0] = new int[] { 1, 0 };

            var result = new CourseSchedule207().CanFinish(2, input);

            Assert.IsTrue(result);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }