Beispiel #1
0
        public void Result_is_ascending_test()
        {
            List <int> arrayNum = new List <int> {
                1, 8, 2,
            };
            List <int> arrayNumExpected = new List <int> {
                1, 2, 8
            };


            List <int> sortAsc = arraySorter.sortAscending(arrayNum);

            CollectionAssert.AreEqual(sortAsc, arrayNumExpected);

            Assert.That(sortAsc, Is.Ordered);
        }