コード例 #1
0
        public void TryParseRemoteUrl_returns_the_expected_GitHubProjectInfo(string url, string host, string @namespace, string projectName)
        {
            // ARRANGE
            var expected = new GitLabProjectInfo(host, @namespace, projectName);
            // ACT
            var success = GitLabUrlParser.TryParseRemoteUrl(url, out var projectInfo);

            // ASSERT
            Assert.True(success);
            Assert.Equal(expected, projectInfo);
        }
コード例 #2
0
 [InlineData("http://gitlab.com/user")]          // missing project name
 public void TryParseRemoteUrl_returns_false_for_invalid_input(string url)
 {
     Assert.False(GitLabUrlParser.TryParseRemoteUrl(url, out var uri));
 }