diff options
-rw-r--r-- | src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs b/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs index c2b9bb35d9..1cf2af3eb5 100644 --- a/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs +++ b/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs @@ -58,7 +58,6 @@ namespace System.DirectoryServices.ActiveDirectory.Tests var context = new DirectoryContext(type, name); if (!PlatformDetection.IsDomainJoinedMachine) { - Assert.Throws<ActiveDirectoryObjectNotFoundException>(() => Forest.GetForest(context)); Exception exception = Record.Exception(() => Forest.GetForest(context)); Assert.NotNull(exception); Assert.True(exception is ActiveDirectoryObjectNotFoundException || |