Ejemplo n.º 1
0
        /// <exclude/>
        public void TestGetReferenceData()
        {
            TestReference_2004_08_15 testRef = new TestReference_2004_08_15();

            testRef.Load( PT_REFERENCE );

            int errors = 0;
            DateTime start = DateTime.Now;
            testRef.ParseInternal( out errors );
            DateTime end = DateTime.Now;

            Console.WriteLine( "Parse PT references took {0}", end-start );

            Assert.AreEqual( 0, errors );
            Assert.AreEqual(582, testRef.ReferencesTable.Count);
            TimeSpan limit = new TimeSpan( 0, 0, 0, 0, 750 );	// allow 750 millisecondstwo seconds to load
            Assert.IsTrue( limit > (end-start), "Parse references takes too long" );
        }
Ejemplo n.º 2
0
        /// <exclude/>
        public void TestGetReferenceData()
        {
            TestReference_2004_08_15 testRef = new TestReference_2004_08_15();

            testRef.Load(PT_REFERENCE);

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

            testRef.ParseInternal(out errors);
            DateTime end = DateTime.Now;

            Console.WriteLine("Parse PT references took {0}", end - start);

            Assert.AreEqual(0, errors);
            Assert.AreEqual(582, testRef.ReferencesTable.Count);
            TimeSpan limit = new TimeSpan(0, 0, 0, 0, 750);                     // allow 750 millisecondstwo seconds to load

            Assert.IsTrue(limit > (end - start), "Parse references takes too long");
        }