public void PerformRenderPipelineTest() { var kernel = new StandardKernel(); kernel.Load <ProtogameCoreModule>(); kernel.Load <ProtogameAssetIoCModule>(); AssetManagerClient.AcceptArgumentsAndSetup <GameAssetManagerProvider>(kernel, new string[0]); using (var game = new RenderPipelineGame(kernel)) { game.Run(); } }
public void PerformRenderPipelineTest() { // We must change directory to the location of the assembly, because // Linux doesn't load SDL DLLs properly. Environment.CurrentDirectory = new FileInfo(Assembly.GetEntryAssembly().Location).DirectoryName; var kernel = new StandardKernel(); kernel.Load <ProtogameCoreModule>(); kernel.Load <ProtogameAssetModule>(); kernel.Bind <IAssert>().ToMethod(x => _assert); kernel.Bind <ITestAttachment>().ToMethod(x => _testAttachment); using (var game = new RenderPipelineGame(kernel)) { game.Run(); } }