[Test] public void GAAP_VerifyPresentationTypes() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; if (s.Load(US_GAAP_FILE, out errors) != true) { Assert.Fail((string)s.ErrorList[0]); } errors = 0; //s.TestParse( out errors ); //Assert.AreEqual( 22, errors, "parse failed" ); s.LoadRoleTypes(out errors); Assert.AreEqual(0, errors, "load role types returned the wrong number of errors"); errors = 0; Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(22, errors, "presentation schema failed"); Assert.IsNotNull(p); if (s.VerifyPresentationTypes(p, out errors) == false) { Assert.Fail("There are " + errors + " failures in the VerifyPresentationTypes call"); } }
[Test] public void PT_LoadPresentationSchema() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load(PT_GAAP_FILE); int errors = 0; Presentation p = s.LoadPresentationSchema(out errors); Assert.IsNotNull(p); Assert.AreEqual(4, errors); }
[Test] public void PT_ReadElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load(PT_GAAP_FILE); int errors = 0; Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(4, errors, "load presentation failed"); s.presentationInfo = p.PresentationLinks; s.LoadElements(out errors); Assert.AreEqual(0, errors, "load elements failed"); }
[Test] public void GAAP_LoadPresentationSchema() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; if (s.Load(US_GAAP_FILE, out errors) != true) { Assert.Fail((string)s.ErrorList[0]); } errors = 0; Presentation p = s.LoadPresentationSchema(out errors); Assert.IsNotNull(p); Assert.AreEqual(22, errors); }
public void GAAP_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load( US_GAAP_FILE ); Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual( 22, errors, "load presentation failed" ); s.presentationInfo = p.PresentationLinks; s.LoadElements( out errors ); Assert.AreEqual( 0, errors, "load elements failed" ); s.BindElements( new BindElementDelegate( s.BindElementToLocator ), out errors ); Assert.AreEqual( 5, errors, "bind elements failed" ); }
[Test] public void ifrs_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load(IFRS_FILE); Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(144, errors, "load presentation failed"); s.presentationInfo = p.PresentationLinks; s.LoadElements(out errors); Assert.AreEqual(5, errors, "load elements failed"); //MIN missing sometimes, maxOccurs do not exist s.BindElements(new BindElementDelegate(s.BindElementToLocator), out errors); Assert.AreEqual(0, errors, "bind elements failed"); }
[Test] public void GAAP_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load(US_GAAP_FILE); Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(22, errors, "load presentation failed"); s.presentationInfo = p.PresentationLinks; s.LoadElements(out errors); Assert.AreEqual(0, errors, "load elements failed"); s.BindElements(new BindElementDelegate(s.BindElementToLocator), out errors); Assert.AreEqual(5, errors, "bind elements failed"); }
[Test] public void PT_VerifyPresentationTypes() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load(PT_GAAP_FILE); int errors = 0; s.LoadRoleTypes(out errors); //s.TestParse( out errors ); Assert.AreEqual(0, errors, "load role types failure"); Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(4, errors); Assert.IsNotNull(p); if (s.VerifyPresentationTypes(p, out errors) == false) { Assert.Fail("There are " + errors + " failures in the VerifyPresentationTypes call"); } }
[Test] public void PT_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); DateTime start = DateTime.Now; s.Load(PT_GAAP_FILE); int errors = 0; DateTime startPres = DateTime.Now; Presentation p = s.LoadPresentationSchema(out errors); DateTime endPres = DateTime.Now; Assert.AreEqual(4, errors, "load presentation failed"); s.presentationInfo = p.PresentationLinks; DateTime startElems = DateTime.Now; s.LoadElements(out errors); DateTime endElems = DateTime.Now; Assert.AreEqual(0, errors, "load elements failed"); DateTime startBind = DateTime.Now; s.BindElements(new BindElementDelegate(s.BindElementToLocator), out errors); DateTime endBind = DateTime.Now; Console.WriteLine("Total Time: {0}", endBind - start); Console.WriteLine("Read Presentation {0}", endPres - startPres); Console.WriteLine("Read Elements {0}", endElems - startElems); Console.WriteLine("Bind Elements {0}", endBind - startBind); Assert.AreEqual(936, errors, "bind elements failed"); }
[Test] public void PT_BindLabelsToElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load(PT_GAAP_FILE); errors = 0; Presentation p = s.LoadPresentationSchema(out errors); Assert.AreEqual(4, errors, "load presentation failed"); s.presentationInfo = p.PresentationLinks; s.LoadElements(out errors); Assert.AreEqual(0, errors, "load elements failed"); s.BindElements(new BindElementDelegate(s.BindElementToLocator), out errors); Assert.AreEqual(936, errors, "bind elements failed"); errors = 0; s.LoadLabels(out errors); Assert.AreEqual(0, errors, "load labels failed"); //Trace.Listeners.Add( new TextWriterTraceListener(Console.Out) ); errors = 0; s.BindElements(new BindElementDelegate(s.BindLabelToElement), out errors); Assert.AreEqual(5, errors, "bind labels failure"); // linkPart_Name, Subparagraph, Number, Paragraph, Chapter, no corresponding label info //Trace.Listeners.Clear(); }
public void PT_VerifyPresentationTypes() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load( PT_GAAP_FILE); int errors = 0; s.LoadRoleTypes( out errors ); //s.TestParse( out errors ); Assert.AreEqual( 0, errors, "load role types failure" ); Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual(4, errors ); Assert.IsNotNull( p ); if ( s.VerifyPresentationTypes( p, out errors ) == false ) { Assert.Fail( "There are " + errors + " failures in the VerifyPresentationTypes call" ); } }
public void ifrs_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load( IFRS_FILE ); Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual( 144, errors, "load presentation failed" ); s.presentationInfo = p.PresentationLinks; s.LoadElements( out errors ); Assert.AreEqual( 5, errors, "load elements failed" ); //MIN missing sometimes, maxOccurs do not exist s.BindElements( new BindElementDelegate( s.BindElementToLocator ), out errors ); Assert.AreEqual( 0, errors, "bind elements failed" ); }
public void ifrs_LoadPresentationSchema() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; if ( s.Load( IFRS_FILE, out errors ) != true ) { Assert.Fail( (string)s.ErrorList[0] ); } errors = 0; Presentation p = s.LoadPresentationSchema( out errors ); Assert.IsNotNull( p ); Assert.AreEqual( 144, errors ); }
public void PT_BindElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); DateTime start = DateTime.Now; s.Load( PT_GAAP_FILE); int errors = 0; DateTime startPres = DateTime.Now; Presentation p = s.LoadPresentationSchema( out errors ); DateTime endPres = DateTime.Now; Assert.AreEqual( 4, errors, "load presentation failed" ); s.presentationInfo = p.PresentationLinks; DateTime startElems = DateTime.Now; s.LoadElements( out errors ); DateTime endElems = DateTime.Now; Assert.AreEqual( 0, errors, "load elements failed" ); DateTime startBind = DateTime.Now; s.BindElements( new BindElementDelegate( s.BindElementToLocator ), out errors ); DateTime endBind = DateTime.Now; Console.WriteLine( "Total Time: {0}", endBind-start ); Console.WriteLine( "Read Presentation {0}", endPres-startPres ); Console.WriteLine( "Read Elements {0}", endElems-startElems ); Console.WriteLine( "Bind Elements {0}", endBind-startBind ); Assert.AreEqual( 936, errors, "bind elements failed" ); }
public void PT_BindLabelsToElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; s.Load( PT_GAAP_FILE); errors = 0; Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual( 4, errors, "load presentation failed" ); s.presentationInfo = p.PresentationLinks; s.LoadElements( out errors ); Assert.AreEqual( 0, errors, "load elements failed" ); s.BindElements( new BindElementDelegate( s.BindElementToLocator ), out errors ); Assert.AreEqual( 936, errors, "bind elements failed" ); errors = 0; s.LoadLabels( out errors ); Assert.AreEqual( 0, errors, "load labels failed" ); //Trace.Listeners.Add( new TextWriterTraceListener(Console.Out) ); errors = 0; s.BindElements( new BindElementDelegate( s.BindLabelToElement ), out errors ); Assert.AreEqual( 5, errors, "bind labels failure" ); // linkPart_Name, Subparagraph, Number, Paragraph, Chapter, no corresponding label info //Trace.Listeners.Clear(); }
public void ifrs_VerifyPresentationTypes() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); int errors = 0; if ( s.Load( IFRS_FILE, out errors ) != true ) { Assert.Fail( (string)s.ErrorList[0]); } errors = 0; //s.TestParse( out errors ); //Assert.AreEqual( 22, errors, "parse failed" ); s.LoadRoleTypes( out errors ); Assert.AreEqual( 0, errors, "load role types returned the wrong number of errors" ); errors = 0; Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual(144, errors, "presentation schema failed" ); Assert.IsNotNull( p ); if ( s.VerifyPresentationTypes( p, out errors ) == false ) { Assert.Fail( "There are " + errors + " failures in the VerifyPresentationTypes call" ); } }
public void PT_ReadElements() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load( PT_GAAP_FILE); int errors = 0; Presentation p = s.LoadPresentationSchema( out errors ); Assert.AreEqual( 4, errors, "load presentation failed" ); s.presentationInfo = p.PresentationLinks; s.LoadElements( out errors ); Assert.AreEqual( 0, errors, "load elements failed" ); }
public void PT_LoadPresentationSchema() { TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15(); s.Load( PT_GAAP_FILE); int errors = 0; Presentation p = s.LoadPresentationSchema( out errors ); Assert.IsNotNull( p ); Assert.AreEqual( 4, errors ); }