예제 #1
0
            public void Test21()
            {
                // Arrange
                int[] data = { 61, 6, 100, 9, 10, 12, 17 };
                var   tree = new MinTournamentTree(data);

                // Act
                var(min1, min2) = tree.FindMinimum();

                // Assert
                Assert.AreEqual(6, min1);
                Assert.AreEqual(9, min2);
            }
예제 #2
0
            public void Test11()
            {
                // Arrange
                int[] data = { 1, 2, 3, 4, 5, 6, 7 };
                var   tree = new MinTournamentTree(data);

                // Act
                var(min1, min2) = tree.FindMinimum();

                // Assert
                Assert.AreEqual(1, min1);
                Assert.AreEqual(2, min2);
            }