Remove 'Diagnostics' package from tests

このコミットが含まれているのは:
Sergio Pedri committed 2024-08-22 22:45:00 -07:00
1 親 cb56e65ce5
コミット 452f344317
7ファイル変更
+6 -11

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -1,5 +1,5 @@
using System;
using System.Linq;
using CommunityToolkit.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ComputeSharp.Tests.Extensions;
@@ -21,7 +21,7 @@ public static class DeviceExtensions
{
Device.Discrete => GraphicsDevice.QueryDevices(info => info.IsHardwareAccelerated).FirstOrDefault(),
Device.Warp => GraphicsDevice.QueryDevices(info => !info.IsHardwareAccelerated).FirstOrDefault(),
_ => ThrowHelper.ThrowArgumentException<GraphicsDevice>("Invalid device.")
_ => throw new ArgumentException("Invalid device type.", nameof(type))
};
if (device is null)