From ed0b5d5ebe7acef501c1ccb10c75b4029b505d6b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 28 Mar 2026 12:46:47 +0000
Subject: [PATCH 1/4] Initial plan
From a5966edb7dac518aaba9d80448dd88fcaed22ff0 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 28 Mar 2026 12:57:35 +0000
Subject: [PATCH 2/4] Always emit TUnit.Mocks.Generated namespace to prevent
build errors when no mocks are generated
Fixes the bug where installing TUnit.Mocks without using any mocks causes a CS0234 build error because the `global using TUnit.Mocks.Generated;` directive references a namespace that doesn't exist yet.
The fix uses RegisterPostInitializationOutput to always emit a minimal file declaring the TUnit.Mocks.Generated namespace.
Agent-Logs-Url: https://github.com/thomhurst/TUnit/sessions/95943b6a-aa9a-4365-afdd-16d5f96e0f31
Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
---
...erface_Inheriting_Multiple_Interfaces.verified.txt | 7 +++++++
.../Interface_With_Async_Methods.verified.txt | 7 +++++++
.../Snapshots/Interface_With_Events.verified.txt | 7 +++++++
.../Interface_With_Generic_Methods.verified.txt | 7 +++++++
...ith_Inherited_Static_Abstract_Members.verified.txt | 7 +++++++
...nterface_With_Keyword_Parameter_Names.verified.txt | 7 +++++++
.../Interface_With_Mixed_Members.verified.txt | 7 +++++++
...th_Nullable_Reference_Type_Parameters.verified.txt | 7 +++++++
.../Interface_With_Out_Ref_Parameters.verified.txt | 7 +++++++
.../Interface_With_Overloaded_Methods.verified.txt | 7 +++++++
.../Snapshots/Interface_With_Properties.verified.txt | 7 +++++++
.../Interface_With_RefStruct_Parameters.verified.txt | 7 +++++++
...nterface_With_Static_Abstract_Members.verified.txt | 7 +++++++
...tatic_Abstract_Transitive_Return_Type.verified.txt | 7 +++++++
.../Snapshots/Multi_Method_Interface.verified.txt | 7 +++++++
.../Simple_Interface_With_One_Method.verified.txt | 7 +++++++
TUnit.Mocks.SourceGenerator/MockGenerator.cs | 11 +++++++++++
17 files changed, 123 insertions(+)
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
index ba17896519..a2022048ef 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
@@ -173,3 +173,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
index 54debdf4bf..41c096eb42 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
@@ -408,3 +408,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
index 364ed98c68..725025fce3 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
@@ -211,3 +211,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
index eb876fb232..b7dbe991d2 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
@@ -112,3 +112,10 @@ namespace TUnit.Mocks.Generated
}
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
index 1eff4d264d..054979f56a 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
@@ -115,3 +115,10 @@ namespace TUnit.Mocks.Generated
}
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
index 4c614d4cc2..6176fe05e1 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
@@ -273,3 +273,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
index 8b8c4a4c35..70cb250e8f 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
@@ -349,3 +349,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
index 1b42ee5f1b..e8bddf7e38 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
@@ -540,3 +540,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
index 9271350b0a..f8a9037461 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
@@ -274,3 +274,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
index 27371502d5..003e5a568f 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
@@ -548,3 +548,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
index fdd42f5115..4865bb6bcd 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
@@ -86,3 +86,10 @@ namespace TUnit.Mocks.Generated
}
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
index 85bbb1d4db..48d6248de9 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
@@ -117,3 +117,10 @@ namespace TUnit.Mocks.Generated
}
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
index 035fcac82b..5123e4fd25 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
@@ -137,3 +137,10 @@ namespace TUnit.Mocks.Generated
}
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
index 7cf3821cf7..eea5ec91ff 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
@@ -182,3 +182,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
index 197f3d5a86..cc422eb02a 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
@@ -313,3 +313,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
index 3077ce0d93..a9822442d5 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
@@ -165,3 +165,10 @@ namespace TUnit.Mocks.Generated
public void WasNeverCalled(string? message) => _engine.CreateVerification(_memberId, _memberName, _matchers).WasNeverCalled(message);
}
}
+
+// ===== FILE SEPARATOR =====
+
+//
+#nullable enable
+
+namespace TUnit.Mocks.Generated;
diff --git a/TUnit.Mocks.SourceGenerator/MockGenerator.cs b/TUnit.Mocks.SourceGenerator/MockGenerator.cs
index 85c2f4605f..9d0da86c80 100644
--- a/TUnit.Mocks.SourceGenerator/MockGenerator.cs
+++ b/TUnit.Mocks.SourceGenerator/MockGenerator.cs
@@ -10,6 +10,17 @@ public class MockGenerator : IIncrementalGenerator
{
public void Initialize(IncrementalGeneratorInitializationContext context)
{
+ // Always emit the TUnit.Mocks.Generated namespace so that global usings never fail
+ context.RegisterPostInitializationOutput(ctx =>
+ {
+ ctx.AddSource("TUnit.Mocks.Generated.Namespace.g.cs", """
+ //
+ #nullable enable
+
+ namespace TUnit.Mocks.Generated;
+ """);
+ });
+
// Step 1a: Find all Mock.Of() invocations and transform to model arrays
var mockTypes = context.SyntaxProvider
.CreateSyntaxProvider(
From d6d2c1efdb7fcf06ecda765b9a9c49b3a8bfe7fc Mon Sep 17 00:00:00 2001
From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com>
Date: Sun, 29 Mar 2026 11:43:26 +0100
Subject: [PATCH 3/4] fix: pass parseOptions to CSharpGeneratorDriver to fix
language version mismatch
RegisterPostInitializationOutput sources need the same language version
as the test compilation. Without forwarding parseOptions, the driver
parses post-init sources with the default version, causing
"Inconsistent language versions" errors in all 16 snapshot tests.
---
TUnit.Mocks.SourceGenerator.Tests/SnapshotTestBase.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/TUnit.Mocks.SourceGenerator.Tests/SnapshotTestBase.cs b/TUnit.Mocks.SourceGenerator.Tests/SnapshotTestBase.cs
index 7ae7046061..bb4723cefb 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/SnapshotTestBase.cs
+++ b/TUnit.Mocks.SourceGenerator.Tests/SnapshotTestBase.cs
@@ -47,7 +47,7 @@ protected static string[] RunGenerator(string source, CSharpParseOptions? parseO
).WithReferences(_references.Value);
var generator = new MockGenerator();
- GeneratorDriver driver = CSharpGeneratorDriver.Create(generator);
+ GeneratorDriver driver = CSharpGeneratorDriver.Create([generator.AsSourceGenerator()], parseOptions: parseOptions);
var runResult = driver.RunGenerators(compilation).GetRunResult();
From 76c826c950a7553054811bc0bb3af6a74e94b54b Mon Sep 17 00:00:00 2001
From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com>
Date: Sun, 29 Mar 2026 13:22:20 +0100
Subject: [PATCH 4/4] fix: update snapshot .verified.txt files to match actual
generator output
The namespace file emitted by RegisterPostInitializationOutput produces
an extra blank line before the FILE SEPARATOR and no trailing newline,
which differed from the manually-written snapshots.
---
.../Interface_Inheriting_Multiple_Interfaces.verified.txt | 3 ++-
.../Snapshots/Interface_With_Async_Methods.verified.txt | 3 ++-
.../Snapshots/Interface_With_Events.verified.txt | 3 ++-
.../Snapshots/Interface_With_Generic_Methods.verified.txt | 3 ++-
...terface_With_Inherited_Static_Abstract_Members.verified.txt | 3 ++-
.../Interface_With_Keyword_Parameter_Names.verified.txt | 3 ++-
.../Snapshots/Interface_With_Mixed_Members.verified.txt | 3 ++-
...erface_With_Nullable_Reference_Type_Parameters.verified.txt | 3 ++-
.../Snapshots/Interface_With_Out_Ref_Parameters.verified.txt | 3 ++-
.../Snapshots/Interface_With_Overloaded_Methods.verified.txt | 3 ++-
.../Snapshots/Interface_With_Properties.verified.txt | 3 ++-
.../Snapshots/Interface_With_RefStruct_Parameters.verified.txt | 3 ++-
.../Interface_With_Static_Abstract_Members.verified.txt | 3 ++-
...ce_With_Static_Abstract_Transitive_Return_Type.verified.txt | 3 ++-
.../Snapshots/Multi_Method_Interface.verified.txt | 3 ++-
.../Snapshots/Simple_Interface_With_One_Method.verified.txt | 3 ++-
16 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
index a2022048ef..aae5a4002c 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt
@@ -174,9 +174,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
index 41c096eb42..8df17a1351 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt
@@ -409,9 +409,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
index 725025fce3..7040397997 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt
@@ -212,9 +212,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
index b7dbe991d2..68f87ae580 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt
@@ -113,9 +113,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
index 054979f56a..dc8c623623 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt
@@ -116,9 +116,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
index 6176fe05e1..ccc0455c03 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt
@@ -274,9 +274,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
index 70cb250e8f..4b83f966ab 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt
@@ -350,9 +350,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
index e8bddf7e38..94d54e07ad 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt
@@ -541,9 +541,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
index f8a9037461..fdb45bb5ea 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt
@@ -275,9 +275,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
index 003e5a568f..cc74b2811e 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt
@@ -549,9 +549,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
index 4865bb6bcd..75d2bee750 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt
@@ -87,9 +87,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
index 48d6248de9..4603818ba5 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt
@@ -118,9 +118,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
index 5123e4fd25..9a09752e23 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt
@@ -138,9 +138,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
index eea5ec91ff..bee541a03d 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt
@@ -183,9 +183,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
index cc422eb02a..1b4c77e37f 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt
@@ -314,9 +314,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file
diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
index a9822442d5..4ed109f3f2 100644
--- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
+++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt
@@ -166,9 +166,10 @@ namespace TUnit.Mocks.Generated
}
}
+
// ===== FILE SEPARATOR =====
//
#nullable enable
-namespace TUnit.Mocks.Generated;
+namespace TUnit.Mocks.Generated;
\ No newline at end of file