Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Rendering3D.Shapes.Tests ConeMeshTests
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 ConeMeshTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConeMeshTests | Initializes a new instance of the ConeMeshTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
DrawLitCone | ||
DrawRedCone | ||
DrawWith2DShaderIsNotAllowed | ||
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test, ApproveFirstFrameScreenshot] public void DrawLitCone() { new Grid3D(new Size(20)); new Model(new ModelData(new ConeMesh(1, 3, new Material(ShaderFlags.LitTextured, "DeltaEngineLogo"))), Vector3D.Zero); }
[Test] public void DrawRedCone() { new Grid3D(new Size(20)); new Model(new ModelData(new ConeMesh(1, 3, Color.Red)), Vector3D.Zero); }
[Test, CloseAfterFirstFrame] public void DrawWith2DShaderIsNotAllowed() { Assert.Throws<ShaderWithFormat.ShaderFlagsNotSupported>( () => new ConeMesh(1, 1, new Material(ShaderFlags.Position2DTextured, ""))); }
See Also