You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Moq;using Xunit;publicinterfaceIFooBuilder{
IFooBuilder Bar();}publicclassUnitTest1{[Fact]publicvoidTest1(){varbuilder=newMock<IFooBuilder>();
builder.Setup(d => d.Bar()).Returns(builder.Object);
builder.VerifyNoOtherCalls();}}
Result when running dotnet test:
Microsoft (R) Test Execution Command Line Tool Version 16.0.1
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
The active test run was aborted. Reason: Process is terminating due to StackOverflowException.
Test Run Aborted.
MCVE
Result when running
dotnet test
:Workaround
Use a function to calculate the return value.
The text was updated successfully, but these errors were encountered: