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

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

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

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

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

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

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

                Assert.IsNull(provider.CompanyName);
            }