Пример #1
0
 public void TestMultipleElementNamespaceContainsTheFurtherNamespaces()
 {
     this.ParseNamespaceWithManyNamespacesInside();
     FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1);
     this.AssertNamespaceContains(nspace, this.GetElement <FAMIX.Namespace>(2));
     this.AssertNamespaceContains(nspace, this.GetElement <FAMIX.Namespace>(3));
 }
Пример #2
0
 public void TestSingleElementNamespaceContainsTheSecondNamespace()
 {
     this.ParseNamespaceWithNamespaceInside();
     FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1);
     this.AssertNamespaceContains(nspace, this.GetElement <FAMIX.Namespace>(1));
 }
Пример #3
0
 public void TestSingleElementNamespaceGeneratesANamespaceWithOneChilds()
 {
     this.ParseNamespaceWithNamespaceInside();
     FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1);
     Assert.AreEqual(1, nspace.ChildScopes.Count);
 }
Пример #4
0
 public void AssertNamespaceContains(FAMIX.Namespace nspace, FAMIX.Namespace nspaceInside)
 {
     Assert.IsTrue(nspace.ChildScopes.Contains(nspaceInside));
 }
Пример #5
0
 public void TestEmptyNamespaceGeneratesAnEmptyNamespace()
 {
     this.ParseEmptyNamespace();
     FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1);
     Assert.AreEqual(0, nspace.ChildScopes.Count);
 }
Пример #6
0
 public void TestMultipleElementNamespaceGeneratesANamespaceWithManyChilds()
 {
     this.ParseNamespaceWithManyNamespacesInside();
     FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1);
     Assert.AreEqual(2, nspace.ChildScopes.Count);
 }