public void TestAddUndirectEdge() { GraphWirth a = new GraphWirth(); bool expected = true; a.AddVertex(0); bool actual = a.AddUndirectEdge(1, 2, 0); Assert.AreEqual(expected, actual, "Error adding undirect edge."); }
public void TestDeleteUndirectEdge_FromTo() { GraphWirth a = new GraphWirth(); bool expected = true; a.AddVertex(0); a.AddUndirectEdge(1, 2, 0); bool actual = a.DeleteUndirectEdge(1, 2); Assert.AreEqual(expected, actual, "Error deleting undirect edge."); }