How to run one NUnit test under a user with certain privileges

Is it possible to run one of the tests in testuite under a specific user account? I need to somehow simulate a problem with user rights.

+3
source share
2 answers
runas.exe /user:DOMAIN\someUser "nunit-console.exe somelibrary.dll"
+4
source

Can I send a username and password to run Nunit scripts on the command line

0
source

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


All Articles