public void TestLinkBidirectional() { var cell1 = new Cell(); var cell2 = new Cell(); cell1.Link(cell2); Assert.IsTrue(cell1.IsLinked(cell2)); Assert.IsTrue(cell2.IsLinked(cell1)); }
public void TestLink() { var cell1 = new Cell(); var cell2 = new Cell(); cell1.Link(cell2, false); Assert.IsTrue(cell1.IsLinked(cell2)); Assert.IsFalse(cell2.IsLinked(cell1)); }