ShaderWithFormatTests InvalidVertexFormat 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 InvalidVertexFormat()
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