示例#1
0
        [Test] public void ifrs_GetLabelRoles()
        {
            TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15();

            s.Load(IFRS_FILE);

            int       errors = 0;
            ArrayList roles  = s.GetLabelRoles(false, out errors);

            Assert.AreEqual(0, errors);
            Assert.AreEqual(5, roles.Count);
            Assert.AreEqual("documentation", roles[0]);
            Assert.AreEqual("label", roles[1]);
            Assert.AreEqual("periodEndLabel", roles[2]);
            Assert.AreEqual("periodStartLabel", roles[3]);
            Assert.AreEqual("restated", roles[4]);
        }
示例#2
0
        [Test] public void GAAP_GetLabelRoles()
        {
            TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15();

            s.Load(US_GAAP_FILE);

            int       errors = 0;
            ArrayList roles  = s.GetLabelRoles(false, out errors);

            Assert.AreEqual(0, errors);
            Assert.AreEqual(6, roles.Count);
            Assert.AreEqual("documentation", roles[0]);
            Assert.AreEqual("label", roles[1]);
            Assert.AreEqual("periodEndLabel", roles[2]);
            Assert.AreEqual("periodStartLabel", roles[3]);
            Assert.AreEqual("terseLabel", roles[4]);
            Assert.AreEqual("totalLabel", roles[5]);
        }
        public void GAAP_GetLabelRoles()
        {
            TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15();

            s.Load( US_GAAP_FILE );

            int errors = 0;
            ArrayList roles = s.GetLabelRoles( false, out errors );

            Assert.AreEqual( 0, errors );
            Assert.AreEqual( 6, roles.Count );
            Assert.AreEqual( "documentation", roles[0] );
            Assert.AreEqual( "label", roles[1] );
            Assert.AreEqual( "periodEndLabel", roles[2] );
            Assert.AreEqual( "periodStartLabel", roles[3] );
            Assert.AreEqual( "terseLabel", roles[4] );
            Assert.AreEqual( "totalLabel", roles[5] );
        }
        public void ifrs_GetLabelRoles()
        {
            TestTaxonomy_2004_06_15 s = new TestTaxonomy_2004_06_15();

            s.Load( IFRS_FILE );

            int errors = 0;
            ArrayList roles = s.GetLabelRoles( false, out errors );

            Assert.AreEqual( 0, errors );
            Assert.AreEqual( 5, roles.Count );
            Assert.AreEqual( "documentation", roles[0] );
            Assert.AreEqual( "label", roles[1] );
            Assert.AreEqual( "periodEndLabel", roles[2] );
            Assert.AreEqual( "periodStartLabel", roles[3] );
            Assert.AreEqual( "restated", roles[4] );
        }