[Test] public void GAAP_VerifyPresentationTypes() { TestSchema s = new TestSchema(); ErrorInfo ei = null; if (s.Load(US_GAAP_FILE, out ei) != true) { Assert.IsNotNull(ei); Assert.Fail(ei.ExceptionMsg); } int errors = 0; s.TestParse(out errors); Assert.AreEqual(27, errors, "parse failed"); 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"); } }
public void GAAP_VerifyPresentationTypes() { TestSchema s = new TestSchema(); ErrorInfo ei = null; if ( s.Load( US_GAAP_FILE, out ei ) != true ) { Assert.IsNotNull( ei ); Assert.Fail( ei.ExceptionMsg ); } int errors = 0; s.TestParse( out errors ); Assert.AreEqual( 27, errors, "parse failed" ); 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" ); } }