public void TestDrawTextWithCustomEffect() { TestText test = new TestText(); BasicEffect effect = new BasicEffect( this.mockedGraphicsDeviceService.GraphicsDevice #if !XNA_4 , null #endif ); try { this.textBatch.Begin(); try { this.textBatch.DrawText(test, effect); } finally { this.textBatch.End(); } } finally { effect.Dispose(); } }