Ejemplo n.º 1
0
        /// <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());
        }
Ejemplo n.º 2
0
        /// <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());
        }
Ejemplo n.º 3
0
 public TestRunning(ThreadRunResults t)
 {
     results = t;
 }
Ejemplo n.º 4
0
 public TestRunning(ThreadRunResults t)
 {
     results = t;
 }