public void TheSorterSortsTheAudioDramasAscendingByTheirNumber() { var provider = new SampleAudioDramaProvider(); var sorter = new NumberAscendingSorter(); var audioDramas = provider.Get().ToList(); var expectedSort = audioDramas.OrderBy(x => x.AudioDramaDto.NumberEuropa).ToList(); var sort = sorter.Sort(audioDramas).ToList(); CollectionAssert.AreEqual(expectedSort, sort); }
public void TheSorterHasTheCorrectMode() { var sorter = new NumberAscendingSorter(); Assert.AreEqual(EAudioDramaSortMode.NumberAscending, sorter.SortMode); }