Пример #1
0
        public void Should_sorted_after_run()
        {
            var ar = new ArrangedLists();

            var result = Program.CountingSort(ar.NotSortedList);

            Assert.Equal(ar.AnswerList, result);
        }
Пример #2
0
        public void Should_fail_when_being_sorted_list_contains_minus_values()
        {
            var ar = new ArrangedLists();

            Action act1 = () => Program.CountingSort(ar.ContainMinusValuesList);

            Assert.Throws <ArgumentException>(act1);
        }