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

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

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

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

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

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

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

                Assert.IsNull(provider.CompanyName);
            }