Пример #1
0
        public void LoadCalculationRoleRefs_07_06()
        {
            TestPresentation tp = new TestPresentation();

            tp.ProcessingPresenationType = PreseantationTypeCode.Calculation;

            int errors = 0;

            if (tp.Load(GAAP_CI_CALCULATION_FILE_07_06, out errors) == false)
            {
                Assert.Fail((string)tp.ErrorList[0]);
            }

            int numErrors = 0;

            tp.LoadRoleRefs(out numErrors);

            Assert.AreEqual(0, numErrors);
            Assert.IsNotNull(tp.roleRefs);
            Assert.AreEqual(6, tp.roleRefs.Count);

            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/TotalStockholdersEquityCalculation"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition"));

            RoleRef     rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/TotalStockholdersEquityCalculation"] as RoleRef;
            TestRoleRef rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);
        }
Пример #2
0
        public void LoadCalculationRoleRefs_07_06()
        {
            TestPresentation tp = new TestPresentation();
            tp.ProcessingPresenationType = PreseantationTypeCode.Calculation;

            int errors = 0;
            if ( tp.Load( GAAP_CI_CALCULATION_FILE_07_06, out errors ) == false )
            {
                Assert.Fail( (string)tp.ErrorList[0]);
            }

            int numErrors = 0;
            tp.LoadRoleRefs( out numErrors );

            Assert.AreEqual( 0, numErrors );
            Assert.IsNotNull( tp.roleRefs );
            Assert.AreEqual( 6, tp.roleRefs.Count );

            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/TotalStockholdersEquityCalculation" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition" ) );

            RoleRef rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/TotalStockholdersEquityCalculation"] as RoleRef;
            TestRoleRef rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );
        }
Пример #3
0
        public void Test_Presentation_RoleRefs_07_06()
        {
            TestPresentation tp = new TestPresentation();

            tp.ProcessingPresenationType = PreseantationTypeCode.Presentation;

            int errors = 0;

            if (tp.Load(GAAP_PRESENTATION_FILE_07_06, out errors) == false)
            {
                Assert.Fail((string)tp.ErrorList[0]);
            }

            int numErrors = 0;

            tp.LoadRoleRefs(out numErrors);

            Assert.AreEqual(0, numErrors);
            Assert.IsNotNull(tp.roleRefs);
            Assert.AreEqual(6, tp.roleRefs.Count);

            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/Notes"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement"));
            Assert.IsTrue(tp.roleRefs.ContainsKey("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition"));

            RoleRef     rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity"] as RoleRef;
            TestRoleRef rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);

            Assert.AreEqual("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity", rt.Uri);
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd#StatementStockholdersEquity", rt.Href);
            Assert.AreEqual("StatementStockholdersEquity", rt.GetId());
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd", rt.GetSchemaName());

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect"] as RoleRef;
            rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);

            Assert.AreEqual("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect", rt.Uri);
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd#StatementCashFlowsDirect", rt.Href);
            Assert.AreEqual("StatementCashFlowsDirect", rt.GetId());
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd", rt.GetSchemaName());

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect"] as RoleRef;
            rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);

            Assert.AreEqual("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect", rt.Uri);
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd#StatementCashFlowsIndirect", rt.Href);
            Assert.AreEqual("StatementCashFlowsIndirect", rt.GetId());
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd", rt.GetSchemaName());

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement"] as RoleRef;
            rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);

            Assert.AreEqual("http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement", rt.Uri);
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd#IncomeStatement", rt.Href);
            Assert.AreEqual("IncomeStatement", rt.GetId());
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd", rt.GetSchemaName());

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition"] as RoleRef;
            rt = new TestRoleRef(rr);

            Assert.IsNotNull(rt);

            Assert.AreEqual("http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition", rt.Uri);
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd#StatementFinancialPosition", rt.Href);
            Assert.AreEqual("StatementFinancialPosition", rt.GetId());
            Assert.AreEqual("us-gaap-ci-2004-07-06.xsd", rt.GetSchemaName());
        }
Пример #4
0
        public void Test_RoleRefs_06_15()
        {
            TestPresentation tp = new TestPresentation();
            tp.ProcessingPresenationType = PreseantationTypeCode.Presentation;

            int errors = 0;
            if ( tp.Load( GAAP_PRESENTATION_FILE_06_15, out errors ) == false )
            {
                Assert.Fail( (string)tp.ErrorList[0]);
            }

            int numErrors = 0;
            tp.LoadRoleRefs( out numErrors );

            Assert.AreEqual( 0, numErrors );
            Assert.IsNotNull( tp.roleRefs );
            Assert.AreEqual( 5, tp.roleRefs.Count );

            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement" ) );
            Assert.IsTrue( tp.roleRefs.ContainsKey( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition" ) );

            RoleRef rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity"] as RoleRef;
            TestRoleRef rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );

            Assert.AreEqual( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementStockholdersEquity", rt.Uri );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd#StatementStockholdersEquity", rt.Href );
            Assert.AreEqual( "StatementStockholdersEquity", rt.GetId() );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd", rt.GetSchemaName() );

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect"] as RoleRef;
            rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );

            Assert.AreEqual( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsDirect", rt.Uri );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd#StatementCashFlowsDirect", rt.Href );
            Assert.AreEqual( "StatementCashFlowsDirect", rt.GetId() );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd", rt.GetSchemaName() );

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect"] as RoleRef;
            rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );

            Assert.AreEqual( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementCashFlowsIndirect", rt.Uri );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd#StatementCashFlowsIndirect", rt.Href );
            Assert.AreEqual( "StatementCashFlowsIndirect", rt.GetId() );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd", rt.GetSchemaName() );

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement"] as RoleRef;
            rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );

            Assert.AreEqual( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/IncomeStatement", rt.Uri );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd#IncomeStatement", rt.Href );
            Assert.AreEqual( "IncomeStatement", rt.GetId() );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd", rt.GetSchemaName() );

            //http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition
            rr = tp.roleRefs["http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition"] as RoleRef;
            rt = new TestRoleRef( rr );

            Assert.IsNotNull( rt );

            Assert.AreEqual( "http://www.xbrl.org/taxonomy/us/fr/gaap/role/StatementFinancialPosition", rt.Uri );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd#StatementFinancialPosition", rt.Href );
            Assert.AreEqual( "StatementFinancialPosition", rt.GetId() );
            Assert.AreEqual( "us-gaap-ci-2004-06-15.xsd", rt.GetSchemaName() );
        }