コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 public async Task IsXtreamPlaylist_Shoold_false(string url)
 {
     XtreamClient.IsXtreamPlaylist(url).ShouldBe(false);
 }