Ensure environment variables are forwarded when debugging tests.
WHY
Issue #1946 revealed that the environment variables were not the same between debug and non-debug executions of a test.
This causes inconsistent behavior for tests that access environment variables.
The cause of this bug was accidental override of the whole environment variable collection in order to set the debug flag for vstest.
WHAT
Ensure environment variables are forwarded when debugging tests.
WHY
Issue #1946 revealed that the environment variables were not the same between debug and non-debug executions of a test. This causes inconsistent behavior for tests that access environment variables.
The cause of this bug was accidental override of the whole environment variable collection in order to set the debug flag for vstest.