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 InvalidVertexFormat() { var invalidData = new ShaderWithFormatCreationData(ShaderFlags.None, "", "", "", "", null); Assert.Throws<ShaderWithFormat.InvalidVertexFormat>( () => ContentLoader.Create<Shader>(invalidData)); var emptyFormat = new ShaderWithFormatCreationData(ShaderFlags.None, "", "", "", "", new VertexFormat(new VertexElement[0])); Assert.Throws<ShaderWithFormat.InvalidVertexFormat>( () => ContentLoader.Create<Shader>(emptyFormat)); }
See Also