public void RegisterRenderableObject() { using (var device = new MockDevice(new MockWindow())) { device.Clear(); device.Present(); resolver.Register(device); resolver.RegisterSingleton<Drawing>(); resolver.Register(new Line2D(Vector2D.One, Vector2D.Zero, Color.Red)); } }
public void RegisterRenderableObject() { if (!StackTraceExtensions.IsStartedFromNCrunch()) return; using (var device = new MockDevice(new MockWindow())) { device.Clear(); device.Present(); resolver.Register(device); resolver.RegisterSingleton<Drawing>(); resolver.Register(new Line2D(Vector2D.One, Vector2D.Zero, Color.Red)); } }