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)); }
public void TestSingleElementNamespaceContainsTheSecondNamespace() { this.ParseNamespaceWithNamespaceInside(); FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1); this.AssertNamespaceContains(nspace, this.GetElement <FAMIX.Namespace>(1)); }
public void TestSingleElementNamespaceGeneratesANamespaceWithOneChilds() { this.ParseNamespaceWithNamespaceInside(); FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1); Assert.AreEqual(1, nspace.ChildScopes.Count); }
public void AssertNamespaceContains(FAMIX.Namespace nspace, FAMIX.Namespace nspaceInside) { Assert.IsTrue(nspace.ChildScopes.Contains(nspaceInside)); }
public void TestEmptyNamespaceGeneratesAnEmptyNamespace() { this.ParseEmptyNamespace(); FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1); Assert.AreEqual(0, nspace.ChildScopes.Count); }
public void TestMultipleElementNamespaceGeneratesANamespaceWithManyChilds() { this.ParseNamespaceWithManyNamespacesInside(); FAMIX.Namespace nspace = this.GetElement <FAMIX.Namespace>(1); Assert.AreEqual(2, nspace.ChildScopes.Count); }