Migrate to xUnit 3 #2050
Annotations
3 errors and 11 warnings
Unit tests
Process completed with exit code 1.
|
Upload test report
LeanCode.Logging.Tests.BaseSanitizerTests.Calls_property_factory_when_sanitizing_object: NSubstitute.Exceptions.ReceivedCallsException : Expected to receive exactly 1 call matching:
\tCreatePropertyValue(Payload, True)
Actually received no matching calls.
- at NSubstitute.Core.ReceivedCallsExceptionThrower.Throw(ICallSpecification callSpecification, IEnumerable`1 matchingCalls, IEnumerable`1 nonMatchingCalls, Quantity requiredQuantity)
at NSubstitute.Routing.Handlers.CheckReceivedCallsHandler.Handle(ICall call)
at NSubstitute.Routing.Route.Handle(ICall call)
at NSubstitute.Core.CallRouter.Route(ICall call)
at NSubstitute.Proxies.CastleDynamicProxy.CastleForwardingInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at NSubstitute.Proxies.CastleDynamicProxy.ProxyIdInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ObjectProxy.CreatePropertyValue(Object value, Boolean destructureObjects)
at LeanCode.Logging.Tests.BaseSanitizerTests.Calls_property_factory_when_sanitizing_object() in /home/runner/work/corelibrary/corelibrary/test/Infrastructure/LeanCode.Logging.Tests/BaseSanitizerTests.cs:line 38
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
|
Upload test report
LeanCode.Logging.Tests.BaseSanitizerTests.Returns_true_with_factory_result_when_sanitizing_object: Assert.True() Failure
Expected: True
Actual: False - at LeanCode.Logging.Tests.BaseSanitizerTests.Returns_true_with_factory_result_when_sanitizing_object() in /home/runner/work/corelibrary/corelibrary/test/Infrastructure/LeanCode.Logging.Tests/BaseSanitizerTests.cs:line 49
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit tests:
test/LeanCode.Test.Helpers/ExternalServiceFactAttribute.cs#L8
Abstract type 'ExternalServiceFactAttribute' should not have public constructors (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012)
|
Unit tests:
test/LeanCode.Test.Helpers/IntegrationFactAttribute.cs#L7
Avoid unsealed attributes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1813)
|
Unit tests:
test/LeanCode.Test.Helpers/LongRunningFact.cs#L15
Remove the underscores from member name LeanCode.Test.Helpers.LongRunningFactTest.Long_running_test() (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707)
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L25
Dereference of a possibly null reference.
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L35
Dereference of a possibly null reference.
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/Analyzers/SuggestCommandsHaveValidators.cs#L30
In externally visible method 'void SuggestCommandsHaveValidators.Initialize(AnalysisContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeActions/AddAuthorizationAttributeCodeAction.cs#L39
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeActions/AddAuthorizationAttributeCodeAction.cs#L40
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeFixProviders/AddAuthorizationAttributeCodeFixProvider.cs#L58
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
|
Unit tests:
src/Tools/LeanCode.CodeAnalysis/CodeFixProviders/AddAuthorizationAttributeCodeFixProvider.cs#L29
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
|
Loading