public void MyNode_Test_AddConnection_() { MyNode <int> n1 = new MyNode <int>(31); MyNode <int> n2 = new MyNode <int>(32); Assert.IsTrue(n1.AddConnection(n2)); Assert.IsTrue(n1.NEIGHBORS.Contains(n2)); Assert.IsFalse(n2.NEIGHBORS.Contains(n1)); Assert.IsTrue(n2.AddConnection(n1)); Assert.IsTrue(n1.NEIGHBORS.Contains(n2)); Assert.IsTrue(n2.NEIGHBORS.Contains(n1)); }