Beispiel #1
0
        public void toStringTest()
        {
            UndirectedEdge <int> ue = new UndirectedEdge <int>(0, 1);
            string result           = ue.ToString();

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

            Assert.AreEqual("1 <-> 2", edge.ToString());
        }