示例#1
0
        public void GAAP_GetDependantTaxonomies()
        {
            TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28();
            int errors = 0;

            if (!s.Load(US_GAAP_FILE, out errors))
            {
                Assert.Fail((string)s.ErrorList[0]);
            }

            errors = 0;
            ArrayList imps = s.GetDependantTaxonomies(false, out errors);

            Assert.AreEqual(0, errors, "error list not 0");

            Assert.AreEqual(2, imps.Count, "wrong number of imports returned");

            Assert.AreEqual(@"S:\TestSchemas\XBRL 2.1 Updated\2005-02-28\usfr-ptr-2005-02-28.xsd", imps[0]);
        }
        public void GAAP_GetDependantTaxonomies()
        {
            TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28();
            int errors = 0;

            if ( !s.Load( US_GAAP_FILE, out errors ) )
            {
                Assert.Fail( (string)s.ErrorList[0]);
            }

            errors = 0;
            ArrayList imps = s.GetDependantTaxonomies( false, out errors );
            Assert.AreEqual( 0, errors, "error list not 0" );

            Assert.AreEqual( 2, imps.Count, "wrong number of imports returned" );

            Assert.AreEqual(@"S:\TestSchemas\XBRL 2.1 Updated\2005-02-28\usfr-ptr-2005-02-28.xsd", imps[0]);
        }