package com.fishercoder;

import com.fishercoder.solutions._207;
import org.junit.BeforeClass;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class _207Test {
    private static _207.Solution1 test;
    private static boolean actual;
    private static boolean expected;
    private static int[][] prerequisites;
    private static int numCourses;

    @BeforeClass
    public static void setup() {
        test = new _207.Solution1();
    }

    @Test
    public void test1() {
        numCourses = 2;
        prerequisites = new int[][]{{0, 1}};
        expected = true;
        actual = test.canFinish(numCourses, prerequisites);
        assertEquals(expected, actual);
    }
}

@@ -232,80 +232,8 @@
 st;%0A
-    private static boolean actual;%0A    private static boolean expected;%0A
     
@@ -270,16 +270,16 @@
 isites;%0A
+
     priv
@@ -517,122 +517,471 @@
     
-expected = true
+assertEquals(true, test.canFinish(numCourses, prerequisites))
 ;%0A    
+%7D%0A%0A
     
-actual = test.canFinish(numCourses, prerequisites);%0A        assertEquals(expected, actual
+@Test%0A    public void test2() %7B%0A        numCourses = 8;%0A        prerequisites = new int%5B%5D%5B%5D%7B%0A                %7B3, 0%7D,%0A                %7B3, 1%7D,%0A                %7B5, 3%7D,%0A                %7B5, 2%7D,%0A                %7B6, 3%7D,%0A                %7B6, 1%7D,%0A                %7B7, 3%7D,%0A                %7B7, 4%7D,%0A                %7B4, 2%7D,%0A%0A        %7D;%0A        assertEquals(true, test.canFinish(numCourses, prerequisites)
 );%0A 

refactor 207