public void TestGetReferenceData_PT_06_15_2004() { TestReference testRef = new TestReference(); testRef.Load(PT_REFERENCE_06_15); 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(530, testRef.references.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"); }
public void TestGetReferenceData_FAS() { TestReference testRef = new TestReference(); testRef.Load(FAS_REFERENCE); int errors = 0; DateTime start = DateTime.Now; testRef.ParseInternal(out errors); DateTime end = DateTime.Now; Console.WriteLine("Parse FAS references took {0}", end - start); Assert.AreEqual(1, errors, "Expected 1 error to come back... but that was not the case."); Assert.AreEqual(66, testRef.references.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"); }
public void TestGetReferenceData_FAS() { TestReference testRef = new TestReference(); testRef.Load( FAS_REFERENCE ); int errors = 0; DateTime start = DateTime.Now; testRef.ParseInternal( out errors ); DateTime end = DateTime.Now; Console.WriteLine( "Parse FAS references took {0}", end-start ); Assert.AreEqual( 1, errors , "Expected 1 error to come back... but that was not the case."); Assert.AreEqual( 66, testRef.references.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" ); }
public void TestGetReferenceData_PT_07_06_2004() { TestReference testRef = new TestReference(); testRef.Load( PT_REFERENCE_07_06 ); 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( 527, testRef.references.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" ); }