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

[Test, CloseAfterFirstFrame]
public void CreationOfShaderWithInvalidShaderCodeMustFail()
{
    var creationData = new ShaderWithFormatCreationData(ShaderFlags.Colored, "BadGLVertexCode",
        "BadGLFragmentCode", "BadDX11Code", "BadDX9Code", VertexFormat.Position3DColor);
    AssertShaderCreationException(creationData);
    creationData = new ShaderWithFormatCreationData(ShaderFlags.Colored, "AnyData",
        "BadGLFragmentCode", "BadDX11Code", "BadDX9Code", VertexFormat.Position3DColor);
    AssertShaderCreationException(creationData);
    creationData = new ShaderWithFormatCreationData(ShaderFlags.Colored, "AnyData", "AnyData",
        "BadDX11Code", "BadDX9Code", VertexFormat.Position3DColor);
    AssertShaderCreationException(creationData);
    creationData = new ShaderWithFormatCreationData(ShaderFlags.Colored, "AnyData", "AnyData",
        "AnyData", "BadDX9Code", VertexFormat.Position3DColor);
    AssertShaderCreationException(creationData);
}
See Also