public void ReturnsNullProjectUrl() { var provider = new CustomUrlProvider(); provider.Initialize(correctUrl); Assert.IsNull(provider.ProjectUrl); }
public void ReturnsNullCompany() { var provider = new CustomUrlProvider(); provider.Initialize(correctUrl); Assert.IsNull(provider.CompanyName); }
public void ReturnsValidRawGitUrl() { var provider = new CustomUrlProvider(); provider.Initialize(correctUrl); string correctReturnedUrl = correctUrl.Replace("{filename}", "%var2%"); correctReturnedUrl = correctReturnedUrl.Replace("{revision}", "{0}"); Assert.AreEqual(correctReturnedUrl, provider.RawGitUrl); }
public void CorrectlyValidatesForUrls(string url, bool expectedValue) { var provider = new CustomUrlProvider(); var valid = provider.Initialize(url); Assert.AreEqual(expectedValue, valid); }