示例#1
0
        private static void Main(string[] args)
        {
            var renderer = new Renderer();
            var inputHandler = new InputHandler();

            var engine = new Engine(renderer, inputHandler);
            engine.Run();
        }
示例#2
0
        public void IsEngineConstructorMakeInstanceOfEngine()
        {
            var renderer = new Renderer();
            var input = new InputHandler();
            var engine = new Engine(renderer, input);

            Assert.IsInstanceOfType(engine, typeof(Engine));
        }
示例#3
0
 public void IsInputHandlerReturnsRightInstance()
 {
     var input = new InputHandler();
     Assert.IsInstanceOfType(input, typeof(InputHandler));
 }
示例#4
0
 public void IsEngineMakeStandartGameRules()
 {
     var renderer = new Renderer();
     var input = new InputHandler();
     var engine = new Engine(renderer, input);
 }