Added GPU initialization tests
このコミットが含まれているのは:
1 親
f6f73b9e3f
コミット
279d7c372f
1ファイル変更
+17
@@ -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<NotSupportedException>(() => Gpu.Default);
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする