public void BoggleGraphTest_Contains_Node_WhenNodePresent_ReturnsTrue() { BoggleNode node = new BoggleNode(0, 1); BoggleGraph graph = new BoggleGraph(); graph.Add(node); Assert.IsTrue(graph.Contains(node)); }
public void BoggleGraphTest_Contains_Edge_WhenEdgePresent_ReturnsTrue() { BoggleEdge edge = new BoggleEdge(new BoggleNode(0, 0), new BoggleNode(1, 0)); BoggleGraph graph = new BoggleGraph(); graph.Add(edge); Assert.IsTrue(graph.Contains(edge)); }
public void BoggleGraphTest_Contains_Node_WhenNodeNotPresent_ReturnsFalse() { BoggleGraph graph = new BoggleGraph(); Assert.IsFalse(graph.Contains(new BoggleNode())); }