Circle3DTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class Circle3DTests : TestWithMocksOrVisually

The Circle3DTests type exposes the following members.

Constructors

  NameDescription
Public methodCircle3DTests
Initializes a new instance of the Circle3DTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Public methodRenderEllipseInOrigin
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodUpdateCenterAndRadius
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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