public void CanHandleAtLeastOneOf_NoLanguages_ReturnsFalse(
            SubtitleDownloaderWrapper sut)
        {
            bool result = sut.CanHandleAtLeastOneOf(new Language[0]);

            Assert.That(result, Is.True);
        }
        public void CanHandleAtLeastOneOf_DoesNotHaveSupportedLanguages_ReturnsFalse(
            Language[] anyLanguages,
            [Frozen]ISubtitleDownloader downloader,
            SubtitleDownloaderWrapper sut)
        {
            A.CallTo(() => downloader.SupportedLanguages).Returns(new Language[0]);

            bool result = sut.CanHandleAtLeastOneOf(anyLanguages);

            Assert.That(result, Is.False);
        }
        public void CanHandleAtLeastOneOf_HasOneOfTheLanguages_ReturnsTrue(
            Language handledLanguage,
            Language unhandledLanguage,
            [Frozen]ISubtitleDownloader downloader,
            SubtitleDownloaderWrapper sut)
        {
            A.CallTo(() => downloader.SupportedLanguages).Returns(new[] {handledLanguage});

            bool result = sut.CanHandleAtLeastOneOf(new[]{ unhandledLanguage, handledLanguage });

            Assert.That(result, Is.True);
        }