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));
        }
        public void GetColor()
        {
            var visualizationHeap = new VisualizationHeap(4);
            visualizationHeap.SelectNodes(1, 3);

            Assert.AreEqual(VisualizationHeap.nodeColor, visualizationHeap.GetColorElement(0, -1));
            Assert.AreEqual(VisualizationHeap.nodeColor, visualizationHeap.GetColorElement(2, -1));
            Assert.AreEqual(VisualizationHeap.selectedNodeColor, visualizationHeap.GetColorElement(1, -1));
            Assert.AreEqual(VisualizationHeap.selectedNodeColor, visualizationHeap.GetColorElement(3, -1));

            Assert.AreEqual(VisualizationHeap.colorSortedPart, visualizationHeap.GetColorElement(1, 1));
            Assert.AreEqual(VisualizationHeap.colorSortedPart, visualizationHeap.GetColorElement(3, 2));
            Assert.AreEqual(VisualizationHeap.selectedNodeColor, visualizationHeap.GetColorElement(1, 2));
        }