Removed usage of obsoleted FileSecurityException

This commit is contained in:
Ronald Barendse
2019-10-06 11:32:37 +02:00
parent dc5cdfd3d1
commit af1615bbb7
6 changed files with 17 additions and 14 deletions

View File

@@ -101,7 +101,7 @@ namespace Umbraco.Tests.IO
Assert.AreEqual(Path.Combine(basePath, @"foo\bar.tmp"), path);
// that path is invalid as it would be outside the root directory
Assert.Throws<FileSecurityException>(() => _fileSystem.GetFullPath("../../foo.tmp"));
Assert.Throws<UnauthorizedAccessException>(() => _fileSystem.GetFullPath("../../foo.tmp"));
// a very long path, which ends up being very long, works
path = Repeat("bah/bah/", 50);