Beispiel #1
0
        [Test] public void GAAP_GetLabelRoles()
        {
            TestTaxonomy_2004_07_06 s = new TestTaxonomy_2004_07_06();

            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_07_06 s = new TestTaxonomy_2004_07_06();

            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] );
        }