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

            tp.ProcessingPresenationType = PreseantationTypeCode.Calculation;

            DateTime start = DateTime.Now;

            Console.WriteLine("Reading file: {0}", GAAP_CI_CALCULATION_FILE_07_06);

            int errors = 0;

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

            Assert.AreEqual("http://www.xbrl.org/2003/linkbase", tp.theManager.DefaultNamespace);

            errors = 0;
            int nodes = tp.LoadLinks(out errors);

            Assert.AreEqual(0, errors);
            Assert.AreEqual(6, nodes, "Wrong number of calculation nodes loaded");



            DateTime end = DateTime.Now;

            Console.WriteLine("Processing complete. Time elapsed: {0}", (end - start).ToString());
            //Console.WriteLine( tp.ToXmlString() );
        }
Пример #2
0
        public void LoadCalculationLinks_07_06()
        {
            TestPresentation tp = new TestPresentation();
            tp.ProcessingPresenationType = PreseantationTypeCode.Calculation;

            DateTime start = DateTime.Now;
            Console.WriteLine( "Reading file: {0}", GAAP_CI_CALCULATION_FILE_07_06 );

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

            Assert.AreEqual( "http://www.xbrl.org/2003/linkbase", tp.theManager.DefaultNamespace );

            errors = 0;
            int nodes = tp.LoadLinks( out errors );

            Assert.AreEqual( 0, errors );
            Assert.AreEqual( 6, nodes, "Wrong number of calculation nodes loaded" );

            DateTime end = DateTime.Now;

            Console.WriteLine( "Processing complete. Time elapsed: {0}", (end-start).ToString() );
            //Console.WriteLine( tp.ToXmlString() );
        }
Пример #3
0
        public void Output_USFR_PT_Presentation_07_06()
        {
            TestPresentation tp = new TestPresentation();

            tp.ProcessingPresenationType = PreseantationTypeCode.Presentation;

            DateTime start  = DateTime.Now;
            int      errors = 0;

            Console.WriteLine("Reading file: {0}", PT_PRESENTATION_FILE_07_06);

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

            Assert.AreEqual("http://www.xbrl.org/2003/linkbase", tp.theManager.DefaultNamespace);

            errors = 0;
            int nodes = tp.LoadLinks(out errors);

            Assert.AreEqual(4, errors);
            Assert.AreEqual(3, nodes, "Wrong number of nodes loaded");

            DateTime end = DateTime.Now;

            Console.WriteLine("Processing complete. Time elapsed: {0}", (end - start).ToString());

            using (StreamWriter sw = new StreamWriter(PT_OUT_FILE))
            {
                sw.Write(tp.ToXmlString());
            }
        }
Пример #4
0
        public void Output_USFR_PT_Presentation_07_06()
        {
            TestPresentation tp = new TestPresentation();
            tp.ProcessingPresenationType = PreseantationTypeCode.Presentation;

            DateTime start = DateTime.Now;
            int errors = 0;
            Console.WriteLine( "Reading file: {0}", PT_PRESENTATION_FILE_07_06 );

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

            Assert.AreEqual( "http://www.xbrl.org/2003/linkbase", tp.theManager.DefaultNamespace );

            errors = 0;
            int nodes = tp.LoadLinks( out errors );

            Assert.AreEqual( 4, errors );
            Assert.AreEqual( 3, nodes, "Wrong number of nodes loaded" );

            DateTime end = DateTime.Now;

            Console.WriteLine( "Processing complete. Time elapsed: {0}", (end-start).ToString() );

            using ( StreamWriter sw = new StreamWriter( PT_OUT_FILE ) )
            {
                sw.Write( tp.ToXmlString() );
            }
        }