public void MyTestCleanup() { Cleanup(); // Delete unzipped test files if test otherwise passed to make sure file handles // are not still open. Files may still be open otherwise, and trying this could // mask the original error. if (TestFilesDirs != null && TestContext.CurrentTestOutcome == UnitTestOutcome.Passed) { foreach (TestFilesDir dir in TestFilesDirs) { if (dir != null) { dir.Dispose(); } } } STOPWATCH.Stop(); Settings.Release(); // Save profile snapshot if we are profiling. DotTraceProfile.Save(); // var log = new Log<AbstractUnitTest>(); // log.Info( // string.Format(TestContext.TestName + " finished in {0:0.000} sec.\r\n-----------------------", // STOPWATCH.ElapsedMilliseconds / 1000.0)); }
public void MyTestCleanup() { Cleanup(); STOPWATCH.Stop(); Settings.Release(); // Save profile snapshot if we are profiling. DotTraceProfile.Save(); // var log = new Log<AbstractUnitTest>(); // log.Info( // string.Format(TestContext.TestName + " finished in {0:0.000} sec.\r\n-----------------------", // STOPWATCH.ElapsedMilliseconds / 1000.0)); }
public void MyTestInitialize() { // Stop profiler if we are profiling. The unit test will start profiling explicitly when it wants to. DotTraceProfile.Stop(true); // var log = new Log<AbstractUnitTest>(); // log.Info(TestContext.TestName + " started"); Settings.Init(); // ReSharper disable once UnusedVariable var dummy = TestSmallMolecules; // First access turns on the non-proteomic test node behavior if needed STOPWATCH.Restart(); Initialize(); }
public void MyTestInitialize() { // Stop profiler if we are profiling. The unit test will start profiling explicitly when it wants to. DotTraceProfile.Stop(true); SecurityProtocolInitializer.Initialize(); // Enable maximum available HTTPS security level, esp. for Chorus // var log = new Log<AbstractUnitTest>(); // log.Info(TestContext.TestName + " started"); Settings.Init(); TestSmallMolecules = GetBoolValue("TestSmallMolecules", false); STOPWATCH.Restart(); Initialize(); }
public void MyTestInitialize() { Program.UnitTest = true; // Stop profiler if we are profiling. The unit test will start profiling explicitly when it wants to. DotTraceProfile.Stop(true); SecurityProtocolInitializer.Initialize(); // Enable maximum available HTTPS security level // var log = new Log<AbstractUnitTest>(); // log.Info(TestContext.TestName + " started"); Settings.Init(); STOPWATCH.Restart(); Initialize(); }