diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c85bcfe1..b8884251 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -89,7 +89,7 @@ jobs: - name: Run ComputeSharp.Tests.DisableDynamicCompilation run: dotnet test tests\ComputeSharp.Tests.DisableDynamicCompilation\ComputeSharp.Tests.DisableDynamicCompilation.csproj -c Release -f ${{matrix.framework}} /p:Platform=x64 -v n -l "console;verbosity=detailed" - name: Run ComputeSharp.Tests.GlobalStatements - run: dotnet test tests\ComputeSharp.Tests.GlobalStatements\ComputeSharp.Tests.GlobalStatements.csproj -c Release -f ${{matrix.framework}} /p:Platform=x64 -v n -l "console;verbosity=detailed" + run: dotnet run --project tests\ComputeSharp.Tests.GlobalStatements\ComputeSharp.Tests.GlobalStatements.csproj -c Release -f ${{matrix.framework}} /p:Platform=x64 -v n -l "console;verbosity=detailed" - name: Run ComputeSharp.Tests.Internals run: dotnet test tests\ComputeSharp.Tests.Internals\ComputeSharp.Tests.Internals.csproj -c Release -f ${{matrix.framework}} /p:Platform=x64 -v n -l "console;verbosity=detailed" diff --git a/build/Directory.Build.props b/build/Directory.Build.props index 95920fa9..a9bcf4a6 100644 --- a/build/Directory.Build.props +++ b/build/Directory.Build.props @@ -109,6 +109,16 @@ icon.png https://user-images.githubusercontent.com/10199417/110238403-b8811080-7f41-11eb-8cfe-e47e7e58f05b.png dotnet net netcore netstandard csharp library graphics directx shader hlsl compute gpu performance parallel windows + + + true diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props index c1fec2f9..6ea1cf4d 100644 --- a/samples/Directory.Build.props +++ b/samples/Directory.Build.props @@ -3,9 +3,6 @@ - - true - $(NoWarn);CS1591 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 12dce312..8395dc9c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -45,16 +45,6 @@ - - true - $(MSBuildProjectName).xml - false diff --git a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs b/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs index f26153fc..caf3de5e 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs +++ b/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs @@ -155,7 +155,7 @@ internal static class Win2DHelper public interface ICanvasFactoryNative { /// - /// The vtable type for . + /// The vtable type for . /// [Guid("695C440D-04B3-4EDD-BFD9-63E51E9F7202")] public readonly struct Vftbl diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj index 61619d84..727d4bc2 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj @@ -11,6 +11,12 @@ true + + + + $(NoWarn);CS0419 + + Assets\Shaders\ColorfulInfinity.png diff --git a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj index 07054e96..9362935f 100644 --- a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj +++ b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj @@ -5,10 +5,6 @@ AnyCPU;x64;ARM64 enable - - - - diff --git a/tests/ComputeSharp.Tests.GlobalStatements/Program.cs b/tests/ComputeSharp.Tests.GlobalStatements/Program.cs index b4cdd3ac..9991f2ec 100644 --- a/tests/ComputeSharp.Tests.GlobalStatements/Program.cs +++ b/tests/ComputeSharp.Tests.GlobalStatements/Program.cs @@ -1,5 +1,4 @@ using ComputeSharp; -using Microsoft.VisualStudio.TestTools.UnitTesting; float[] numbers = Enumerable.Range(0, 128).Select(i => (float)i).ToArray(); @@ -15,11 +14,12 @@ foreach (ref float number in numbers.AsSpan()) float[] result = buffer.ToArray(); -CollectionAssert.AreEqual( - expected: numbers, - actual: result); +if (!numbers.SequenceEqual(result)) +{ + throw new Exception("The processed buffer does not match the expected results."); +} -Console.WriteLine("Test passed successfully"); +Console.WriteLine("Test passed successfully!"); // See https://github.com/Sergio0694/ComputeSharp/issues/374 [ShaderMethod]