GeometryTests CreationTwoGeometriesWithSameArgumentsStillResultsInDifferentObjects Method Delta Engine Documentation

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

public void CreationTwoGeometriesWithSameArgumentsStillResultsInDifferentObjects()
Examples

[Test, CloseAfterFirstFrame]
public void CreationTwoGeometriesWithSameArgumentsStillResultsInDifferentObjects()
{
    var creationData1 = new GeometryCreationData(VertexFormat.Position3DColor, 1, 1);
    var creationData2 = new GeometryCreationData(VertexFormat.Position3DColor, 1, 1);
    Assert.IsFalse(creationData1.Equals(creationData2));
    var geometry1 = ContentLoader.Create<TestGeometry>(creationData1);
    var geometry2 = ContentLoader.Create<TestGeometry>(creationData2);
    Assert.AreNotEqual(geometry1, geometry2);
}
See Also