public void CanGoWithLambdaTest() { string path = @"..\..\..\TestData\1.txt"; var nfa = new NFA(path); Assert.IsTrue(nfa.CanGoWithLambda(1).SetEquals(new HashSet <int>() { })); Assert.IsTrue(nfa.CanGoWithLambda(2).SetEquals(new HashSet <int>() { 3 })); Assert.IsTrue(nfa.CanGoWithLambda(3).SetEquals(new HashSet <int>() { })); path = @"..\..\..\TestData\2.txt"; nfa = new NFA(path); Assert.IsTrue(nfa.CanGoWithLambda(0).SetEquals(new HashSet <int>() { 2, 3, 1 })); Assert.IsTrue(nfa.CanGoWithLambda(1).SetEquals(new HashSet <int>() { })); Assert.IsTrue(nfa.CanGoWithLambda(2).SetEquals(new HashSet <int>() { 2, 3 })); Assert.IsTrue(nfa.CanGoWithLambda(3).SetEquals(new HashSet <int>() { 3, 2 })); }