Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f684142

Browse files
AlexRadchstephentoub
authored andcommitted
Fixed System.DirectoryServices.Tests fails on non English Windows (#28166)
1 parent c4d9e0c commit f684142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.DirectoryServices/tests/System/DirectoryServices/PropertyCollectionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public void CopyTo_NegativeIndex_ThrowsArgumentOutOfRangeException()
8282
using (var entry = new DirectoryEntry())
8383
{
8484
PropertyCollection properties = entry.Properties;
85-
AssertExtensions.Throws<ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", () => properties.CopyTo(new PropertyValueCollection[0], -1));
86-
AssertExtensions.Throws<ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", () => ((ICollection)properties).CopyTo(new PropertyValueCollection[0], -1));
85+
AssertExtensions.Throws<ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", null, () => properties.CopyTo(new PropertyValueCollection[0], -1));
86+
AssertExtensions.Throws<ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", null, () => ((ICollection)properties).CopyTo(new PropertyValueCollection[0], -1));
8787
}
8888
}
8989

0 commit comments

Comments
 (0)