Exemple #1
0
        public void AreNeighbours_VerticesDoesntBelongToGraph_ReturnFalse()
        {
            var graph = new NullGraph();

            NullVertex candidate = new NullVertex();
            NullVertex vertex    = (NullVertex)graph.Vertices.First();

            Assert.IsFalse(graph.AreNeighbours(candidate, vertex));
        }
Exemple #2
0
        public void AreNeighbours_DoesnotThrow()
        {
            NullGraph graph = new NullGraph();

            NullVertex candidate = new NullVertex();
            NullVertex vertex    = (NullVertex)graph.Vertices.First();

            Assert.DoesNotThrow(() => graph.AreNeighbours(candidate, vertex));
        }