public void CreateAndDispose() { ColoredRectangle box = null; TestAppOnce.Start((Renderer r) => box = new ColoredRectangle(r, HalfScreenRect, Color.Red)); Assert.AreEqual(Color.Red, box.Color); box.Dispose(); }
public void StartRunFewTimesAndCloseGame() { TestAppOnce.Start((LogoGame game) => { for (int i = 0; i < 50; i++) { game.Run(); } }); }
public void AddDrawSetColorRemove() { ColoredRectangle box = null; TestAppOnce.Start((Renderer r) => { box = new ColoredRectangle(r, HalfScreenRect, Color.Red); r.Add(box); r.DrawRectangle(box.Rect, Color.Green); r.Remove(box); }); box.Dispose(); }
public void StartGameWithMocks() { TestAppOnce.Start((LogoGame game) => game.Run()); }