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)); }
public void AreNeighbours_DoesnotThrow() { NullGraph graph = new NullGraph(); NullVertex candidate = new NullVertex(); NullVertex vertex = (NullVertex)graph.Vertices.First(); Assert.DoesNotThrow(() => graph.AreNeighbours(candidate, vertex)); }