use a different way of removing the access for the temporary test account (#46527)
authorAdam Sitnik <adam.sitnik@gmail.com>
Mon, 4 Jan 2021 17:54:06 +0000 (18:54 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 17:54:06 +0000 (18:54 +0100)
commite49c9eb329743e93106296a723bfc362d4e2610f
tree7d4990af558a2202a3e16395eef59d87038130aa
parent4569d04a78f3d4c520be55fd8c925bf59352502b
use a different way of removing the access for the temporary test account (#46527)

* use a different way of removing the access for the temporary test account:

use RemoveAccessRule instead of adding a new AccessControlType.Deny rule

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs