20 行
440 B
C#
20 行
440 B
C#
using System;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace ComputeSharp.Tests
|
|
{
|
|
[TestClass]
|
|
[TestCategory("InvalidShader")]
|
|
public class InvalidShaderTests
|
|
{
|
|
[TestMethod]
|
|
public void EmptyShaderCompileError()
|
|
{
|
|
Action<ThreadIds> action = id => { };
|
|
|
|
Assert.ThrowsException<InvalidOperationException>(() => Gpu.Default.For(10, action));
|
|
}
|
|
}
|
|
}
|
|
|