Remove leftover un-needed assert in DS tests (dotnet/corefx#26555)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Wed, 24 Jan 2018 01:51:24 +0000 (17:51 -0800)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2018 01:51:24 +0000 (17:51 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/8723c28b0805e03b392b7969353717134c31c43b

src/libraries/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs

index c2b9bb3..1cf2af3 100644 (file)
@@ -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 ||