public void ReturnsValidProjectUrl() { var provider = new BitBucketProvider(); provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink"); Assert.AreEqual("https://bitbucket.org/CatenaLogic/GitLink", provider.ProjectUrl); }
public void ReturnsValidInitialization() { var provider = new BitBucketProvider(); var valid = provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink"); Assert.IsTrue(valid); }
public void ReturnsValidCompany() { var provider = new BitBucketProvider(); provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink"); Assert.AreEqual("CatenaLogic", provider.CompanyName); }
public void ReturnsInValidInitialization() { var provider = new BitBucketProvider(); var valid = provider.Initialize("https://github.com/CatenaLogic/GitLink"); Assert.IsFalse(valid); }
public void ReturnsValidProjectUrlWhenContainsPeriod() { var provider = new BitBucketProvider(); provider.Initialize("https://bitbucket.org/CatenaLogic/dotted.Project"); Assert.AreEqual("https://bitbucket.org/CatenaLogic/dotted.Project", provider.ProjectUrl); }