Skip to content

Update Mastercard.Developer.ClientEncryption.Tests.csproj #947

Update Mastercard.Developer.ClientEncryption.Tests.csproj

Update Mastercard.Developer.ClientEncryption.Tests.csproj #947

Triggered via push June 17, 2025 15:27
Status Success
Total duration 1m 32s
Artifacts

sonar.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/EncryptionUtilsTest.cs#L103
Replace the 'ExpectedException' attribute with a throw assertion or a try/catch block. (https://rules.sonarsource.com/csharp/RSPEC-3431)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/EncryptionUtilsTest.cs#L92
Replace the 'ExpectedException' attribute with a throw assertion or a try/catch block. (https://rules.sonarsource.com/csharp/RSPEC-3431)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L157
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L156
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L148
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L147
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Test/TestUtils.cs#L19
'X509Certificate2.X509Certificate2()' is obsolete: 'X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate.' (https://aka.ms/dotnet-warnings/SYSLIB0026)
build: Mastercard.Developer.ClientEncryption.RestSharpV2/Interceptors/RestSharpEncryptionInterceptor.cs#L135
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
build: Mastercard.Developer.ClientEncryption.RestSharpV2/Interceptors/RestSharpEncryptionInterceptor.cs#L42
'RestRequest.OnBeforeDeserialization' is obsolete: 'Use Interceptors instead'
build: Mastercard.Developer.ClientEncryption.Core/Utils/JsonUtils.cs#L10
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)