예제 #1
0
        public void BubleSortTest()
        {
            //Arrange
            int[] unsorted = new int[] { 2, 3, 4, 8, 9, 1 };
            int[] expected = new int[] { 1, 2, 3, 4, 8, 9 };

            //Act
            int[] actual = SortingAlgorithms.BubleSort(unsorted).Item1;

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