public async Task GetXmltvAsync_Not_Throw_InvalidXtreamUrlFormatException(string url) { var xtreamClient = new XtreamClient(DefaultHttpClientFactory.Default); await Should.ThrowAsync <HttpRequestException>(xtreamClient.GetXmltvAsync(new XtUrlConnectionFactory(url).Create(), CancellationToken.None)); }
public async Task GetXmltvAsync_BasicAuth_Not_Throw_InvalidXtreamUrlFormatException(string server, string username, string password) { var xtreamClient = new XtreamClient(DefaultHttpClientFactory.Default); await Should.ThrowAsync <HttpRequestException>(xtreamClient.GetXmltvAsync(new XtBasicConnectionFactory(server, username, password).Create(), CancellationToken.None)); }
public async Task IsXtreamPlaylist_Shoold_false(string url) { XtreamClient.IsXtreamPlaylist(url).ShouldBe(false); }