GeometryTests LoadInvalidDataThrows 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 LoadInvalidDataThrows()
Examples

[Test, CloseAfterFirstFrame]
public void LoadInvalidDataThrows()
{
    var creationData = new GeometryCreationData(VertexFormat.Position3DColor, 1, 1);
    var geometry = ContentLoader.Create<TestGeometry>(creationData);
    Assert.Throws<Geometry.EmptyGeometryFileGiven>(geometry.LoadInvalidData);
}
See Also