Exemplo n.º 1
0
        public void TestEtrade_Calculation()
        {
            //Trace.Listeners.Add( new TextWriterTraceListener(Console.Out) );
            string fileName = TestCommon.FolderRoot + @"ETRADE-20060930" + System.IO.Path.DirectorySeparatorChar + "etfc-20060930.xsd";

            TestTaxonomy_MSFT_FIN s = new TestTaxonomy_MSFT_FIN();

            int errors = 0;

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

            errors = 0;
            s.Parse(out errors);

            s.currentLabelRole = @"preferredLabel";
            s.currentLanguage  = @"en";

            ArrayList nodes = s.GetNodesByCalculation();

            Assert.AreEqual(5, nodes.Count, "wrong number of top level presentation nodes");
        }
Exemplo n.º 2
0
        public void TestEtrade_Calculation()
        {
            //Trace.Listeners.Add( new TextWriterTraceListener(Console.Out) );
            string fileName = TestCommon.FolderRoot + @"ETRADE-20060930" + System.IO.Path.DirectorySeparatorChar + "etfc-20060930.xsd";

            TestTaxonomy_MSFT_FIN s = new TestTaxonomy_MSFT_FIN();

            int errors = 0;

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

            errors = 0;
            s.Parse(out errors);

            s.currentLabelRole = @"preferredLabel";
            s.currentLanguage = @"en";

            ArrayList nodes = s.GetNodesByCalculation();
            Assert.AreEqual(5, nodes.Count, "wrong number of top level presentation nodes");
        }