public void ReturnsInValidInitialization() { var provider = new VisualStudioTeamServicesProvider(); var valid = provider.Initialize("https://github.com/CatenaLogic/GitLink"); Assert.IsFalse(valid); }
public void ReturnsValidInitialization() { var provider = new VisualStudioTeamServicesProvider(); var valid = provider.Initialize("https://my-account.visualstudio.com/_git/main-repo"); Assert.IsTrue(valid); }
public void ReturnsValidRepositoryNameWhenContainsPeriod() { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize("https://CatenaLogic.visualstudio.com/Big.Project/_git/main.repo"); Assert.AreEqual("main.repo", provider.ProjectUrl); }
public void ReturnsValidProject2() { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize("https://CatenaLogic.visualstudio.com/BigProject/_git/main-repo"); Assert.AreEqual("BigProject", provider.ProjectName); }
public void ReturnsValidCompanyUrl() { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize("https://CatenaLogic.visualstudio.com/_git/main-repo"); Assert.AreEqual("https://CatenaLogic.visualstudio.com/", provider.CompanyUrl); }
public void ReturnsValidCompanyUrl(string url, string expectedCompanyUrl) { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize(url); Assert.AreEqual(expectedCompanyUrl, provider.CompanyUrl); }
public void ReturnsValidRepositoryName(string url, string expectedProjectUrl) { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize(url); Assert.AreEqual(expectedProjectUrl, provider.ProjectUrl); }
public void ReturnsValidCompanyUrlWhenContainsPeriod() { var provider = new VisualStudioTeamServicesProvider(); provider.Initialize("https://Catena.Logic.visualstudio.com/BigProject/_git/main-repo"); Assert.AreEqual("https://Catena.Logic.visualstudio.com/BigProject/", provider.ProjectUrl); }