** Changed in: nunitv2
Status: Fix Committed => Fix Released
--
UnauthorizedAccessException in DirectoryAssert
https://bugs.launchpad.net/bugs/631620
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit V2 Test Framework: Fix Released
Bug description:
Running on Linux, the NUnit test method IsWithinPassesWithTempPath threw an
UnauthorizedAccessException while trying to
access a restricted directory.
This is because DirectoryAssert.IsWithin checks against _all_ existing paths
under the expected root and can happen in any instance where the path is not
accessible.
DirectoryAssert is already deprecated and this indicates that it's obsolescence
should be accelerated. A simple solution would be to use one of the
PathConstraints in its implementation so that no access to actual directories
is required.
_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to : [email protected]
Unsubscribe : https://launchpad.net/~nunit-core
More help : https://help.launchpad.net/ListHelp