public void YoutubeClient_ParseUsername_Test(string userUrl, string expectedUsername) { var username = YoutubeClient.ParseUsername(userUrl); Assert.That(username, Is.EqualTo(expectedUsername)); }
public void YoutubeClient_ParseUsername_Invalid_Test(string userUrl) { Assert.Throws <FormatException>(() => YoutubeClient.ParseUsername(userUrl)); }