Merge pull request #317 from Sergio0694/dev/fix-test-assembly-initialize

Fix unit tests assembly initialize methods
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-06-26 23:48:57 +02:00
コミット 0678b2d9df
3ファイル変更
+4 -3

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

@@ -17,6 +17,7 @@ partial class ShaderMethodSourceAttribute : Attribute
{
if (mapping.Add(constant.Key))
{
builder.Append('\n');
builder.Append("#define ");
builder.Append(constant.Key);
builder.Append(' ');
+1 -1
ファイルの表示
@@ -15,7 +15,7 @@ namespace ComputeSharp.D2D1.Tests;
public class EndToEndTests
{
[AssemblyInitialize]
public static void ConfigureImageSharp()
public static void ConfigureImageSharp(TestContext _)
{
Configuration.Default.PreferContiguousImageBuffers = true;
}
+2 -2
ファイルの表示
@@ -20,7 +20,7 @@ namespace ComputeSharp.Tests;
public class ImagingTests
{
[AssemblyInitialize]
public static void ConfigureImageSharp()
public static void ConfigureImageSharp(TestContext _)
{
Configuration.Default.PreferContiguousImageBuffers = true;
}
@@ -516,7 +516,7 @@ public class ImagingTests
original.Save(expectedPath);
TolerantImageComparer.AssertEqual(expectedPath, actualPath, 0.00004037f);
TolerantImageComparer.AssertEqual(expectedPath, actualPath, 0.00004038f);
}
[CombinatorialTestMethod]