Пример #1
0
        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
 public void InitClass()
 {
     MockedSB = TestGame.GetSpriteBatch();
 }