/// <summary> /// Test a teleport between two regions that are not neighbours and do not share any neighbours in common. /// </summary> /// Does not yet do what is says on the tin. /// Commenting for now //[Test, LongRunning] public void TestSimpleNotNeighboursTeleport() { TestHelper.InMethod(); ThreadRunResults results = new ThreadRunResults(); results.Result = false; results.Message = "Test did not run"; TestRunning testClass = new TestRunning(results); Thread testThread = new Thread(testClass.run); try { // Seems kind of redundant to start a thread and then join it, however.. We need to protect against // A thread abort exception in the simulator code. testThread.Start(); testThread.Join(); } catch (ThreadAbortException) { } Assert.That(testClass.results.Result, Is.EqualTo(true), testClass.results.Message); // Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); }
/// <summary> /// Test a teleport between two regions that are not neighbours and do not share any neighbours in common. /// </summary> /// Does not yet do what is says on the tin. /// Commenting for now //[Test, LongRunning] public void TestSimpleNotNeighboursTeleport() { TestHelpers.InMethod(); ThreadRunResults results = new ThreadRunResults(); results.Result = false; results.Message = "Test did not run"; TestRunning testClass = new TestRunning(results); Thread testThread = new Thread(testClass.run); try { // Seems kind of redundant to start a thread and then join it, however.. We need to protect against // A thread abort exception in the simulator code. testThread.Start(); testThread.Join(); } catch (ThreadAbortException) { } Assert.That(testClass.results.Result, Is.EqualTo(true), testClass.results.Message); // Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); }
public TestRunning(ThreadRunResults t) { results = t; }