コード例 #1
0
        [Test] public void GAAP_VerifyPresentationTypes()
        {
            TestSchema s = new TestSchema();

            ErrorInfo ei = null;

            if (s.Load(US_GAAP_FILE, out ei) != true)
            {
                Assert.IsNotNull(ei);
                Assert.Fail(ei.ExceptionMsg);
            }

            int errors = 0;

            s.TestParse(out errors);
            Assert.AreEqual(27, errors, "parse failed");

            errors = 0;
            Presentation p = s.LoadPresentationSchema(out errors);

            Assert.AreEqual(22, errors, "presentation schema failed");
            Assert.IsNotNull(p);

            if (s.VerifyPresentationTypes(p, out errors) == false)
            {
                Assert.Fail("There are " + errors + " failures in the VerifyPresentationTypes call");
            }
        }
コード例 #2
0
        [Test] public void PT_VerifyPresentationTypes()
        {
            TestSchema s = new TestSchema();

            ErrorInfo ei = null;

            if (s.Load(PT_GAAP_FILE, out ei) != true)
            {
                Assert.IsNotNull(ei);
                Assert.Fail(ei.ExceptionMsg);
            }

            int errors = 0;

            s.LoadRoleTypes(out errors);
            //s.TestParse( out errors );
            Assert.AreEqual(0, errors, "load role types failure");

            Presentation p = s.LoadPresentationSchema(out errors);

            Assert.AreEqual(4, errors);
            Assert.IsNotNull(p);

            if (s.VerifyPresentationTypes(p, out errors) == false)
            {
                Assert.Fail("There are " + errors + " failures in the VerifyPresentationTypes call");
            }
        }
コード例 #3
0
ファイル: TestSchema.cs プロジェクト: plamikcho/xbrlpoc
        public void PT_VerifyPresentationTypes()
        {
            TestSchema s = new TestSchema();

            ErrorInfo ei = null;

            if ( s.Load( PT_GAAP_FILE, out ei ) != true )
            {
                Assert.IsNotNull( ei );
                Assert.Fail( ei.ExceptionMsg );
            }

            int errors = 0;

            s.LoadRoleTypes( out errors );
            //s.TestParse( out errors );
            Assert.AreEqual( 0, errors, "load role types failure" );

            Presentation p = s.LoadPresentationSchema( out errors );
            Assert.AreEqual(4, errors );
            Assert.IsNotNull( p );

            if ( s.VerifyPresentationTypes( p, out errors ) == false )
            {
                Assert.Fail( "There are " + errors + " failures in the VerifyPresentationTypes call" );
            }
        }
コード例 #4
0
ファイル: TestSchema.cs プロジェクト: plamikcho/xbrlpoc
        public void GAAP_VerifyPresentationTypes()
        {
            TestSchema s = new TestSchema();

            ErrorInfo ei = null;

            if ( s.Load( US_GAAP_FILE, out ei ) != true )
            {
                Assert.IsNotNull( ei );
                Assert.Fail( ei.ExceptionMsg );
            }

            int errors = 0;

            s.TestParse( out errors );
            Assert.AreEqual( 27, errors, "parse failed" );

            errors = 0;
            Presentation p = s.LoadPresentationSchema( out errors );
            Assert.AreEqual(22, errors, "presentation schema failed" );
            Assert.IsNotNull( p );

            if ( s.VerifyPresentationTypes( p, out errors ) == false )
            {
                Assert.Fail( "There are " + errors + " failures in the VerifyPresentationTypes call" );
            }
        }