public void GetVideoId_ProvidedYoutubeUrl_GetCorrectVideoId(string youtubeUrl, string expected)
            {
                // Act
                var videoId = YoutubeVideoHelper.GetVideoId(youtubeUrl);

                // Assert
                Assert.AreEqual(expected, videoId);
            }
 public void GetVideoId_YoutubeUrlIsMalformatted_ThrowsUriFormatException()
 {
     // Act & Assert
     Assert.Throws <UriFormatException>(() => YoutubeVideoHelper.GetVideoId("blah blah..."));
 }
 public void GetVideoId_YoutubeUrlIsNull_ThrowsArgumentNullException()
 {
     // Act & Assert
     Assert.Throws <ArgumentNullException>(() => YoutubeVideoHelper.GetVideoId(null));
 }