상속: ProviderBase
예제 #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);
                }
예제 #2
0
            public void ReturnsValidInitialization()
            {
                var provider = new BitBucketProvider();
                var valid = provider.Initialize("https://bitbucket.org/CatenaLogic/GitLink");

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

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

                Assert.IsFalse(valid);
            }
예제 #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);
                }