Inheritance: ProviderBase
Esempio n. 1
0
                public void ReturnsValidProjectUrl()
                {
                    var provider = new BitBucketProvider();
                    provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink");

                    Assert.AreEqual("https://bitbucket.org/CatenaLogic/GitLink", provider.ProjectUrl);
                }
Esempio n. 2
0
            public void ReturnsValidInitialization()
            {
                var provider = new BitBucketProvider();
                var valid = provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink");

                Assert.IsTrue(valid);
            }
Esempio n. 3
0
                public void ReturnsValidCompany()
                {
                    var provider = new BitBucketProvider();
                    provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink");

                    Assert.AreEqual("CatenaLogic", provider.CompanyName);
                }
Esempio n. 4
0
            public void ReturnsInValidInitialization()
            {
                var provider = new BitBucketProvider();
                var valid = provider.Initialize("https://github.com/CatenaLogic/GitLink");

                Assert.IsFalse(valid);
            }
Esempio n. 5
0
                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);
                }