示例#1
0
        public void Run_StartsEventLoop()
        {
            _mockEventDispatcher.Setup(_ => _.Register <WindowCloseEvent>(_target.OnClose));
            _mockEventDispatcher.Setup(_ => _.Register <WindowResizeEvent>(_target.OnResize));
            _mockApplication.Setup(_ => _.Start());
            _mockApplication.Setup(_ => _.Stop());
            _mockWindow.Setup(_ => _.Init("Test", _settings));
            _mockWindow.Setup(_ => _.GetTimestep()).Returns(0);
            _mockWindow.Setup(_ => _.Close());
            _mockWindow.Setup(_ => _.OnUpdate()).Callback(() => _target.OnClose(new WindowCloseEvent()));
            _mockLayerContainer.Setup(_ => _.Update(It.IsAny <float>()));
            _mockLayerContainer.Setup(_ => _.RemoveAll());
            _mockRenderContext.Setup(_ => _.Clear());

            _target.Run("Test");
        }
示例#2
0
        private static void Main(params string[] args)
        {
            var isFabric = args.Length > 0 && args[0].Equals("Fabric", StringComparison.InvariantCultureIgnoreCase);

            ApplicationRunner <Application.SampleService> .Run(isFabric);
        }
示例#3
0
 protected override void Act() => _result = _sut.Run();
示例#4
0
 private static void Main()
 {
     ApplicationRunner <Application.SampleService> .Run();
 }
 static void Main()
 {
     ApplicationRunner.Run();
 }
示例#6
0
 private static void Main(params string[] args)
 {
     ApplicationRunner <Application.SampleService> .Run();
 }