public void GAAP_VerifyElementTuplesHaveChildren() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.Load(US_GAAP_FILE); int errors = 0; s.Parse(out errors); s.currentLabelRole = "label"; s.currentLanguage = "en"; ArrayList nodes = s.GetNodesByElement(); Assert.IsNotNull(nodes, "No nodes returned"); foreach (Node n in nodes) { if (n.IsTuple) { Assert.IsNotNull(n.Children, "children arraylist is null"); Assert.IsTrue(n.Children.Count > 0, "Tuple doesn't have children"); Assert.AreEqual(0.0, n.Order, "order not zero"); } } }
public void GAAP_Test_VerifyTuples() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.CurrentLabelRole = "label"; s.CurrentLanguage = "en"; s.Load(US_GAAP_FILE); int errors = 0; s.Parse(out errors); ArrayList nodeList = s.GetNodesByElement(); Assert.IsNotNull(nodeList); Assert.AreEqual(1331, nodeList.Count); Console.WriteLine("Found Tuple Nodes: "); foreach (Node n in nodeList) { RecurseVerifyTuples(n); } }
public void GAAP_Test_GetNodesByElement() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.CurrentLabelRole = "label"; s.CurrentLanguage = "en"; s.Load(US_GAAP_FILE); int errors = 0; s.Parse(out errors); ArrayList nodeList = s.GetNodesByElement(); Assert.IsNotNull(nodeList); Assert.AreEqual(1367, nodeList.Count); Console.WriteLine("Nodes By Element: "); foreach (Node n in nodeList) { Console.WriteLine(TestNode.ToXml(0, n)); } }
public void GAAP_VerifyElementTuplesHaveChildren() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.Load( US_GAAP_FILE); int errors = 0; s.Parse( out errors ); s.currentLabelRole = "label"; s.currentLanguage = "en"; ArrayList nodes = s.GetNodesByElement(); Assert.IsNotNull( nodes, "No nodes returned" ); foreach ( Node n in nodes ) { if ( n.IsTuple ) { Assert.IsNotNull( n.Children, "children arraylist is null" ); Assert.IsTrue( n.Children.Count > 0, "Tuple doesn't have children" ); Assert.AreEqual( 0.0, n.Order, "order not zero" ); } } }
public void GAAP_Test_VerifyTuples() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.CurrentLabelRole = "label"; s.CurrentLanguage = "en"; s.Load( US_GAAP_FILE); int errors = 0; s.Parse( out errors ); ArrayList nodeList = s.GetNodesByElement(); Assert.IsNotNull( nodeList ); Assert.AreEqual( 1331, nodeList.Count ); Console.WriteLine( "Found Tuple Nodes: " ); foreach (Node n in nodeList ) { RecurseVerifyTuples( n ); } }
public void GAAP_Test_GetNodesByElement() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.CurrentLabelRole = "label"; s.CurrentLanguage = "en"; s.Load( US_GAAP_FILE); int errors = 0; s.Parse( out errors ); ArrayList nodeList = s.GetNodesByElement(); Assert.IsNotNull( nodeList ); Assert.AreEqual( 1367, nodeList.Count ); Console.WriteLine( "Nodes By Element: " ); foreach (Node n in nodeList ) { Console.WriteLine( TestNode.ToXml( 0, n ) ); } }