public void FindNodeTest() { using (TCODBSP bspSized = new TCODBSP(0, 0, 10, 10)) { bspSized.SplitOnce(false, 6); TCODBSP nullNode = bspSized.FindNode(10, 9); Assert.IsNull(nullNode); TCODBSP foundNode = bspSized.FindNode(1, 1); Assert.IsNotNull(foundNode); Assert.IsTrue(foundNode.w == 6 && foundNode.h == 10); } }