コード例 #1
0
    public void IsSingleVideoUri_WithSingleVideoUri()
    {
      var uriConverter = new UriConverter(_webClient.Object);

      string videoUri = "http://www.youtube.com/watch?v=nXBOfXj6cvE";

      Assert.IsTrue(uriConverter.IsSingleVideoUri(videoUri));
    }
コード例 #2
0
    public void IsSingleVideoUri_WithPlaylistUri()
    {
      var uriConverter = new UriConverter(_webClient.Object);

      string playlistUri = "http://www.youtube.com/view_play_list?p=7BD938126500CF21";

      Assert.IsFalse(uriConverter.IsSingleVideoUri(playlistUri));
    }
コード例 #3
0
    public void IsSingleVideoUri_WithValidVideoUri()
    {
      var uriConverter = new UriConverter(_webClient.Object);

      var videoUri = "http://www.youtube.com/watch?v=6mgZZ3og1g0";

      Assert.IsTrue(uriConverter.IsSingleVideoUri(videoUri));
    }