public void IsSelected() { var visualizationHeap = new VisualizationHeap(5); visualizationHeap.SelectNodes(1, 3, 4); Assert.IsTrue(visualizationHeap.IsSelected(1)); Assert.IsTrue(visualizationHeap.IsSelected(3)); Assert.IsTrue(visualizationHeap.IsSelected(4)); Assert.IsFalse(visualizationHeap.IsSelected(0)); Assert.IsFalse(visualizationHeap.IsSelected(2)); visualizationHeap.SelectNode(0); Assert.IsTrue(visualizationHeap.IsSelected(1)); Assert.IsTrue(visualizationHeap.IsSelected(3)); Assert.IsTrue(visualizationHeap.IsSelected(4)); Assert.IsTrue(visualizationHeap.IsSelected(0)); Assert.IsFalse(visualizationHeap.IsSelected(2)); visualizationHeap.SelectNodes(2); Assert.IsTrue(visualizationHeap.IsSelected(2)); Assert.IsFalse(visualizationHeap.IsSelected(0)); Assert.IsFalse(visualizationHeap.IsSelected(1)); Assert.IsFalse(visualizationHeap.IsSelected(3)); Assert.IsFalse(visualizationHeap.IsSelected(4)); }