Exemplo n.º 1
0
 public void TestGameHostExceptionDuringSetupHost()
 {
     using (var host = new ExceptionDuringSetupGameHost(nameof(TestGameHostExceptionDuringSetupHost)))
     {
         Assert.Throws <InvalidOperationException>(() => host.Run(new TestGame()));
     }
 }
        public void TestGameHostExceptionDuringSetupHost()
        {
            using (var host = new ExceptionDuringSetupGameHost(nameof(TestGameHostExceptionDuringSetupHost)))
            {
                Assert.Throws <InvalidOperationException>(() => host.Run(new TestGame()));

                Assert.AreEqual(ExecutionState.Idle, host.ExecutionState);
            }
        }