Example #1
0
        public void TestTryGetPresentationSequenceForReviewersGuide3()
        {
            string fileName = @"S:\TESTSCHEMAS\RRD-20100630\rrd-20100630.xsd";

            TestUsGaap2008 s = new TestUsGaap2008();

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

            s.Parse(out errors);

            ArrayList nodes = s.GetNodesByPresentation();

            foreach (Node n in nodes)
            {

                Console.WriteLine(n.GetPresentationLink().Title);
            }

            List<string> reportSeq;
            Dictionary<string, string> excelNameToReportNameMap;
            s.TryGetPresentationSequenceForReviewersGuide(null, out excelNameToReportNameMap, out reportSeq);

            foreach (string r in reportSeq)
            {
                Console.WriteLine("Excel SheetName {0} Report name {1}", r, excelNameToReportNameMap[r]);
            }
        }