Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Rendering3D.Shapes.Tests Circle3DTests
Namespace: DeltaEngine.Rendering3D.Shapes.Tests
Assembly: DeltaEngine.Rendering3D.Shapes.Tests (in DeltaEngine.Rendering3D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Circle3DTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Circle3DTests | Initializes a new instance of the Circle3DTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
RenderEllipseInOrigin | ||
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
UpdateCenterAndRadius |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void RenderEllipseInOrigin() { CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero); var ellipse = new Circle3D(Vector3D.Zero, 3.0f, Color.Red); Assert.AreEqual(Vector3D.Zero, ellipse.Center); Assert.AreEqual(3.0f, ellipse.Radius); }
[Test] public void UpdateCenterAndRadius() { CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero); var ellipse = new Circle3D(Vector3D.Zero, 3.0f, Color.Red); Assert.AreEqual(Vector3D.Zero, ellipse.Center); Assert.AreEqual(3.0f, ellipse.Radius); ellipse.Center = Vector3D.UnitX; ellipse.Radius = 2.0f; Assert.AreEqual(Vector3D.UnitX, ellipse.Center); Assert.AreEqual(2.0f, ellipse.Radius); }
See Also