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); }
public void TheSorterHasTheCorrectMode() { var sorter = new NameAscendingSorter(); Assert.AreEqual(EAudioDramaSortMode.NameAscending, sorter.SortMode); }