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