예제 #1
0
 public void ConsoleInput()
 {
     using (var GraphicsDevice = Mock.CreateGraphicsDevice())
         using (var Runner = new TestEngine(StackGame.Empty, Mock.Wrap(GraphicsDevice), Mock.Input))
         {
             Runner.Console.Visible = true;
             Runner.KeyPress(Keys.A);
             Runner.KeyPress(Keys.LeftShift, Keys.A);
             Assert.AreEqual("aA", Runner.Console.Input);
         }
 }