public void TestDeleteUndirectEdge_ToFrom() { GraphWirth a = new GraphWirth(); bool expected = true; a.AddVertex(0); a.AddDirectEdge(1, 2, 0); bool actual = a.DeleteDirectEdge(2, 1); Assert.AreEqual(expected, actual, "Error deleting undirect edge."); }
public void TestDeleteDirectEdge_ToFrom() { GraphWirth a = new GraphWirth(); bool expected = false; a.AddVertex(0); a.AddDirectEdge(1, 2, 0); bool actual = a.DeleteDirectEdge(2, 1); Assert.AreEqual(expected, actual, "Incorrect order of vertexes while deleting direct edge."); }