[Test] public void IFRS_VerifyPresentationTypes() { TestTaxonomy_IFRS_2004_06_15 s = new TestTaxonomy_IFRS_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); if (errors > 0) { SendErrorsToConsole(p.ErrorList); } Assert.AreEqual(0, errors, "presentation schema failed"); // PROBLEM with us-IFRS-ci-2004-08-15-presentation.xml ? Assert.IsNotNull(p); p.ErrorList.Clear(); if (s.VerifyPresentationTypes(p, out errors) == false) { if (errors > 0) { SendErrorsToConsole(s.ErrorList); } Assert.Fail("There are " + errors + " failures in the VerifyPresentationTypes call"); } }
public void IFRS_VerifyPresentationTypes() { TestTaxonomy_IFRS_2004_06_15 s = new TestTaxonomy_IFRS_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 ); if ( errors > 0 ) { SendErrorsToConsole( p.ErrorList ); } Assert.AreEqual(0, errors, "presentation schema failed" ); // PROBLEM with us-IFRS-ci-2004-08-15-presentation.xml ? Assert.IsNotNull( p ); p.ErrorList.Clear(); if ( s.VerifyPresentationTypes( p, out errors ) == false ) { if ( errors > 0 ) { SendErrorsToConsole( s.ErrorList ); } Assert.Fail( "There are " + errors + " failures in the VerifyPresentationTypes call" ); } }