Beispiel #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;
        }
Beispiel #2
0
 public void Init()
 {
     MockDrawable = TestGame.GetSpriteBatch();
 }
Beispiel #3
0
 public void InitClass()
 {
     MockedSB = TestGame.GetSpriteBatch();
 }