Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
		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));
			}
		}