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