diff --git a/src/CookieCrumble/CookieCrumble.sln b/src/CookieCrumble/CookieCrumble.sln index daaabce27ea..295bfb931fe 100644 --- a/src/CookieCrumble/CookieCrumble.sln +++ b/src/CookieCrumble/CookieCrumble.sln @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Fusion", "src EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.HotChocolate", "src\CookieCrumble.HotChocolate\CookieCrumble.HotChocolate.csproj", "{9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Xunit", "src\CookieCrumble.Xunit\CookieCrumble.Xunit.csproj", "{CEE25A68-69B5-4CFD-9C35-E82736B1E205}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{EB8F1D90-60D6-48FA-9744-D4180A0E4AC0}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Tests", "test\CookieCrumble.Tests\CookieCrumble.Tests.csproj", "{844E7501-7ED6-4548-8E99-D8E50D4F39A4}" @@ -36,6 +38,10 @@ Global {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Debug|Any CPU.Build.0 = Debug|Any CPU {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Release|Any CPU.ActiveCfg = Release|Any CPU {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Release|Any CPU.Build.0 = Release|Any CPU + {CEE25A68-69B5-4CFD-9C35-E82736B1E205}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CEE25A68-69B5-4CFD-9C35-E82736B1E205}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CEE25A68-69B5-4CFD-9C35-E82736B1E205}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CEE25A68-69B5-4CFD-9C35-E82736B1E205}.Release|Any CPU.Build.0 = Release|Any CPU {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.Build.0 = Debug|Any CPU {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -45,6 +51,7 @@ Global {8E71FA9B-8352-4675-A9B4-A934E40AF9E0} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} {E6862862-986B-4A67-8703-49C70051DBDC} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} + {CEE25A68-69B5-4CFD-9C35-E82736B1E205} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} {844E7501-7ED6-4548-8E99-D8E50D4F39A4} = {EB8F1D90-60D6-48FA-9744-D4180A0E4AC0} EndGlobalSection EndGlobal diff --git a/src/CookieCrumble/src/CookieCrumble/Attributes/UseCultureAttribute.cs b/src/CookieCrumble/src/CookieCrumble.Xunit/Attributes/UseCultureAttribute.cs similarity index 98% rename from src/CookieCrumble/src/CookieCrumble/Attributes/UseCultureAttribute.cs rename to src/CookieCrumble/src/CookieCrumble.Xunit/Attributes/UseCultureAttribute.cs index 2a0fec1f77b..e510011cf51 100644 --- a/src/CookieCrumble/src/CookieCrumble/Attributes/UseCultureAttribute.cs +++ b/src/CookieCrumble/src/CookieCrumble.Xunit/Attributes/UseCultureAttribute.cs @@ -6,7 +6,7 @@ using System.Reflection; using Xunit.Sdk; -namespace CookieCrumble.Attributes; +namespace CookieCrumble.Xunit.Attributes; /// /// Apply this attribute to your test method to replace the diff --git a/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumble.Xunit.csproj b/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumble.Xunit.csproj new file mode 100644 index 00000000000..b539bfb387b --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumble.Xunit.csproj @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumbleXunit.cs b/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumbleXunit.cs new file mode 100644 index 00000000000..5abaf224762 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumbleXunit.cs @@ -0,0 +1,9 @@ +namespace CookieCrumble.Xunit; + +public static class CookieCrumbleXunit +{ + public static void Initialize() + { + Snapshot.RegisterTestFramework(new XunitFramework()); + } +} diff --git a/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs b/src/CookieCrumble/src/CookieCrumble.Xunit/LocalFactDiscoverer.cs similarity index 97% rename from src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs rename to src/CookieCrumble/src/CookieCrumble.Xunit/LocalFactDiscoverer.cs index c2647bfd635..31305cd7624 100644 --- a/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs +++ b/src/CookieCrumble/src/CookieCrumble.Xunit/LocalFactDiscoverer.cs @@ -2,7 +2,7 @@ using Xunit.Abstractions; using Xunit.Sdk; -namespace CookieCrumble; +namespace CookieCrumble.Xunit; [XunitTestCaseDiscoverer("LocalFactDiscoverer", "YourTestAssemblyName")] public class LocalFactAttribute : FactAttribute; diff --git a/src/CookieCrumble/src/CookieCrumble.Xunit/XunitFramework.cs b/src/CookieCrumble/src/CookieCrumble.Xunit/XunitFramework.cs new file mode 100644 index 00000000000..33c453353d5 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Xunit/XunitFramework.cs @@ -0,0 +1,22 @@ +using System.Reflection; +using Xunit; +using Xunit.Sdk; + +namespace CookieCrumble.Xunit; + +public class XunitFramework : ITestFramework +{ + public bool IsValidTestMethod(MemberInfo? method) + => IsFactTestMethod(method) || IsTheoryTestMethod(method); + + private static bool IsFactTestMethod(MemberInfo? method) + => method?.GetCustomAttributes(typeof(FactAttribute)).Any() ?? false; + + private static bool IsTheoryTestMethod(MemberInfo? method) + => method?.GetCustomAttributes(typeof(TheoryAttribute)).Any() ?? false; + + public void ThrowTestException(string message) + { + throw new XunitException(message); + } +} diff --git a/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj b/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj index d5299abd1f9..ef97c77bbd3 100644 --- a/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj +++ b/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj @@ -11,7 +11,6 @@ - diff --git a/src/CookieCrumble/src/CookieCrumble/ITestFramework.cs b/src/CookieCrumble/src/CookieCrumble/ITestFramework.cs new file mode 100644 index 00000000000..518467c13e2 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble/ITestFramework.cs @@ -0,0 +1,10 @@ +using System.Reflection; + +namespace CookieCrumble; + +public interface ITestFramework +{ + bool IsValidTestMethod(MemberInfo? method); + + void ThrowTestException(string message); +} diff --git a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs index 1158b37ed68..6a1163d39f4 100644 --- a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs +++ b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs @@ -7,7 +7,6 @@ using System.Text; using CookieCrumble.Formatters; using DiffPlex.DiffBuilder; -using Xunit; using static System.Collections.Immutable.ImmutableStack; using static System.IO.Path; using ChangeType = DiffPlex.DiffBuilder.Model.ChangeType; @@ -28,6 +27,7 @@ public class Snapshot }); private static readonly JsonSnapshotValueFormatter _defaultFormatter = new(); + private static ITestFramework _testFramework = null!; private readonly List _segments = []; private readonly string _title; private readonly string _fileName; @@ -36,6 +36,11 @@ public class Snapshot public Snapshot(string? postFix = null, string? extension = null) { + if (_testFramework is null) + { + throw new Exception("Please initialize a test framework before using Snapshot"); + } + var frames = new StackTrace(true).GetFrames(); _title = CreateMarkdownTitle(frames); _fileName = CreateFileName(frames); @@ -88,6 +93,19 @@ public static void Match( snapshot.Match(); } + public static void RegisterTestFramework(ITestFramework testFramework) + { + if (testFramework is null) + { + throw new ArgumentNullException(nameof(testFramework)); + } + + lock (_sync) + { + _testFramework = testFramework; + } + } + public static void RegisterFormatter( ISnapshotValueFormatter formatter) { @@ -240,7 +258,7 @@ public async ValueTask MatchAsync(CancellationToken cancellationToken = default) EnsureDirectoryExists(mismatchFile); await using var stream = File.Create(mismatchFile); await stream.WriteAsync(writer.WrittenMemory, cancellationToken); - throw new Xunit.Sdk.XunitException(diff); + _testFramework.ThrowTestException(diff); } } } @@ -271,7 +289,7 @@ public void Match() EnsureDirectoryExists(mismatchFile); using var stream = File.Create(mismatchFile); stream.Write(writer.WrittenSpan); - throw new Xunit.Sdk.XunitException(diff); + _testFramework.ThrowTestException(diff); } } } @@ -309,7 +327,7 @@ public async ValueTask MatchMarkdownAsync(CancellationToken cancellationToken = EnsureDirectoryExists(mismatchFile); await using var stream = File.Create(mismatchFile); await stream.WriteAsync(writer.WrittenMemory, cancellationToken); - throw new Xunit.Sdk.XunitException(diff); + _testFramework.ThrowTestException(diff); } } @@ -346,7 +364,7 @@ public void MatchMarkdown() EnsureDirectoryExists(mismatchFile); using var stream = File.Create(mismatchFile); stream.Write(writer.WrittenSpan); - throw new Xunit.Sdk.XunitException(diff); + _testFramework.ThrowTestException(diff); } } @@ -359,7 +377,7 @@ public void MatchInline(string expected) if (!MatchSnapshot(expected, after, true, out var diff)) { - throw new Xunit.Sdk.XunitException(diff); + _testFramework.ThrowTestException(diff); } } @@ -621,18 +639,18 @@ private static string CreateFileName(StackFrame[] frames) if (method is not null && !string.IsNullOrEmpty(fileName) && - IsXunitTestMethod(method)) + _testFramework.IsValidTestMethod(method)) { return Combine(GetDirectoryName(fileName)!, method.ToName()); } - var asyncMethod = EvaluateAsynchronousMethodBase(method); + method = EvaluateAsynchronousMethodBase(method); - if (asyncMethod is not null && + if (method is not null && !string.IsNullOrEmpty(fileName) && - IsXunitTestMethod(asyncMethod)) + _testFramework.IsValidTestMethod(method)) { - return Combine(GetDirectoryName(fileName)!, asyncMethod.ToName()); + return Combine(GetDirectoryName(fileName)!, method.ToName()); } } @@ -654,18 +672,18 @@ private static string CreateMarkdownTitle(StackFrame[] frames) if (method is not null && !string.IsNullOrEmpty(fileName) && - IsXunitTestMethod(method)) + _testFramework.IsValidTestMethod(method)) { return method.Name; } - var asyncMethod = EvaluateAsynchronousMethodBase(method); + method = EvaluateAsynchronousMethodBase(method); - if (asyncMethod is not null && + if (method is not null && !string.IsNullOrEmpty(fileName) && - IsXunitTestMethod(asyncMethod)) + _testFramework.IsValidTestMethod(method)) { - return asyncMethod.Name; + return method.Name; } } @@ -701,20 +719,6 @@ from methodInfo in classDeclaringType.GetMethods() return actualMethodInfo; } - private static bool IsXunitTestMethod(MemberInfo? method) - { - var isFactTest = IsFactTestMethod(method); - var isTheoryTest = IsTheoryTestMethod(method); - - return isFactTest || isTheoryTest; - } - - private static bool IsFactTestMethod(MemberInfo? method) - => method?.GetCustomAttributes(typeof(FactAttribute)).Any() ?? false; - - private static bool IsTheoryTestMethod(MemberInfo? method) - => method?.GetCustomAttributes(typeof(TheoryAttribute)).Any() ?? false; - private readonly struct SnapshotSegment(string? name, object? value, ISnapshotValueFormatter formatter) : ISnapshotSegment { diff --git a/src/CookieCrumble/test/CookieCrumble.Tests/CookieCrumble.Tests.csproj b/src/CookieCrumble/test/CookieCrumble.Tests/CookieCrumble.Tests.csproj index 35df7614b65..184a5075f7b 100644 --- a/src/CookieCrumble/test/CookieCrumble.Tests/CookieCrumble.Tests.csproj +++ b/src/CookieCrumble/test/CookieCrumble.Tests/CookieCrumble.Tests.csproj @@ -21,7 +21,7 @@ - + diff --git a/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs b/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs index 8131e481a72..56cbeae2caa 100644 --- a/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs +++ b/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs @@ -1,11 +1,17 @@ using System.Buffers; using System.Text; using CookieCrumble.Formatters; +using CookieCrumble.Xunit; namespace CookieCrumble; public class SnapshotTests { + static SnapshotTests() + { + Snapshot.RegisterTestFramework(new XunitFramework()); + } + [Fact] public void MatchSnapshot() { diff --git a/src/GreenDonut/test/Core.Tests/ModuleInitializer.cs b/src/GreenDonut/test/Core.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..28085cc59ae --- /dev/null +++ b/src/GreenDonut/test/Core.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace GreenDonut; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/GreenDonut/test/Directory.Build.props b/src/GreenDonut/test/Directory.Build.props index f703c952745..2e35995ae4c 100644 --- a/src/GreenDonut/test/Directory.Build.props +++ b/src/GreenDonut/test/Directory.Build.props @@ -8,10 +8,11 @@ + - + diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs index ec7cd91d5b1..bafe824c119 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/ApolloFederation/test/Directory.Build.props b/src/HotChocolate/ApolloFederation/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/ApolloFederation/test/Directory.Build.props +++ b/src/HotChocolate/ApolloFederation/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs index 179636397e9..07575403ab1 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..8e7a89ae2fa --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.AspNetCore.CommandLine; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs index 72ca586ccbe..64402bbc049 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/AspNetCore/test/Directory.Build.props b/src/HotChocolate/AspNetCore/test/Directory.Build.props index 93666881f8d..77d8561274a 100644 --- a/src/HotChocolate/AspNetCore/test/Directory.Build.props +++ b/src/HotChocolate/AspNetCore/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs index 0813357d630..71eb1dabadd 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..eda31d9c0ea --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Transport.Sockets; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs b/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs index 5d8557db1b8..1839afef2c3 100644 --- a/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Caching/test/Directory.Build.props b/src/HotChocolate/Caching/test/Directory.Build.props index 6169b24a476..c335499b8a2 100644 --- a/src/HotChocolate/Caching/test/Directory.Build.props +++ b/src/HotChocolate/Caching/test/Directory.Build.props @@ -9,10 +9,12 @@ + + diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs index cdfd3490d24..863a695b53e 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs index df8ef60ffe6..27b2a716974 100644 --- a/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Directory.Build.props b/src/HotChocolate/Core/test/Directory.Build.props index 8d7718c8672..1bb1605e24f 100644 --- a/src/HotChocolate/Core/test/Directory.Build.props +++ b/src/HotChocolate/Core/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs index bcdbdac37c5..8ac28c96e3c 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs index d14b36f51ac..95149c94a6b 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs index 3097c9a9873..561e308bac8 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs index f4200c1d7b0..ecc2344c08f 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs index 035d01b98f8..2c50e63077c 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs index f4200c1d7b0..ecc2344c08f 100644 --- a/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs index f4200c1d7b0..ecc2344c08f 100644 --- a/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..ca2e22b0d65 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types.NodaTime.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs index 035d01b98f8..2c50e63077c 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs index f93b2da2be7..a18781b37c8 100644 --- a/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs index f4200c1d7b0..ecc2344c08f 100644 --- a/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs index 2ab7583b269..cbcfafc9c40 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs @@ -1,4 +1,4 @@ -using CookieCrumble.Attributes; +using CookieCrumble.Xunit.Attributes; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs index 0b1713bdc25..915e03dc3ee 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs @@ -1,4 +1,4 @@ -using CookieCrumble.Attributes; +using CookieCrumble.Xunit.Attributes; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..565cd11b3d3 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs index cdfd3490d24..863a695b53e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs index 72875382840..d69034a2ac5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs @@ -1,6 +1,6 @@ using System.Numerics; using System.Text.Json; -using CookieCrumble.Attributes; +using CookieCrumble.Xunit.Attributes; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Validation.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Validation.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..dc38ad350af --- /dev/null +++ b/src/HotChocolate/Core/test/Validation.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Validation; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs index 598ebb0148d..e030ee9a93b 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/CostAnalysis/test/Directory.Build.props b/src/HotChocolate/CostAnalysis/test/Directory.Build.props index 47082b11e29..0129d035c93 100644 --- a/src/HotChocolate/CostAnalysis/test/Directory.Build.props +++ b/src/HotChocolate/CostAnalysis/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..e3982079f1c --- /dev/null +++ b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Projections; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs index 4a0dbac9ef0..a56e4d6096e 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs index 4a0dbac9ef0..a56e4d6096e 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs index 841340c61d7..36845924536 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs index 11c7d3f3faf..5a1987592e9 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs index df44e0254da..fd37f886628 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs index df44e0254da..fd37f886628 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs index 841340c61d7..36845924536 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Data/test/Directory.Build.props b/src/HotChocolate/Data/test/Directory.Build.props index c88e1f6c5c9..8db376fd335 100644 --- a/src/HotChocolate/Data/test/Directory.Build.props +++ b/src/HotChocolate/Data/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ModuleInitializer.cs b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..fab883e7ab9 --- /dev/null +++ b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Diagnostics; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Diagnostics/test/Directory.Build.props b/src/HotChocolate/Diagnostics/test/Directory.Build.props index aba3882a0c5..a3dc0e195f9 100644 --- a/src/HotChocolate/Diagnostics/test/Directory.Build.props +++ b/src/HotChocolate/Diagnostics/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs index c971b1940bb..99df64613ca 100644 --- a/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs index 713217fab87..6919f4cc6c0 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs index baeee20b013..4b0e1ed2d10 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleFusion.Initialize(); CookieCrumbleHotChocolate.Initialize(); } diff --git a/src/HotChocolate/Fusion/test/Directory.Build.props b/src/HotChocolate/Fusion/test/Directory.Build.props index a1d76dbc5d1..1aa50dc6669 100644 --- a/src/HotChocolate/Fusion/test/Directory.Build.props +++ b/src/HotChocolate/Fusion/test/Directory.Build.props @@ -11,12 +11,14 @@ + + diff --git a/src/HotChocolate/Language/test/Directory.Build.props b/src/HotChocolate/Language/test/Directory.Build.props index 008f418e208..b318963e4da 100644 --- a/src/HotChocolate/Language/test/Directory.Build.props +++ b/src/HotChocolate/Language/test/Directory.Build.props @@ -9,10 +9,12 @@ + + diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ModuleInitializer.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..b1b9d5fe2d1 --- /dev/null +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Language.SyntaxTree; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs b/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs index 4b9416795de..9057b0468be 100644 --- a/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/ModuleInitializer.cs b/src/HotChocolate/Language/test/Language.Web.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..cf95dfd1c90 --- /dev/null +++ b/src/HotChocolate/Language/test/Language.Web.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Language; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Marten/test/Directory.Build.props b/src/HotChocolate/Marten/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/Marten/test/Directory.Build.props +++ b/src/HotChocolate/Marten/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs index b76dc7a24eb..fc76dd7bdd8 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..ddb915ce361 --- /dev/null +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.MongoDb.Paging; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..7ef38d94997 --- /dev/null +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.MongoDb.Projections; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..1f0d5b7b924 --- /dev/null +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.MongoDb.Sorting; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/MongoDb/test/Directory.Build.props b/src/HotChocolate/MongoDb/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/MongoDb/test/Directory.Build.props +++ b/src/HotChocolate/MongoDb/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs index f4200c1d7b0..ecc2344c08f 100644 --- a/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs +++ b/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/OpenApi/test/Directory.Build.props b/src/HotChocolate/OpenApi/test/Directory.Build.props index cb0896020b2..428761ef50c 100644 --- a/src/HotChocolate/OpenApi/test/Directory.Build.props +++ b/src/HotChocolate/OpenApi/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs index 87362ffdde0..d72ac9c8d36 100644 --- a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Pagination/test/Directory.Build.props b/src/HotChocolate/Pagination/test/Directory.Build.props index c88e1f6c5c9..8db376fd335 100644 --- a/src/HotChocolate/Pagination/test/Directory.Build.props +++ b/src/HotChocolate/Pagination/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs index 9ec3dcfa4cf..b515a98631b 100644 --- a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/PersistedOperations/test/Directory.Build.props b/src/HotChocolate/PersistedOperations/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/PersistedOperations/test/Directory.Build.props +++ b/src/HotChocolate/PersistedOperations/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs index a04c389eee0..a576b134a29 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/ModuleInitializer.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..bf527e671e6 --- /dev/null +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.PersistedOperations.InMemory; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs index 827c05b6af5..640098fe9e8 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs index 4a0dbac9ef0..a56e4d6096e 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..a3b5a9cffce --- /dev/null +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..6a70e1031fd --- /dev/null +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Raven; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs index df44e0254da..fd37f886628 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs index 8779dd16985..22c6ad2e6b5 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Raven/test/Directory.Build.props b/src/HotChocolate/Raven/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/Raven/test/Directory.Build.props +++ b/src/HotChocolate/Raven/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Skimmed/test/Directory.Build.props b/src/HotChocolate/Skimmed/test/Directory.Build.props index e640393171a..5ee232e004d 100644 --- a/src/HotChocolate/Skimmed/test/Directory.Build.props +++ b/src/HotChocolate/Skimmed/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/HotChocolate/Skimmed/test/Skimmed.Tests/ModuleInitializer.cs b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..ae99d219542 --- /dev/null +++ b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Skimmed; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..aabeeb77b04 --- /dev/null +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Spatial.Filters; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..b9d960a50e3 --- /dev/null +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Projections.Spatial; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Spatial/test/Data.Tests/ModuleInitializer.cs b/src/HotChocolate/Spatial/test/Data.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..474e535cc39 --- /dev/null +++ b/src/HotChocolate/Spatial/test/Data.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Spatial; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/HotChocolate/Spatial/test/Directory.Build.props b/src/HotChocolate/Spatial/test/Directory.Build.props index ec781d79004..7baf4c5ea66 100644 --- a/src/HotChocolate/Spatial/test/Directory.Build.props +++ b/src/HotChocolate/Spatial/test/Directory.Build.props @@ -9,11 +9,13 @@ + + diff --git a/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs b/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs index 975f81c9cb1..9f1bf32191b 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs @@ -7,6 +7,7 @@ internal static class ModuleInitializer [ModuleInitializer] public static void Initialize() { + CookieCrumbleXunit.Initialize(); CookieCrumbleHotChocolate.Initialize(); } } diff --git a/src/HotChocolate/Utilities/test/Directory.Build.props b/src/HotChocolate/Utilities/test/Directory.Build.props index 6e5f9f04197..04c5004ba5b 100644 --- a/src/HotChocolate/Utilities/test/Directory.Build.props +++ b/src/HotChocolate/Utilities/test/Directory.Build.props @@ -8,10 +8,11 @@ + - + diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/ModuleInitializer.cs b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..ccae5470d74 --- /dev/null +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Utilities.Introspection; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/Client/test/Core.Tests/ModuleInitializer.cs b/src/StrawberryShake/Client/test/Core.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..e0b9735f658 --- /dev/null +++ b/src/StrawberryShake/Client/test/Core.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace StrawberryShake; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/Client/test/Directory.Build.props b/src/StrawberryShake/Client/test/Directory.Build.props index 6dd3bd77dca..83ea79441d6 100644 --- a/src/StrawberryShake/Client/test/Directory.Build.props +++ b/src/StrawberryShake/Client/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/StrawberryShake/Client/test/Transport.Http.Tests/ModuleInitializer.cs b/src/StrawberryShake/Client/test/Transport.Http.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..934c28cba32 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.Http.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace StrawberryShake.Transport.Http; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/ModuleInitializer.cs b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..5391f8798e9 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace StrawberryShake.Transport.InMemory; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/ModuleInitializer.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..cda35c206ca --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace StrawberryShake.Transport.WebSockets; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.cs index f93ea26299d..8a0af0045d1 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.cs @@ -1,4 +1,4 @@ -using CookieCrumble; +using CookieCrumble.Xunit; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.StarWars.Models; using HotChocolate.Subscriptions; diff --git a/src/StrawberryShake/Tooling/test/Configuration.Tests/ModuleInitializer.cs b/src/StrawberryShake/Tooling/test/Configuration.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..c89c9be0fb1 --- /dev/null +++ b/src/StrawberryShake/Tooling/test/Configuration.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace StrawberryShake.Tools.Configuration; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleXunit.Initialize(); + } +} diff --git a/src/StrawberryShake/Tooling/test/Directory.Build.props b/src/StrawberryShake/Tooling/test/Directory.Build.props index 1a81da46f59..a4d2e4638f1 100644 --- a/src/StrawberryShake/Tooling/test/Directory.Build.props +++ b/src/StrawberryShake/Tooling/test/Directory.Build.props @@ -8,10 +8,11 @@ + - +