Пример #1
0
 public void GetTerm()
 {
     if (!ContextSharePoint.VerifyServer(Site)) Assert.Inconclusive();
     Taxonomy = new Taxonomy(this.Site, this.Logger, "Managed Metadata Service", "Test");
     Assert.IsTrue(Taxonomy.GetAllTerms().Any());
     Assert.IsTrue(Taxonomy.GetTerms("Test").Any());
     Assert.IsTrue(Taxonomy.GetSubTerms("Test","Adrian").Count==0);
 }
Пример #2
0
 public void AddTerm()
 {
     if (!ContextSharePoint.VerifyServer(Site)) Assert.Inconclusive();
     Taxonomy = new Taxonomy(this.Site, this.Logger, "Managed Metadata Service","Test");
     Assert.IsTrue(Taxonomy.AddTerms("Adrian"));            
 }
Пример #3
0
 public void AddGroupFail()
 {
     if (!ContextSharePoint.VerifyServer(Site)) Assert.Inconclusive();
     Taxonomy = new Taxonomy(this.Site, this.Logger, string.Empty);
     Assert.IsFalse(Taxonomy.AddGroup("Test"));
 }