コード例 #1
0
            public void CorrectlyValidatesForUrls(string url, bool expectedValue)
            {
                var provider = new CustomRawUrlProvider();
                var valid    = provider.Initialize(url);

                Assert.AreEqual(expectedValue, valid);
            }
コード例 #2
0
            public void ReturnsValidRawGitUrlWithNoTrailingSlash()
            {
                var provider = new CustomRawUrlProvider();

                provider.Initialize("http://example.com/repo/");

                Assert.AreEqual("http://example.com/repo", provider.RawGitUrl);
            }
コード例 #3
0
            public void ReturnsNullProjectUrl()
            {
                var provider = new CustomRawUrlProvider();

                provider.Initialize("http://example.com/repo");

                Assert.IsNull(provider.ProjectUrl);
            }
コード例 #4
0
            public void ReturnsNullCompany()
            {
                var provider = new CustomRawUrlProvider();

                provider.Initialize("http://example.com/repo");

                Assert.IsNull(provider.CompanyName);
            }