public void ExecuteSeparateAlgorithmTest() { Graph graph = new Graph(); Vertex one = graph.GraphStructure.AddVertex(1); Vertex two = graph.GraphStructure.AddVertex(2); graph.GraphStructure.AddLine(one, two); TestAlgorithm testAlgorithm = new TestAlgorithm(); graph.AlgorithmLibrary.RegisterAlgorithm(testAlgorithm); Vertex result = testAlgorithm.Execute(graph.GraphStructure, one); Assert.AreEqual(two, result); object resultAsObject = testAlgorithm.ExecuteBase(graph.GraphStructure, one); Assert.AreEqual(two, resultAsObject); }