Пример #1
0
        public void SortAlgorithmGetAlgorithmBubbleTest()
        {
            var sortingAlgorithms = GetSortingAlgorithms();
            var sut = new AvailableSortingAlgorithms(sortingAlgorithms);

            ISort sortingAlgorithm = sut.GetAlgorithm(Enums.SortAlgorithms.Bubble);

            Assert.IsNotNull(sortingAlgorithm);
            Assert.AreEqual(Enums.SortAlgorithms.Bubble, sortingAlgorithm.GetSortingAlgorithm());
        }