Inheritance Hierarchy
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
The PhysicalObjectTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PhysicalObjectTests | Initializes a new instance of the PhysicalObjectTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
VerifyAssignedValues |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
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