public void PriorityQueue_02_ToString_03_OnModerateQueue()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            string expected        = "2 4 2 7 5 5 6 8 9";

            // Act
            string actual = q.ToString();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_01_Size_03_OnModerateQueue()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            int expected           = 9;

            // Act
            int actual = q.Size();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_05_Remove_03_OnModerateQueue_02_ToStringIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            string expected        = "2 4 5 7 5 9 6 8";

            // Act
            q.Remove();
            string actual = q.ToString();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_04_Add_06_NewRootNode_02_ToStringIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            string expected        = "1 2 2 7 4 5 6 8 9 5";

            // Act
            q.Add(1);
            string actual = q.ToString();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_04_Add_06_NewRootNode_01_SizeIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            int expected           = 10;

            // Act
            q.Add(1);
            int actual = q.Size();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_04_Add_05_InnerNodeLargerThanParent_02_ToStringIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            string expected        = "2 3 2 7 4 5 6 8 9 5";

            // Act
            q.Add(3);
            string actual = q.ToString();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_04_Add_05_InnerNodeLargerThanParent_01_SizeIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            int expected           = 10;

            // Act
            q.Add(3);
            int actual = q.Size();

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void PriorityQueue_04_Add_02_LeafNodeEqualsParent_02_ToStringIsOk()
        {
            // Arrange
            IPriorityQueue <int> q = DSBuilder.CreatePriorityQueueModerate();
            string expected        = "2 4 2 7 5 5 6 8 9 5";

            // Act
            q.Add(5);
            string actual = q.ToString();

            // Assert
            Assert.AreEqual(expected, actual);
        }