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"); }
private static void Main(params string[] args) { var isFabric = args.Length > 0 && args[0].Equals("Fabric", StringComparison.InvariantCultureIgnoreCase); ApplicationRunner <Application.SampleService> .Run(isFabric); }
protected override void Act() => _result = _sut.Run();
private static void Main() { ApplicationRunner <Application.SampleService> .Run(); }
static void Main() { ApplicationRunner.Run(); }
private static void Main(params string[] args) { ApplicationRunner <Application.SampleService> .Run(); }