NUnit +ReSharper raises LoggerException and Last runner error

I am executing an NUnit (3) Test hat creates a Application with MainWindow.
After all my Tests are done i close down the MainWindow via the app.Dispatcher.

which causes the following error:


Exit code is 0

Last runner error: Process C:\Program Files (x86)\dotnet\dotnet.exe:46752 exited with code '0'.

--- EXCEPTION #1/1 [LoggerException]
Message = “Process C:\Program Files (x86)\dotnet\dotnet.exe:46752 exited with code '0'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.ILoggerEx.LogMessage(ILogger this, LoggingLevel level, String message) in IL_002E mvid 7C49
    at JetBrains.Util.ILoggerEx.Error(ILogger this, String message) in IL_0000 mvid 7C49
    at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.AnalyseProcessCrash(ProcessExitedUnexpectedlyException ex, IUnitTestRun run) in IL_006B mvid AE94
    at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.Run(IUnitTestRun run) in IL_01C8 mvid AE94
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in IL_0040 mvid 477B
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in IL_0000 mvid 477B or IL_0040 mvid 477B
    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in IL_003B mvid 477B
    at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in IL_0065 mvid 477B or IL_0090 mvid 477B
    at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in IL_0003 mvid 477B
    at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in IL_0022 mvid 477B
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in IL_0025 mvid 477B

and so on


I need to Close the window, otherwise my Test never finishes.
The exit code '0' indicates that the process finished without errors, so why is this a runner error?

How to resolve this issue?

1 comment

Hello, Ludwig,

Would it be possible for you to share a sample solution that we could use to reproduce the same behavior on our end?


Please sign in to leave a comment.