コード例 #1
0
ファイル: TestGame.cs プロジェクト: KhkhkhTeMakhkhKh/Glib
        public static SpriteBatch GetSpriteBatch()
        {
            initedSb = null;
            TestGame gameToTest = new TestGame();
            gameToTest.Drawn += new EventHandler(gameToTest_Drawn);
            gameToTest.Run();
            while (initedSb == null)
            {

            }
            return initedSb;
        }
コード例 #2
0
 public void Init()
 {
     MockDrawable = TestGame.GetSpriteBatch();
 }
コード例 #3
0
ファイル: SpriteWrapperTest.cs プロジェクト: mohammedmjr/GLib
 public void InitClass()
 {
     MockedSB = TestGame.GetSpriteBatch();
 }