Skip to content

Commit

Permalink
Mock LaunchProcessWithDebuggerAttached
Browse files Browse the repository at this point in the history
Without this, debugging the adapter tests fails, because
it recognizes it is in the debugger and tries to use the
debugger attach code path.
  • Loading branch information
OskiKervinen-MF committed May 28, 2018
1 parent 9c2860e commit c1b78f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TestAdapterTest/Mocks/MockFrameworkHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public struct TestMessage {

public int LaunchProcessWithDebuggerAttached( string filePath, string workingDirectory, string arguments, IDictionary<string, string> environmentVariables )
{
throw new NotImplementedException();
CatchTestAdapter.ProcessRunner.RunProcess( filePath, arguments, workingDirectory );
return 0;
}

public void RecordAttachments( IList<AttachmentSet> attachmentSets )
Expand Down

0 comments on commit c1b78f0

Please sign in to comment.