public void ParseRemoteUrl_returns_the_expected_GitLabProjectInfo(string remoteUrl, string host, string @namespace, string proejctName) { // ARRANGE var expected = new GitLabProjectInfo(host, @namespace, proejctName); // ACT var actual = GitLabUrlParser.ParseRemoteUrl(remoteUrl); // ASSERT Assert.Equal(expected, actual); }
[InlineData("http://gitlab.com/user")] // missing project name public void ParseRemoteUrl_throws_ArgumentException_for_invalid_input(string url) { Assert.ThrowsAny <ArgumentException>(() => GitLabUrlParser.ParseRemoteUrl(url)); }