Skip to content

Add debug logging to fort error cases #2754

Add debug logging to fort error cases

Add debug logging to fort error cases #2754

Triggered via pull request October 31, 2024 22:02
Status Success
Total duration 32s
Artifacts

lint.yaml

on: pull_request
CSharpier
23s
CSharpier
Fit to window
Zoom out
Zoom in

Annotations

2 errors
DragaliaAPI.Test.Features.Fort.FortServiceTest ► BuildStart_InsufficientCarpenters_Throws: DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs#L432
Failed test found in: DragaliaAPI.Test.trx Error: Expected a <DragaliaAPI.Services.Exceptions.DragaliaException> to be thrown, but found <Moq.MockException>: Moq.MockException: IFortRepository.Builds invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup. at Moq.FailForStrictMock.Handle(Invocation invocation, Mock mock) in /_/src/Moq/Interception/InterceptionAspects.cs:line 182 at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation) in /_/src/Moq/Interception/Mock.cs:line 27 at Moq.CastleProxyFactory.Interceptor.Intercept(IInvocation underlying) in /_/src/Moq/Interception/CastleProxyFactory.cs:line 107 at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IFortRepositoryProxy.get_Builds() at DragaliaAPI.Features.Fort.FortService.Upgrade(FortPlantDetail plantDetail) in /home/runner/work/Dawnshard/Dawnshard/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs:line 512 at DragaliaAPI.Features.Fort.FortService.BuildStart(FortPlants fortPlantId, Int32 positionX, Int32 positionZ) in /home/runner/work/Dawnshard/Dawnshard/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs:line 386 at FluentAssertions.Specialized.AsyncFunctionAssertions`2.InvokeWithInterceptionAsync(Func`1 action).
DragaliaAPI.Test.Features.Fort.FortServiceTest ► LevelupStart_InsufficientCarpenters_Throws: DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs#L510
Failed test found in: DragaliaAPI.Test.trx Error: Expected a <DragaliaAPI.Services.Exceptions.DragaliaException> to be thrown, but found <Moq.MockException>: Moq.MockException: IFortRepository.Builds invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup. at Moq.FailForStrictMock.Handle(Invocation invocation, Mock mock) in /_/src/Moq/Interception/InterceptionAspects.cs:line 182 at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation) in /_/src/Moq/Interception/Mock.cs:line 27 at Moq.CastleProxyFactory.Interceptor.Intercept(IInvocation underlying) in /_/src/Moq/Interception/CastleProxyFactory.cs:line 107 at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IFortRepositoryProxy.get_Builds() at DragaliaAPI.Features.Fort.FortService.Upgrade(FortPlantDetail plantDetail) in /home/runner/work/Dawnshard/Dawnshard/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs:line 512 at DragaliaAPI.Features.Fort.FortService.LevelupStart(Int64 buildId) in /home/runner/work/Dawnshard/Dawnshard/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs:line 445 at FluentAssertions.Specialized.AsyncFunctionAssertions`2.InvokeWithInterceptionAsync(Func`1 action).