ShaderWithFormatTests InvalidVertexAndPixelCode 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 InvalidVertexAndPixelCode()
Examples

[Test, CloseAfterFirstFrame]
public void InvalidVertexAndPixelCode()
{
    var data = new ShaderWithFormatCreationData(ShaderFlags.None, "", "", "", "",
        VertexFormat.Position2DColor);
    Assert.Throws<ShaderWithFormat.NoShaderCodeSpecifiedForOpenGLAndDirectX>(
        () => ContentLoader.Create<Shader>(data));
}
See Also