public void VectorShape_AddPoint_Test() { var shape = new VectorShape(Device); shape.AddPoint(Vector2.Zero, 5, Color.White); Device.RawDevice.BeginScene(); Assert.IsTrue((shape as ISprite).Render(null)); Device.RawDevice.EndScene(); }
public void VectorShape_AddLine_Test() { var shape = new VectorShape(Device); shape.AddLine(Vector2.Zero, new Vector2(1.0f, 2.0f), 3.0f, Color.White); Device.RawDevice.BeginScene(); Assert.IsTrue((shape as ISprite).Render(null)); Device.RawDevice.EndScene(); }