public void toStringTest() { UndirectedEdge <int> ue = new UndirectedEdge <int>(0, 1); string result = ue.ToString(); Assert.AreEqual("0<->1", result); }
public void ObjectToString() { var edge = new UndirectedEdge <int>(1, 2); Assert.AreEqual("1 <-> 2", edge.ToString()); }