Remove 'Diagnostics' package from tests
このコミットが含まれているのは:
1 親
cb56e65ce5
コミット
452f344317
7ファイル変更
+6
-11
検索条件に一致するファイルはありません
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace ComputeSharp.Tests.Extensions;
|
||||
@@ -40,7 +40,7 @@ public static class DeviceExtensions
|
||||
{
|
||||
Device.Discrete => DiscreteDevice,
|
||||
Device.Warp => WarpDevice,
|
||||
_ => ThrowHelper.ThrowArgumentException<GraphicsDevice>("Invalid device.")
|
||||
_ => throw new ArgumentException("Invalid device type.", nameof(type))
|
||||
};
|
||||
|
||||
if (device is null)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using ComputeSharp.Resources;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using SixLabors.ImageSharp;
|
||||
@@ -24,7 +23,7 @@ public static class ImagingExtensions
|
||||
where TFrom : unmanaged
|
||||
where TTo : unmanaged, IPixel<TTo>
|
||||
{
|
||||
Guard.IsEqualTo(sizeof(TTo), sizeof(TFrom), nameof(TTo));
|
||||
ArgumentOutOfRangeException.ThrowIfNotEqual(sizeof(TTo), sizeof(TFrom), nameof(TTo));
|
||||
|
||||
Image<TTo> image = new(texture.Width, texture.Height);
|
||||
|
||||
@@ -49,7 +48,7 @@ public static class ImagingExtensions
|
||||
where TFrom : unmanaged
|
||||
where TTo : unmanaged, IPixel<TTo>
|
||||
{
|
||||
Guard.IsEqualTo(sizeof(TTo), sizeof(TFrom), nameof(TTo));
|
||||
ArgumentOutOfRangeException.ThrowIfNotEqual(sizeof(TTo), sizeof(TFrom), nameof(TTo));
|
||||
|
||||
Image<TTo> image = new(texture.Width, texture.Height);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする