public void TestBeginEnd()
        {
            Matrix matrix = Matrix.Identity;

#if XNA_3
            TextDrawContext context = new TextDrawContext(this.effect, matrix, Color.Red);
            context.Begin();
            try {
                for (int pass = 0; pass < context.Passes; ++pass)
                {
                    context.BeginPass(pass);
                    context.EndPass();
                }
            }
            finally {
                context.End();
            }
#else
            TextDrawContext context = new TextDrawContext(this.effect, matrix, Color.Red);
            for (int pass = 0; pass < context.Passes; ++pass)
            {
                context.Apply(pass);
            }
#endif
        }
    public void TestBeginEnd() {
      Matrix matrix = Matrix.Identity;
#if XNA_4
      TextDrawContext context = new TextDrawContext(this.effect, matrix, Color.Red);
      for(int pass = 0; pass < context.Passes; ++pass) {
        context.Apply(pass);
      }
#else
      TextDrawContext context = new TextDrawContext(this.effect, matrix, Color.Red);
      context.Begin();
      try {
        for(int pass = 0; pass < context.Passes; ++pass) {
          context.BeginPass(pass);
          context.EndPass();
        }
      }
      finally {
        context.End();
      }
#endif
    }