PhysicalObjectTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    DeltaEngine.Physics3D.Tests PhysicalObjectTests

Namespace: DeltaEngine.Physics3D.Tests
Assembly: DeltaEngine.Physics3D.Tests (in DeltaEngine.Physics3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class PhysicalObjectTests : TestWithMocksOrVisually

The PhysicalObjectTests type exposes the following members.

Constructors

  NameDescription
Public methodPhysicalObjectTests
Initializes a new instance of the PhysicalObjectTests class
Top
Methods

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

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test]
public void VerifyAssignedValues()
{
    var physicalObject = new PhysicalEntity3D(Vector3D.Zero, Quaternion.Identity, 10.0f, 0.5f);
    AdvanceTimeAndUpdateEntities(1.0f);
    Assert.AreEqual(10.0f, physicalObject.Mass);
    Assert.AreEqual(0.5f, physicalObject.LifeTime);
    Assert.IsFalse(physicalObject.IsActive);
}
See Also