Beispiel #1
0
        public void TestAddingVertex()
        {
            var reason = "graph should contain vertex 'a'";

            testGraph.AddVertex("a");
            Assert.IsTrue(testGraph.ContainsVertex("a"), reason);
        }
Beispiel #2
0
 public void TestRemoveVertexRemovesVertex()
 {
     testGraph.RemoveVertex("a");
     Assert.IsFalse(testGraph.ContainsVertex("a"));
 }