[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_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_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_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" ); } }