Пример #1
0
         private void AssertHasRoute(int[] expected, TopologySortResults actual)
         {
             Assert.IsFalse(actual.HasCycle, "Order not found");
             CollectionAssert.AreEqual(expected,actual.NodeNames, 
                 $"expected: {ArrayToString(expected)} but was: {ArrayToString(actual.NodeNames)}");
 
         }
Пример #2
0
     private void AssertHasCycle(int[] cycle, TopologySortResults actual)
     {
         Assert.IsTrue(actual.HasCycle , "Cycle not found");
         CollectionAssert.AreEqual(cycle ,actual.NodeNames, 
             $"expected: {ArrayToString(cycle)} but was: {ArrayToString(actual.NodeNames)}");
 
     }