diff --git a/tests/ComputeSharp.NetCore.Tests/MiscTests.cs b/tests/ComputeSharp.NetCore.Tests/MiscTests.cs new file mode 100644 index 00000000..76ba23c8 --- /dev/null +++ b/tests/ComputeSharp.NetCore.Tests/MiscTests.cs @@ -0,0 +1,17 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ComputeSharp.NetCore.Tests +{ + [TestClass] + [TestCategory("Misc")] + public class MiscTests + { + [TestMethod] + public void CheckIsSupportedAndGetDefaultDevice() + { + if (Gpu.IsSupported) Assert.IsNotNull(Gpu.Default); + else Assert.ThrowsException(() => Gpu.Default); + } + } +}