public void TestPresHrefIsURL_GetLinkbaseRef() { TestDocumentBase s = new TestDocumentBase(); int errors = 0; Assert.AreEqual(true, s.Load(TESTPRESHREFISURL_FILE, out errors), "Could not load TestPresHrefIsURL File"); Assert.AreEqual(0, errors); const string PRESENTATION_ROLE = "/presentationLinkbaseRef"; string[] presRef = s.GetLinkbaseReference(DocumentBase.TARGET_LINKBASE_URI + PRESENTATION_ROLE); // presRef should be the URL without the schema path Assert.AreEqual(@"http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15/ifrs-gp-pre-bs-classified-2005-05-15.xml", presRef[0]); }
public void GAAP_GetLinkbaseRef_Presentation() { TestDocumentBase s = new TestDocumentBase(); //ErrorInfo ei = null; int errors = 0; Assert.AreEqual( true, s.Load( US_GAAP_FILE, out errors ), "Could not load US GAAP File" ); Assert.AreEqual( 0, errors ); const string PRESENTATION_ROLE = "/presentationLinkbaseRef"; string[] presRef = s.GetLinkbaseReference( DocumentBase.TARGET_LINKBASE_URI + PRESENTATION_ROLE ); Assert.AreEqual( TestCommon.FolderRoot + @"XBRL 2.1 Updated" +System.IO.Path.DirectorySeparatorChar +"2004-07-06" +System.IO.Path.DirectorySeparatorChar +"us-gaap-ci-2004-07-06-presentation.xml", presRef[0] ); }
public void GAAP_GetLinkbaseRef_Presentation() { TestDocumentBase s = new TestDocumentBase(); //ErrorInfo ei = null; int errors = 0; Assert.AreEqual(true, s.Load(US_GAAP_FILE, out errors), "Could not load US GAAP File"); Assert.AreEqual(0, errors); const string PRESENTATION_ROLE = "/presentationLinkbaseRef"; string[] presRef = s.GetLinkbaseReference(DocumentBase.TARGET_LINKBASE_URI + PRESENTATION_ROLE); Assert.AreEqual(TestCommon.FolderRoot + @"XBRL 2.1 Updated" + System.IO.Path.DirectorySeparatorChar + "2004-07-06" + System.IO.Path.DirectorySeparatorChar + "us-gaap-ci-2004-07-06-presentation.xml", presRef[0]); }
public void TestPresHrefIsURL_GetLinkbaseRef() { TestDocumentBase s = new TestDocumentBase(); int errors = 0; Assert.AreEqual( true, s.Load( TESTPRESHREFISURL_FILE, out errors ), "Could not load TestPresHrefIsURL File" ); Assert.AreEqual( 0, errors ); const string PRESENTATION_ROLE = "/presentationLinkbaseRef"; string[] presRef = s.GetLinkbaseReference( DocumentBase.TARGET_LINKBASE_URI + PRESENTATION_ROLE ); // presRef should be the URL without the schema path Assert.AreEqual( @"http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15/ifrs-gp-pre-bs-classified-2005-05-15.xml", presRef[0] ); }