ConeMeshTests ClassDelta Engine Documentation
Inheritance Hierarchy

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

public class ConeMeshTests : TestWithMocksOrVisually

The ConeMeshTests type exposes the following members.

Constructors

  NameDescription
Public methodConeMeshTests
Initializes a new instance of the ConeMeshTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodDrawLitCone
Public methodDrawRedCone
Public methodDrawWith2DShaderIsNotAllowed
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.)
Top
Properties

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