diff --git a/Directory.Packages.props b/Directory.Packages.props index 550fe7a..7754e07 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,26 +5,27 @@ true - - - - + + + + - - - - - - + + + + + + - + - + - - - - + + + + + diff --git a/Moq.AutoMocker.Generators.Tests/ApplicationInsightsGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/ApplicationInsightsGeneratorTests.cs index 1b4cfaf..a8776a3 100644 --- a/Moq.AutoMocker.Generators.Tests/ApplicationInsightsGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/ApplicationInsightsGeneratorTests.cs @@ -246,7 +246,7 @@ public async Task WhenGeneratorIsExplicitlyEnabled_ExtensionMethodIsGenerated() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.ApplicationInsightsExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.ApplicationInsightsExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/FakeLoggingGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/FakeLoggingGeneratorTests.cs index 06ca3c7..78b9f5c 100644 --- a/Moq.AutoMocker.Generators.Tests/FakeLoggingGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/FakeLoggingGeneratorTests.cs @@ -168,7 +168,7 @@ public async Task WhenGeneratorIsExplicitlyEnabled_ExtensionMethodIsGenerated() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.FakeLoggingExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.FakeLoggingExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/GeneratorsTests.cs b/Moq.AutoMocker.Generators.Tests/GeneratorsTests.cs index a5b4893..50b6377 100644 --- a/Moq.AutoMocker.Generators.Tests/GeneratorsTests.cs +++ b/Moq.AutoMocker.Generators.Tests/GeneratorsTests.cs @@ -202,7 +202,7 @@ partial class ControllerTests private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.UnitTestSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.UnitTestSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/KeyedServicesGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/KeyedServicesGeneratorTests.cs index 06384d5..da25848 100644 --- a/Moq.AutoMocker.Generators.Tests/KeyedServicesGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/KeyedServicesGeneratorTests.cs @@ -312,7 +312,7 @@ public async Task WhenGeneratorIsExplicitlyEnabled_ExtensionMethodIsGenerated() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.KeyedServicesExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.KeyedServicesExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/MeterFactoryGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/MeterFactoryGeneratorTests.cs index 5e2fadd..3c21fd3 100644 --- a/Moq.AutoMocker.Generators.Tests/MeterFactoryGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/MeterFactoryGeneratorTests.cs @@ -143,7 +143,7 @@ public async Task WhenGeneratorIsExplicitlyEnabled_ExtensionMethodIsGenerated() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.MeterFactoryExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.MeterFactoryExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/OptionsGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/OptionsGeneratorTests.cs index 5f92a82..6d6747f 100644 --- a/Moq.AutoMocker.Generators.Tests/OptionsGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/OptionsGeneratorTests.cs @@ -119,7 +119,7 @@ public async Task WhenGeneratorIsExplicitlyEnabled_ExtensionMethodIsGenerated() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.OptionsExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.OptionsExtensionSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; } diff --git a/Moq.AutoMocker.Generators.Tests/TestGeneratorTests.cs b/Moq.AutoMocker.Generators.Tests/TestGeneratorTests.cs index 59f8693..99424b3 100644 --- a/Moq.AutoMocker.Generators.Tests/TestGeneratorTests.cs +++ b/Moq.AutoMocker.Generators.Tests/TestGeneratorTests.cs @@ -832,7 +832,7 @@ public void ControllerConstructor_WithNullIService_ThrowsArgumentNullException() private static (string FileName, SourceText SourceText) GetSourceFile(string content, string fileName) { - return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.UnitTestSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8)); + return (Path.Combine("Moq.AutoMocker.Generators", "Moq.AutoMocker.Generators.UnitTestSourceGenerator", fileName), SourceText.From(content, Encoding.UTF8, SourceHashAlgorithm.Sha256)); } public TestContext TestContext { get; set; }