public void Setup() { this.engine = new ValorEngine(); this.form = new ValorForm(); this.form.Engine = this.engine; this.context = new GraphicsBindingContext(this.form, Ri, Pi); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); f = new ValorForm {Engine = new ValorEngine()}; var ticker = new GraphicsBindingContext(f); ticker.Start(); Application.Run(f); }
public void Constructor_GeneratesProperlyPopulatedContext() { this.context = new GraphicsBindingContext(this.form, Ri, Pi); Assert.IsTrue(this.context.Form == this.form && this.context.RenderInterval == Ri && this.context.PhysicsInterval == Pi); }