コード例 #1
0
        public void TheSorterSortsTheAudioDramasAscendingByName()
        {
            var provider     = new SampleAudioDramaProvider();
            var sorter       = new NameAscendingSorter();
            var audioDramas  = provider.Get().ToList();
            var expectedSort = audioDramas.OrderBy(x => x.AudioDramaDto.Title).ToList();

            var sort = sorter.Sort(audioDramas).ToList();

            CollectionAssert.AreEqual(expectedSort, sort);
        }
コード例 #2
0
        public void TheSorterHasTheCorrectMode()
        {
            var sorter = new NameAscendingSorter();

            Assert.AreEqual(EAudioDramaSortMode.NameAscending, sorter.SortMode);
        }