public void CorrectlyValidatesForUrls(string url, bool expectedValue) { var provider = new CustomRawUrlProvider(); var valid = provider.Initialize(url); Assert.AreEqual(expectedValue, valid); }
public void ReturnsValidRawGitUrlWithNoTrailingSlash() { var provider = new CustomRawUrlProvider(); provider.Initialize("http://example.com/repo/"); Assert.AreEqual("http://example.com/repo", provider.RawGitUrl); }
public void ReturnsNullProjectUrl() { var provider = new CustomRawUrlProvider(); provider.Initialize("http://example.com/repo"); Assert.IsNull(provider.ProjectUrl); }
public void ReturnsNullCompany() { var provider = new CustomRawUrlProvider(); provider.Initialize("http://example.com/repo"); Assert.IsNull(provider.CompanyName); }