Entity3DTests CannotAddTheSameTypeOfComponentTwice Method Delta Engine Documentation

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

public void CannotAddTheSameTypeOfComponentTwice()
Examples

[Test, CloseAfterFirstFrame]
public void CannotAddTheSameTypeOfComponentTwice()
{
    var entity = new Entity3D(Vector3D.Zero);
    Assert.Throws<Entity.ComponentOfTheSameTypeAddedMoreThanOnce>(() => entity.Add(Vector3D.One));
}
See Also