[Test] public void PT_VerifyPresentationTypes() { TestSchema s = new TestSchema(); ErrorInfo ei = null; if (s.Load(PT_GAAP_FILE, out ei) != true) { Assert.IsNotNull(ei); Assert.Fail(ei.ExceptionMsg); } 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 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_LoadPresentationSchema() { 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; Presentation p = s.LoadPresentationSchema( out errors ); Assert.IsNotNull( p ); Assert.AreEqual( 22, errors ); }
[Test] public void GAAP_LoadPresentationSchema() { 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; Presentation p = s.LoadPresentationSchema(out errors); Assert.IsNotNull(p); Assert.AreEqual(22, errors); }
[Test] public void PT_ReadElements() { TestSchema s = new TestSchema(); ErrorInfo ei = null; Assert.AreEqual(true, s.Load(PT_GAAP_FILE, out ei), "Could not load PT GAAP File"); Assert.IsNull(ei); 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(1052, errors, "load elements failed"); }
public void PT_VerifyPresentationTypes() { TestSchema s = new TestSchema(); ErrorInfo ei = null; if ( s.Load( PT_GAAP_FILE, out ei ) != true ) { Assert.IsNotNull( ei ); Assert.Fail( ei.ExceptionMsg ); } 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 PT_ReadElements() { TestSchema s = new TestSchema(); ErrorInfo ei = null; Assert.AreEqual( true, s.Load( PT_GAAP_FILE, out ei ), "Could not load PT GAAP File" ); Assert.IsNull( ei ); 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( 1052, errors, "load elements failed" ); }
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" ); } }