예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }