diff --git a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet10_0.verified.txt
index a7270040b7..7d4d9269a1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet8_0.verified.txt
index a7270040b7..7d4d9269a1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet9_0.verified.txt
index a7270040b7..7d4d9269a1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.Net4_7.verified.txt
index a7270040b7..7d4d9269a1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ArrayAssertionGeneratorTests.GeneratesArrayAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet10_0.verified.txt
index 5d54ad0942..428731284c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet8_0.verified.txt
index 5d54ad0942..428731284c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet9_0.verified.txt
index 5d54ad0942..428731284c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.Net4_7.verified.txt
index 5d54ad0942..428731284c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssemblyAssertionGeneratorTests.GeneratesAssemblyAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet10_0.verified.txt
index 7477905bf8..9fc2fd8c36 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet8_0.verified.txt
index 7477905bf8..9fc2fd8c36 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet9_0.verified.txt
index 7477905bf8..9fc2fd8c36 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.Net4_7.verified.txt
index 7477905bf8..9fc2fd8c36 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithDefaultValues.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet10_0.verified.txt
index 9245c1cf6e..405cdeae40 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet8_0.verified.txt
index 9245c1cf6e..405cdeae40 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet9_0.verified.txt
index 9245c1cf6e..405cdeae40 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.Net4_7.verified.txt
index 9245c1cf6e..405cdeae40 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithEnumDefault.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet10_0.verified.txt
index 16d59c3df3..ca9a82cbcd 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet8_0.verified.txt
index 16d59c3df3..ca9a82cbcd 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet9_0.verified.txt
index 16d59c3df3..ca9a82cbcd 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.Net4_7.verified.txt
index 16d59c3df3..ca9a82cbcd 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithGenericConstraints.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet10_0.verified.txt
index 69cb2805cc..b4579ebe73 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet8_0.verified.txt
index 69cb2805cc..b4579ebe73 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet9_0.verified.txt
index 69cb2805cc..b4579ebe73 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.Net4_7.verified.txt
index 69cb2805cc..b4579ebe73 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleConstructors.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet10_0.verified.txt
index 51e2278585..eca97d47c5 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet8_0.verified.txt
index 51e2278585..eca97d47c5 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet9_0.verified.txt
index 51e2278585..eca97d47c5 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.Net4_7.verified.txt
index 51e2278585..eca97d47c5 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithMultipleParameters.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet10_0.verified.txt
index 3d9dd576a8..fa63ddc1a3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet8_0.verified.txt
index 3d9dd576a8..fa63ddc1a3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet9_0.verified.txt
index 3d9dd576a8..fa63ddc1a3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.Net4_7.verified.txt
index 3d9dd576a8..fa63ddc1a3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithNegatedMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet10_0.verified.txt
index b9ffc18673..1d5fa95f55 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet8_0.verified.txt
index b9ffc18673..1d5fa95f55 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet9_0.verified.txt
index b9ffc18673..1d5fa95f55 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.Net4_7.verified.txt
index b9ffc18673..1d5fa95f55 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.AssertionWithOptionalParameter.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet10_0.verified.txt
index d649af8312..34c87e753e 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet8_0.verified.txt
index d649af8312..34c87e753e 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet9_0.verified.txt
index d649af8312..34c87e753e 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.Net4_7.verified.txt
index d649af8312..34c87e753e 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.MultipleGenericParameters.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet10_0.verified.txt
index 0e56361ed7..daf9907ee1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet8_0.verified.txt
index 0e56361ed7..daf9907ee1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet9_0.verified.txt
index 0e56361ed7..daf9907ee1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.Net4_7.verified.txt
index 0e56361ed7..daf9907ee1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.NonGenericAssertion.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet10_0.verified.txt
index a8d32ef43b..7a0b9bb4f8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet8_0.verified.txt
index a8d32ef43b..7a0b9bb4f8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet9_0.verified.txt
index a8d32ef43b..7a0b9bb4f8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.Net4_7.verified.txt
index a8d32ef43b..7a0b9bb4f8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/AssertionExtensionGeneratorTests.SingleGenericParameter.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt
index 4d34ecf398..6bec90fd41 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt
index 4d34ecf398..6bec90fd41 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt
index 4d34ecf398..6bec90fd41 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt
index 4d34ecf398..6bec90fd41 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet10_0.verified.txt
index dd5f1ea667..4429e20db0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet8_0.verified.txt
index dd5f1ea667..4429e20db0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet9_0.verified.txt
index dd5f1ea667..4429e20db0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.Net4_7.verified.txt
index dd5f1ea667..4429e20db0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CancellationTokenAssertionGeneratorTests.GeneratesCancellationTokenAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet10_0.verified.txt
index 5dc043a724..21a419f4b8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet8_0.verified.txt
index 5dc043a724..21a419f4b8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet9_0.verified.txt
index 5dc043a724..21a419f4b8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.Net4_7.verified.txt
index 5dc043a724..21a419f4b8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CharAssertionGeneratorTests.GeneratesCharAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet10_0.verified.txt
index e427d33f12..5b06314be2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet8_0.verified.txt
index e427d33f12..5b06314be2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet9_0.verified.txt
index e427d33f12..5b06314be2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.Net4_7.verified.txt
index e427d33f12..5b06314be2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/CultureInfoAssertionGeneratorTests.GeneratesCultureInfoAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet10_0.verified.txt
index d549e3a90b..b73aa73fb9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet8_0.verified.txt
index d549e3a90b..b73aa73fb9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet9_0.verified.txt
index d549e3a90b..b73aa73fb9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.Net4_7.verified.txt
index d549e3a90b..b73aa73fb9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeAssertionGeneratorTests.GeneratesDateTimeAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet10_0.verified.txt
index ac66619ac1..988240aff2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet8_0.verified.txt
index ac66619ac1..988240aff2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet9_0.verified.txt
index ac66619ac1..988240aff2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.Net4_7.verified.txt
index ac66619ac1..988240aff2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DateTimeOffsetAssertionGeneratorTests.GeneratesDateTimeOffsetAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet10_0.verified.txt
index 081131daf4..e2fb16d4df 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet8_0.verified.txt
index 081131daf4..e2fb16d4df 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet9_0.verified.txt
index 081131daf4..e2fb16d4df 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.Net4_7.verified.txt
index 081131daf4..e2fb16d4df 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DayOfWeekAssertionGeneratorTests.GeneratesDayOfWeekAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet10_0.verified.txt
index 20f2ab3e21..9c76a769d8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet8_0.verified.txt
index 20f2ab3e21..9c76a769d8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet9_0.verified.txt
index 20f2ab3e21..9c76a769d8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.Net4_7.verified.txt
index 20f2ab3e21..9c76a769d8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/DirectoryInfoAssertionGeneratorTests.GeneratesDirectoryInfoAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet10_0.verified.txt
index 5c1d667479..54924d61f2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet8_0.verified.txt
index 5c1d667479..54924d61f2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet9_0.verified.txt
index 5c1d667479..54924d61f2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.Net4_7.verified.txt
index 5c1d667479..54924d61f2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/EncodingAssertionGeneratorTests.GeneratesEncodingAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet10_0.verified.txt
index 4c2caae9f8..bb5edca931 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet8_0.verified.txt
index 4c2caae9f8..bb5edca931 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet9_0.verified.txt
index 4c2caae9f8..bb5edca931 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.Net4_7.verified.txt
index a4f7f65aae..28c9965316 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ExceptionAssertionGeneratorTests.GeneratesExceptionAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet10_0.verified.txt
index 5feae87fc7..d3679dc52a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet8_0.verified.txt
index 5feae87fc7..d3679dc52a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet9_0.verified.txt
index 5feae87fc7..d3679dc52a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.Net4_7.verified.txt
index 5feae87fc7..d3679dc52a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/FileInfoAssertionGeneratorTests.GeneratesFileInfoAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet10_0.verified.txt
index 9784892a44..331b4095a0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet8_0.verified.txt
index 9784892a44..331b4095a0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet9_0.verified.txt
index 9784892a44..331b4095a0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.Net4_7.verified.txt
index 9784892a44..331b4095a0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/GuidAssertionGeneratorTests.GeneratesGuidAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet10_0.verified.txt
index f213276218..8998380423 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet8_0.verified.txt
index f213276218..8998380423 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet9_0.verified.txt
index f213276218..8998380423 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.Net4_7.verified.txt
index f798372331..f6f573c7d0 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/HttpStatusCodeAssertionGeneratorTests.GeneratesHttpStatusCodeAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet10_0.verified.txt
index 85fdb06632..b6ea8ba8d1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet8_0.verified.txt
index 85fdb06632..b6ea8ba8d1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet9_0.verified.txt
index 85fdb06632..b6ea8ba8d1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.Net4_7.verified.txt
index 85fdb06632..b6ea8ba8d1 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/LazyAssertionGeneratorTests.GeneratesLazyAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet10_0.verified.txt
index 7d5d14caef..d5cbbced92 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet8_0.verified.txt
index 7d5d14caef..d5cbbced92 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet9_0.verified.txt
index 7d5d14caef..d5cbbced92 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.Net4_7.verified.txt
index 7d5d14caef..d5cbbced92 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.ArrayTargetType.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet10_0.verified.txt
index e89e443c84..ec1f07f030 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet8_0.verified.txt
index e89e443c84..ec1f07f030 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet9_0.verified.txt
index e89e443c84..ec1f07f030 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.Net4_7.verified.txt
index e89e443c84..ec1f07f030 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet10_0.verified.txt
index 62c15bf931..f0b296482c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet8_0.verified.txt
index 62c15bf931..f0b296482c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet9_0.verified.txt
index 62c15bf931..f0b296482c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.Net4_7.verified.txt
index 62c15bf931..f0b296482c 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AssertionResultOfTMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet10_0.verified.txt
index 7c6861a4cb..0f0f912c5d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet8_0.verified.txt
index 7c6861a4cb..0f0f912c5d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet9_0.verified.txt
index 7c6861a4cb..0f0f912c5d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.Net4_7.verified.txt
index 7c6861a4cb..0f0f912c5d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet10_0.verified.txt
index a6a2aa30eb..ba9a84c64a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet8_0.verified.txt
index a6a2aa30eb..ba9a84c64a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet9_0.verified.txt
index a6a2aa30eb..ba9a84c64a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.Net4_7.verified.txt
index a6a2aa30eb..ba9a84c64a 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncAssertionResultOfTMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet10_0.verified.txt
index bc7e6d40ee..ed3acbadf3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet8_0.verified.txt
index bc7e6d40ee..ed3acbadf3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet9_0.verified.txt
index bc7e6d40ee..ed3acbadf3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.Net4_7.verified.txt
index bc7e6d40ee..ed3acbadf3 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.AsyncBoolMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet10_0.verified.txt
index 0e9e1cacfd..2047e021b4 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet8_0.verified.txt
index 0e9e1cacfd..2047e021b4 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet9_0.verified.txt
index 0e9e1cacfd..2047e021b4 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.Net4_7.verified.txt
index 0e9e1cacfd..2047e021b4 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.BoolMethod.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet10_0.verified.txt
index 685c85de5e..8a22adbd0b 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
@@ -100,6 +102,8 @@ public static partial class FileScopedBoolAssertions
}
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet8_0.verified.txt
index 685c85de5e..8a22adbd0b 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
@@ -100,6 +102,8 @@ public static partial class FileScopedBoolAssertions
}
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet9_0.verified.txt
index 685c85de5e..8a22adbd0b 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
@@ -100,6 +102,8 @@ public static partial class FileScopedBoolAssertions
}
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.Net4_7.verified.txt
index 685c85de5e..8a22adbd0b 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.FileScopedClassWithInlining.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
@@ -100,6 +102,8 @@ public static partial class FileScopedBoolAssertions
}
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet10_0.verified.txt
index 8c68994ed6..fa15973559 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet8_0.verified.txt
index 8c68994ed6..fa15973559 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet9_0.verified.txt
index 8c68994ed6..fa15973559 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.Net4_7.verified.txt
index 8c68994ed6..fa15973559 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.GenericMethodWithNonInferableTypeParameter.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet10_0.verified.txt
index e1995b2e3c..6f7881b769 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet8_0.verified.txt
index e1995b2e3c..6f7881b769 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet9_0.verified.txt
index e1995b2e3c..6f7881b769 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.Net4_7.verified.txt
index e1995b2e3c..6f7881b769 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithComparableConstraint.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet10_0.verified.txt
index a15383e2f8..28c8724aca 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet8_0.verified.txt
index a15383e2f8..28c8724aca 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet9_0.verified.txt
index a15383e2f8..28c8724aca 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.Net4_7.verified.txt
index a15383e2f8..28c8724aca 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithDefaultValues.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet10_0.verified.txt
index e46204ffc0..5f523ec6cf 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet8_0.verified.txt
index e46204ffc0..5f523ec6cf 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet9_0.verified.txt
index e46204ffc0..5f523ec6cf 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.Net4_7.verified.txt
index e46204ffc0..5f523ec6cf 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithMultipleConstraints.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet10_0.verified.txt
index 5e598d0389..eb6e0e97ee 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet8_0.verified.txt
index 5e598d0389..eb6e0e97ee 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet9_0.verified.txt
index 5e598d0389..eb6e0e97ee 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.Net4_7.verified.txt
index 5e598d0389..eb6e0e97ee 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithNotNullConstraint.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet10_0.verified.txt
index a1279d07a9..0c107754b2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet8_0.verified.txt
index a1279d07a9..0c107754b2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet9_0.verified.txt
index a1279d07a9..0c107754b2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.Net4_7.verified.txt
index a1279d07a9..0c107754b2 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithReferenceTypeConstraint.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet10_0.verified.txt
index 33bd9664f3..ff9942a28f 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet8_0.verified.txt
index 33bd9664f3..ff9942a28f 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet9_0.verified.txt
index 33bd9664f3..ff9942a28f 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.Net4_7.verified.txt
index 33bd9664f3..ff9942a28f 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.MethodWithValueTypeConstraint.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet10_0.verified.txt
index eb11276d58..1298e197af 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet8_0.verified.txt
index eb11276d58..1298e197af 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet9_0.verified.txt
index eb11276d58..1298e197af 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/MethodAssertionGeneratorTests.RefStructParameter.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet10_0.verified.txt
index f4691c10ea..8ed1d6f570 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet8_0.verified.txt
index f4691c10ea..8ed1d6f570 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet9_0.verified.txt
index f4691c10ea..8ed1d6f570 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.Net4_7.verified.txt
index f4691c10ea..8ed1d6f570 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ProcessAssertionGeneratorTests.GeneratesProcessAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet10_0.verified.txt
index dab57673d8..0fcf6ee01d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet8_0.verified.txt
index dab57673d8..0fcf6ee01d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet9_0.verified.txt
index dab57673d8..0fcf6ee01d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.Net4_7.verified.txt
index dab57673d8..0fcf6ee01d 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StreamAssertionGeneratorTests.GeneratesStreamAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet10_0.verified.txt
index a255e48e2e..4e734957a8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet8_0.verified.txt
index a255e48e2e..4e734957a8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet9_0.verified.txt
index a255e48e2e..4e734957a8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.Net4_7.verified.txt
index a255e48e2e..4e734957a8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/StringBuilderAssertionGeneratorTests.GeneratesStringBuilderAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet10_0.verified.txt
index fc777e07ab..0dd9b11299 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet8_0.verified.txt
index fc777e07ab..0dd9b11299 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet9_0.verified.txt
index fc777e07ab..0dd9b11299 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.Net4_7.verified.txt
index fc777e07ab..0dd9b11299 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TaskAssertionGeneratorTests.GeneratesTaskAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet10_0.verified.txt
index 1f19f36311..ded18782ec 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet8_0.verified.txt
index 1f19f36311..ded18782ec 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet9_0.verified.txt
index 1f19f36311..ded18782ec 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.Net4_7.verified.txt
index 1f19f36311..ded18782ec 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/ThreadAssertionGeneratorTests.GeneratesThreadAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet10_0.verified.txt
index 325d69374a..bab40faa17 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet8_0.verified.txt
index 325d69374a..bab40faa17 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet9_0.verified.txt
index 325d69374a..bab40faa17 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.Net4_7.verified.txt
index 325d69374a..bab40faa17 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeSpanAssertionGeneratorTests.GeneratesTimeSpanAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet10_0.verified.txt
index 4a7dcce748..3618af8db7 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet8_0.verified.txt
index 4a7dcce748..3618af8db7 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet9_0.verified.txt
index 4a7dcce748..3618af8db7 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.Net4_7.verified.txt
index 4a7dcce748..3618af8db7 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TimeZoneInfoAssertionGeneratorTests.GeneratesTimeZoneInfoAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet10_0.verified.txt
index 7de0f39a05..cab194f7f9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet8_0.verified.txt
index 7de0f39a05..cab194f7f9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet9_0.verified.txt
index 7de0f39a05..cab194f7f9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.Net4_7.verified.txt
index 7de0f39a05..cab194f7f9 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/TypeAssertionGeneratorTests.GeneratesTypeAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet10_0.verified.txt
index e6452a5422..30b77c2782 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet8_0.verified.txt
index e6452a5422..30b77c2782 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet9_0.verified.txt
index e6452a5422..30b77c2782 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.Net4_7.verified.txt
index e6452a5422..30b77c2782 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/UriAssertionGeneratorTests.GeneratesUriAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet10_0.verified.txt
index 167099ce50..012c747a38 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet8_0.verified.txt
index 167099ce50..012c747a38 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet9_0.verified.txt
index 167099ce50..012c747a38 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.Net4_7.verified.txt
index 167099ce50..012c747a38 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/VersionAssertionGeneratorTests.GeneratesVersionAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet10_0.verified.txt
index 9d8524688b..86fc501ce8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet10_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet10_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet8_0.verified.txt
index 9d8524688b..86fc501ce8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet8_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet8_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet9_0.verified.txt
index 9d8524688b..86fc501ce8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet9_0.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.DotNet9_0.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.Net4_7.verified.txt
index 9d8524688b..86fc501ce8 100644
--- a/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.Net4_7.verified.txt
+++ b/TUnit.Assertions.SourceGenerator.Tests/WeakReferenceAssertionGeneratorTests.GeneratesWeakReferenceAssertions.Net4_7.verified.txt
@@ -1,4 +1,6 @@
[
+//
+#pragma warning disable
#nullable enable
using System;
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
new file mode 100644
index 0000000000..f0b296482c
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
@@ -0,0 +1,85 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for ContainsMatch
+///
+public sealed class IEnumerableString_ContainsMatch_String_Assertion : Assertion>
+{
+ private readonly string _needle;
+ private string? _result;
+
+ public IEnumerableString_ContainsMatch_String_Assertion(AssertionContext> context, string needle)
+ : base(context)
+ {
+ _needle = needle;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata> metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ if (value is null)
+ {
+ return Task.FromResult(AssertionResult.Failed("Actual value is null"));
+ }
+
+ var typedResult = value!.ContainsMatch(_needle);
+ if (typedResult.IsPassed)
+ {
+ _result = typedResult.Value;
+ }
+ return Task.FromResult(typedResult.IsPassed
+ ? AssertionResult.Passed
+ : AssertionResult.Failed(typedResult.Message));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to contain '{_needle}'";
+ }
+
+ public new System.Runtime.CompilerServices.TaskAwaiter GetAwaiter()
+ {
+ return ExecuteAndReturnResultAsync().GetAwaiter();
+ }
+
+ private async Task ExecuteAndReturnResultAsync()
+ {
+ await AssertAsync();
+ return _result!;
+ }
+}
+
+public static partial class AssertionResultOfTMethodExtensions
+{
+ ///
+ /// Generated extension method for ContainsMatch
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static IEnumerableString_ContainsMatch_String_Assertion ContainsMatch(this IAssertionSource source, string needle, [CallerArgumentExpression(nameof(needle))] string? needleExpression = null)
+ where TActual : System.Collections.Generic.IEnumerable
+ {
+ source.Context.ExpressionBuilder.Append($".ContainsMatch({needleExpression})");
+ return new IEnumerableString_ContainsMatch_String_Assertion(source.Context.Map>(static x => (System.Collections.Generic.IEnumerable?)x), needle);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
new file mode 100644
index 0000000000..f0b296482c
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
@@ -0,0 +1,85 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for ContainsMatch
+///
+public sealed class IEnumerableString_ContainsMatch_String_Assertion : Assertion>
+{
+ private readonly string _needle;
+ private string? _result;
+
+ public IEnumerableString_ContainsMatch_String_Assertion(AssertionContext> context, string needle)
+ : base(context)
+ {
+ _needle = needle;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata> metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ if (value is null)
+ {
+ return Task.FromResult(AssertionResult.Failed("Actual value is null"));
+ }
+
+ var typedResult = value!.ContainsMatch(_needle);
+ if (typedResult.IsPassed)
+ {
+ _result = typedResult.Value;
+ }
+ return Task.FromResult(typedResult.IsPassed
+ ? AssertionResult.Passed
+ : AssertionResult.Failed(typedResult.Message));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to contain '{_needle}'";
+ }
+
+ public new System.Runtime.CompilerServices.TaskAwaiter GetAwaiter()
+ {
+ return ExecuteAndReturnResultAsync().GetAwaiter();
+ }
+
+ private async Task ExecuteAndReturnResultAsync()
+ {
+ await AssertAsync();
+ return _result!;
+ }
+}
+
+public static partial class AssertionResultOfTMethodExtensions
+{
+ ///
+ /// Generated extension method for ContainsMatch
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static IEnumerableString_ContainsMatch_String_Assertion ContainsMatch(this IAssertionSource source, string needle, [CallerArgumentExpression(nameof(needle))] string? needleExpression = null)
+ where TActual : System.Collections.Generic.IEnumerable
+ {
+ source.Context.ExpressionBuilder.Append($".ContainsMatch({needleExpression})");
+ return new IEnumerableString_ContainsMatch_String_Assertion(source.Context.Map>(static x => (System.Collections.Generic.IEnumerable?)x), needle);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
new file mode 100644
index 0000000000..f0b296482c
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
@@ -0,0 +1,85 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for ContainsMatch
+///
+public sealed class IEnumerableString_ContainsMatch_String_Assertion : Assertion>
+{
+ private readonly string _needle;
+ private string? _result;
+
+ public IEnumerableString_ContainsMatch_String_Assertion(AssertionContext> context, string needle)
+ : base(context)
+ {
+ _needle = needle;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata> metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ if (value is null)
+ {
+ return Task.FromResult(AssertionResult.Failed("Actual value is null"));
+ }
+
+ var typedResult = value!.ContainsMatch(_needle);
+ if (typedResult.IsPassed)
+ {
+ _result = typedResult.Value;
+ }
+ return Task.FromResult(typedResult.IsPassed
+ ? AssertionResult.Passed
+ : AssertionResult.Failed(typedResult.Message));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to contain '{_needle}'";
+ }
+
+ public new System.Runtime.CompilerServices.TaskAwaiter GetAwaiter()
+ {
+ return ExecuteAndReturnResultAsync().GetAwaiter();
+ }
+
+ private async Task ExecuteAndReturnResultAsync()
+ {
+ await AssertAsync();
+ return _result!;
+ }
+}
+
+public static partial class AssertionResultOfTMethodExtensions
+{
+ ///
+ /// Generated extension method for ContainsMatch
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static IEnumerableString_ContainsMatch_String_Assertion ContainsMatch(this IAssertionSource source, string needle, [CallerArgumentExpression(nameof(needle))] string? needleExpression = null)
+ where TActual : System.Collections.Generic.IEnumerable
+ {
+ source.Context.ExpressionBuilder.Append($".ContainsMatch({needleExpression})");
+ return new IEnumerableString_ContainsMatch_String_Assertion(source.Context.Map>(static x => (System.Collections.Generic.IEnumerable?)x), needle);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt
new file mode 100644
index 0000000000..f0b296482c
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AssertionResultOfTMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt
@@ -0,0 +1,85 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for ContainsMatch
+///
+public sealed class IEnumerableString_ContainsMatch_String_Assertion : Assertion>
+{
+ private readonly string _needle;
+ private string? _result;
+
+ public IEnumerableString_ContainsMatch_String_Assertion(AssertionContext> context, string needle)
+ : base(context)
+ {
+ _needle = needle;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata> metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ if (value is null)
+ {
+ return Task.FromResult(AssertionResult.Failed("Actual value is null"));
+ }
+
+ var typedResult = value!.ContainsMatch(_needle);
+ if (typedResult.IsPassed)
+ {
+ _result = typedResult.Value;
+ }
+ return Task.FromResult(typedResult.IsPassed
+ ? AssertionResult.Passed
+ : AssertionResult.Failed(typedResult.Message));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to contain '{_needle}'";
+ }
+
+ public new System.Runtime.CompilerServices.TaskAwaiter GetAwaiter()
+ {
+ return ExecuteAndReturnResultAsync().GetAwaiter();
+ }
+
+ private async Task ExecuteAndReturnResultAsync()
+ {
+ await AssertAsync();
+ return _result!;
+ }
+}
+
+public static partial class AssertionResultOfTMethodExtensions
+{
+ ///
+ /// Generated extension method for ContainsMatch
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static IEnumerableString_ContainsMatch_String_Assertion ContainsMatch(this IAssertionSource source, string needle, [CallerArgumentExpression(nameof(needle))] string? needleExpression = null)
+ where TActual : System.Collections.Generic.IEnumerable
+ {
+ source.Context.ExpressionBuilder.Append($".ContainsMatch({needleExpression})");
+ return new IEnumerableString_ContainsMatch_String_Assertion(source.Context.Map>(static x => (System.Collections.Generic.IEnumerable?)x), needle);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
new file mode 100644
index 0000000000..ed3acbadf3
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
@@ -0,0 +1,103 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositiveAsync
+///
+public sealed class Int_IsPositiveAsync_Assertion : Assertion
+{
+ public Int_IsPositiveAsync_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsPositiveAsync();
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositiveAsync";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThanAsync
+///
+public sealed class Int_IsGreaterThanAsync_Int_Assertion : Assertion
+{
+ private readonly int _threshold;
+
+ public Int_IsGreaterThanAsync_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsGreaterThanAsync(_threshold);
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThanAsync({_threshold})";
+ }
+}
+
+public static partial class AsyncBoolAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositiveAsync
+ ///
+ public static Int_IsPositiveAsync_Assertion IsPositiveAsync(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositiveAsync()");
+ return new Int_IsPositiveAsync_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThanAsync
+ ///
+ public static Int_IsGreaterThanAsync_Int_Assertion IsGreaterThanAsync(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThanAsync({thresholdExpression})");
+ return new Int_IsGreaterThanAsync_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
new file mode 100644
index 0000000000..ed3acbadf3
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
@@ -0,0 +1,103 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositiveAsync
+///
+public sealed class Int_IsPositiveAsync_Assertion : Assertion
+{
+ public Int_IsPositiveAsync_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsPositiveAsync();
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositiveAsync";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThanAsync
+///
+public sealed class Int_IsGreaterThanAsync_Int_Assertion : Assertion
+{
+ private readonly int _threshold;
+
+ public Int_IsGreaterThanAsync_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsGreaterThanAsync(_threshold);
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThanAsync({_threshold})";
+ }
+}
+
+public static partial class AsyncBoolAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositiveAsync
+ ///
+ public static Int_IsPositiveAsync_Assertion IsPositiveAsync(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositiveAsync()");
+ return new Int_IsPositiveAsync_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThanAsync
+ ///
+ public static Int_IsGreaterThanAsync_Int_Assertion IsGreaterThanAsync(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThanAsync({thresholdExpression})");
+ return new Int_IsGreaterThanAsync_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
new file mode 100644
index 0000000000..ed3acbadf3
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
@@ -0,0 +1,103 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositiveAsync
+///
+public sealed class Int_IsPositiveAsync_Assertion : Assertion
+{
+ public Int_IsPositiveAsync_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsPositiveAsync();
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositiveAsync";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThanAsync
+///
+public sealed class Int_IsGreaterThanAsync_Int_Assertion : Assertion
+{
+ private readonly int _threshold;
+
+ public Int_IsGreaterThanAsync_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsGreaterThanAsync(_threshold);
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThanAsync({_threshold})";
+ }
+}
+
+public static partial class AsyncBoolAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositiveAsync
+ ///
+ public static Int_IsPositiveAsync_Assertion IsPositiveAsync(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositiveAsync()");
+ return new Int_IsPositiveAsync_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThanAsync
+ ///
+ public static Int_IsGreaterThanAsync_Int_Assertion IsGreaterThanAsync(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThanAsync({thresholdExpression})");
+ return new Int_IsGreaterThanAsync_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.Net4_7.verified.txt
new file mode 100644
index 0000000000..ed3acbadf3
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.AsyncBoolAssertion_ProducesNoCS1591.Net4_7.verified.txt
@@ -0,0 +1,103 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositiveAsync
+///
+public sealed class Int_IsPositiveAsync_Assertion : Assertion
+{
+ public Int_IsPositiveAsync_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsPositiveAsync();
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositiveAsync";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThanAsync
+///
+public sealed class Int_IsGreaterThanAsync_Int_Assertion : Assertion
+{
+ private readonly int _threshold;
+
+ public Int_IsGreaterThanAsync_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override async Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return AssertionResult.Failed($"threw {exception.GetType().FullName}");
+ }
+
+ var result = await value!.IsGreaterThanAsync(_threshold);
+ return result
+ ? AssertionResult.Passed
+ : AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThanAsync({_threshold})";
+ }
+}
+
+public static partial class AsyncBoolAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositiveAsync
+ ///
+ public static Int_IsPositiveAsync_Assertion IsPositiveAsync(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositiveAsync()");
+ return new Int_IsPositiveAsync_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThanAsync
+ ///
+ public static Int_IsGreaterThanAsync_Int_Assertion IsGreaterThanAsync(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThanAsync({thresholdExpression})");
+ return new Int_IsGreaterThanAsync_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
new file mode 100644
index 0000000000..2047e021b4
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
@@ -0,0 +1,107 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsPositive();
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsGreaterThan(_threshold);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThan({_threshold})";
+ }
+}
+
+public static partial class BoolMethodAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
new file mode 100644
index 0000000000..2047e021b4
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
@@ -0,0 +1,107 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsPositive();
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsGreaterThan(_threshold);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThan({_threshold})";
+ }
+}
+
+public static partial class BoolMethodAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
new file mode 100644
index 0000000000..2047e021b4
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
@@ -0,0 +1,107 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsPositive();
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsGreaterThan(_threshold);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThan({_threshold})";
+ }
+}
+
+public static partial class BoolMethodAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt
new file mode 100644
index 0000000000..2047e021b4
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.BoolMethodAssertion_ProducesNoCS1591.Net4_7.verified.txt
@@ -0,0 +1,107 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsPositive();
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to satisfy IsPositive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsGreaterThan(_threshold);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to satisfy IsGreaterThan({_threshold})";
+ }
+}
+
+public static partial class BoolMethodAssertionExtensions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
new file mode 100644
index 0000000000..8a22adbd0b
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet10_0.verified.txt
@@ -0,0 +1,210 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsTrue
+///
+public sealed class Bool_IsTrue_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsTrue_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == true;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be true";
+ }
+}
+
+///
+/// Generated assertion for IsFalse
+///
+public sealed class Bool_IsFalse_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsFalse_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == false;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be false";
+ }
+}
+
+public static partial class FileScopedBoolAssertions
+{
+ ///
+ /// Generated extension method for IsTrue
+ ///
+ public static Bool_IsTrue_Assertion IsTrue(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsTrue()");
+ return new Bool_IsTrue_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsFalse
+ ///
+ public static Bool_IsFalse_Assertion IsFalse(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsFalse()");
+ return new Bool_IsFalse_Assertion(source.Context);
+ }
+
+}
+
+
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > 0;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be positive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > _threshold;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to be greater than {_threshold}";
+ }
+}
+
+public static partial class FileScopedIntAssertions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
new file mode 100644
index 0000000000..8a22adbd0b
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet8_0.verified.txt
@@ -0,0 +1,210 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsTrue
+///
+public sealed class Bool_IsTrue_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsTrue_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == true;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be true";
+ }
+}
+
+///
+/// Generated assertion for IsFalse
+///
+public sealed class Bool_IsFalse_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsFalse_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == false;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be false";
+ }
+}
+
+public static partial class FileScopedBoolAssertions
+{
+ ///
+ /// Generated extension method for IsTrue
+ ///
+ public static Bool_IsTrue_Assertion IsTrue(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsTrue()");
+ return new Bool_IsTrue_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsFalse
+ ///
+ public static Bool_IsFalse_Assertion IsFalse(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsFalse()");
+ return new Bool_IsFalse_Assertion(source.Context);
+ }
+
+}
+
+
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > 0;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be positive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > _threshold;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to be greater than {_threshold}";
+ }
+}
+
+public static partial class FileScopedIntAssertions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
new file mode 100644
index 0000000000..8a22adbd0b
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.DotNet9_0.verified.txt
@@ -0,0 +1,210 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsTrue
+///
+public sealed class Bool_IsTrue_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsTrue_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == true;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be true";
+ }
+}
+
+///
+/// Generated assertion for IsFalse
+///
+public sealed class Bool_IsFalse_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsFalse_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == false;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be false";
+ }
+}
+
+public static partial class FileScopedBoolAssertions
+{
+ ///
+ /// Generated extension method for IsTrue
+ ///
+ public static Bool_IsTrue_Assertion IsTrue(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsTrue()");
+ return new Bool_IsTrue_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsFalse
+ ///
+ public static Bool_IsFalse_Assertion IsFalse(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsFalse()");
+ return new Bool_IsFalse_Assertion(source.Context);
+ }
+
+}
+
+
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > 0;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be positive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > _threshold;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to be greater than {_threshold}";
+ }
+}
+
+public static partial class FileScopedIntAssertions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.Net4_7.verified.txt
new file mode 100644
index 0000000000..8a22adbd0b
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.FileScopedClassAssertion_ProducesNoCS1591.Net4_7.verified.txt
@@ -0,0 +1,210 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsTrue
+///
+public sealed class Bool_IsTrue_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsTrue_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == true;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be true";
+ }
+}
+
+///
+/// Generated assertion for IsFalse
+///
+public sealed class Bool_IsFalse_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Bool_IsFalse_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value == false;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be false";
+ }
+}
+
+public static partial class FileScopedBoolAssertions
+{
+ ///
+ /// Generated extension method for IsTrue
+ ///
+ public static Bool_IsTrue_Assertion IsTrue(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsTrue()");
+ return new Bool_IsTrue_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsFalse
+ ///
+ public static Bool_IsFalse_Assertion IsFalse(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsFalse()");
+ return new Bool_IsFalse_Assertion(source.Context);
+ }
+
+}
+
+
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsPositive
+///
+public sealed class Int_IsPositive_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ public Int_IsPositive_Assertion(AssertionContext context)
+ : base(context)
+ {
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > 0;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return "to be positive";
+ }
+}
+
+///
+/// Generated assertion for IsGreaterThan
+///
+public sealed class Int_IsGreaterThan_Int_Assertion : Assertion
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly int _threshold;
+
+ public Int_IsGreaterThan_Int_Assertion(AssertionContext context, int threshold)
+ : base(context)
+ {
+ _threshold = threshold;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value > _threshold;
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"to be greater than {_threshold}";
+ }
+}
+
+public static partial class FileScopedIntAssertions
+{
+ ///
+ /// Generated extension method for IsPositive
+ ///
+ public static Int_IsPositive_Assertion IsPositive(this IAssertionSource source)
+ {
+ source.Context.ExpressionBuilder.Append(".IsPositive()");
+ return new Int_IsPositive_Assertion(source.Context);
+ }
+
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ public static Int_IsGreaterThan_Int_Assertion IsGreaterThan(this IAssertionSource source, int threshold, [CallerArgumentExpression(nameof(threshold))] string? thresholdExpression = null)
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({thresholdExpression})");
+ return new Int_IsGreaterThan_Int_Assertion(source.Context, threshold);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet10_0.verified.txt
new file mode 100644
index 0000000000..6f7881b769
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet10_0.verified.txt
@@ -0,0 +1,120 @@
+[
+//
+#pragma warning disable
+#nullable enable
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using TUnit.Assertions.Core;
+using TUnit.Assertions.Tests.TestData;
+
+namespace TUnit.Assertions.Extensions;
+
+///
+/// Generated assertion for IsGreaterThan
+///
+[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+public sealed class Int_IsGreaterThan_T_Assertion : Assertion
+ where T : System.IComparable
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly T _other;
+
+ public Int_IsGreaterThan_T_Assertion(AssertionContext context, T other)
+ : base(context)
+ {
+ _other = other;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsGreaterThan(_other);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"be greater than {0}";
+ }
+}
+
+///
+/// Generated assertion for IsBetween
+///
+[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+public sealed class Int_IsBetween_T_T_Assertion : Assertion
+ where T : System.IComparable
+{
+ private static readonly Task _passedTask = Task.FromResult(AssertionResult.Passed);
+
+ private readonly T _min;
+ private readonly T _max;
+
+ public Int_IsBetween_T_T_Assertion(AssertionContext context, T min, T max)
+ : base(context)
+ {
+ _min = min;
+ _max = max;
+ }
+
+ protected override Task CheckAsync(EvaluationMetadata metadata)
+ {
+ var value = metadata.Value;
+ var exception = metadata.Exception;
+
+ if (exception != null)
+ {
+ return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}"));
+ }
+
+ var result = value!.IsBetween(_min, _max);
+ return result
+ ? _passedTask
+ : Task.FromResult(AssertionResult.Failed($"found {value}"));
+ }
+
+ protected override string GetExpectation()
+ {
+ return $"be between {0} and {1}";
+ }
+}
+
+public static partial class ComparableConstraintExtensions
+{
+ ///
+ /// Generated extension method for IsGreaterThan
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static Int_IsGreaterThan_T_Assertion IsGreaterThan(this IAssertionSource source, T other, [CallerArgumentExpression(nameof(other))] string? otherExpression = null)
+ where T : System.IComparable
+ {
+ source.Context.ExpressionBuilder.Append($".IsGreaterThan({otherExpression})");
+ return new Int_IsGreaterThan_T_Assertion(source.Context, other);
+ }
+
+ ///
+ /// Generated extension method for IsBetween
+ ///
+ [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
+ public static Int_IsBetween_T_T_Assertion IsBetween(this IAssertionSource source, T min, T max, [CallerArgumentExpression(nameof(min))] string? minExpression = null, [CallerArgumentExpression(nameof(max))] string? maxExpression = null)
+ where T : System.IComparable
+ {
+ source.Context.ExpressionBuilder.Append($".IsBetween({minExpression}, {maxExpression})");
+ return new Int_IsBetween_T_T_Assertion(source.Context, min, max);
+ }
+
+}
+
+]
\ No newline at end of file
diff --git a/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet8_0.verified.txt
new file mode 100644
index 0000000000..6f7881b769
--- /dev/null
+++ b/TUnit.Assertions.SourceGenerator.Tests/XmlDocsRegressionTests.MethodWithComparableConstraint_ProducesNoCS1591.DotNet8_0.verified.txt
@@ -0,0 +1,120 @@
+[
+//