Skip to content

Commit 4b9836c

Browse files
committed
chore: bump Mockolate to v4.0.0
Mockolate 4.0.0 moved `MockRegistry` into the `Mockolate.Internals` namespace, which broke the test verifiers that used it only to locate the Mockolate assembly. They now use the public `MockBehavior` type, which is stable across major versions.
1 parent 6a9a73b commit 4b9836c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Directory.Packages.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.14"/>
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageVersion Include="Mockolate" Version="3.6.0"/>
11+
<PackageVersion Include="Mockolate" Version="4.0.0"/>
1212
</ItemGroup>
1313
<ItemGroup>
1414
<PackageVersion Include="Nullable" Version="1.3.1"/>

‎Tests/Mockolate.Migration.Tests/Verifiers/CSharpAnalyzerVerifier`1.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static async Task VerifyAnalyzerAsync([StringSyntax("c#-test")] string so
3838
{
3939
AdditionalReferences =
4040
{
41-
typeof(MockRegistry).Assembly.Location,
41+
typeof(MockBehavior).Assembly.Location,
4242
},
4343
},
4444
};

‎Tests/Mockolate.Migration.Tests/Verifiers/CSharpCodeFixVerifier.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public Test()
2121
[
2222
new PackageIdentity("Moq", "4.20.72"),
2323
new PackageIdentity("NSubstitute", "5.3.0"),
24-
new PackageIdentity("Mockolate", typeof(MockRegistry).Assembly.GetName().Version!.ToString(3)),
24+
new PackageIdentity("Mockolate", typeof(MockBehavior).Assembly.GetName().Version!.ToString(3)),
2525
]);
2626
TestBehaviors |= TestBehaviors.SkipGeneratedSourcesCheck;
2727
SolutionTransforms.Add((solution, projectId) =>

0 commit comments

Comments
 (0)