Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek Mahmoud Sayed <tarekms@microsoft.com>2018-01-24 04:51:24 +0300
committerGitHub <noreply@github.com>2018-01-24 04:51:24 +0300
commit8723c28b0805e03b392b7969353717134c31c43b (patch)
treecee0a9caae7f15e3ea2eaff4111bffda90def1c0
parenta654ff0dae9710eb7ba5b6601fa6d923f554e240 (diff)
Remove leftover un-needed assert in DS tests (#26555)
-rw-r--r--src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs1
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 ||