Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void SetInvalidDataThrows() { var geometry = ContentLoader.Create<Geometry>(new GeometryCreationData(VertexFormat.Position3DColor, 1, 1)); Assert.Throws<Geometry.InvalidNumberOfVertices>( () => geometry.SetData(new Vertex[] { }, new short[] { 0 })); Assert.Throws<Geometry.InvalidNumberOfIndices>( () => geometry.SetData(new Vertex[] { new VertexPosition3DColor(Vector3D.Zero, Color.Red) }, new short[] { })); }
See Also