コード例 #1
0
        public void TheFilterReturnsOnlyAudioDramasThatHaveANumber()
        {
            var provider = new SampleAudioDramaProvider();
            var filter   = new MainAudioDramasOnlyFilter();

            var filtered = filter.Filter(provider.Get().ToList()).ToList();

            Assert.IsTrue(filtered.All(x => x.AudioDramaDto.NumberEuropa.HasValue));
        }
コード例 #2
0
        public void TheFilterHasTheCorrectMode()
        {
            var filter = new MainAudioDramasOnlyFilter();

            Assert.AreEqual(EAudioDramaFilterMode.MainsOnly, filter.FilterMode);
        }