Getting "Cannot start more than one local run" error in unit tests in Visual Studio

I am running a test to automatically launch my Windows application. Make a Windows application; The code used Application.Run(Client.MainForm.GetInstance())";. The debugging point leaves this part of the code only after closing the Windows application.

I cannot run any other tests until then. If I try to do it; Visual Studio gives me the error "Cannot start more than one local run . " Is there a way out of this problem?

+3
source share
1 answer

/ , . , , Client.MainForm.GetInstance().Close(); .

: , . GUI , (, , ), .

+3

Source: https://habr.com/ru/post/1724962/


All Articles