Skip to content

Commit 1d2b1ae

Browse files
authored
Fix failing BerConverterTests.Decode_TestData test (#99793)
1 parent 15b8077 commit 1d2b1ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libraries/System.DirectoryServices.Protocols/tests/BerConverterTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static IEnumerable<object[]> Decode_TestData()
159159

160160
// Content: sequence containing three octet strings
161161
// Parsed as two sequences of octet strings
162-
yield return new object[] { "vv", new byte[] { 48, 132, 0, 0, 0, 9, 4, 3, 97, 98, 99, 4, 0, 4, 0 }, new object[] { new string[] { "abc", "" }, null } };
162+
yield return new object[] { "vv", new byte[] { 48, 132, 0, 0, 0, 12, 4, 3, 97, 98, 99, 4, 2, 100, 101, 4, 1, 102 }, new object[] { new string[] { "abc", "de", "f" }, null } };
163163

164164
// Content: sequence containing two sequences of octet strings
165165
// Parsed as such
@@ -179,7 +179,7 @@ public static IEnumerable<object[]> Decode_TestData()
179179

180180
// Content: sequence of octet strings
181181
// Parsed as two sequences of octet strings (returned as bytes)
182-
yield return new object[] { "VV", new byte[] { 48, 132, 0, 0, 0, 9, 4, 3, 97, 98, 99, 4, 0, 4, 0 }, new object[] { new byte[][] { [97, 98, 99], [] }, null } };
182+
yield return new object[] { "VV", new byte[] { 48, 132, 0, 0, 0, 12, 4, 3, 97, 98, 99, 4, 2, 100, 101, 4, 1, 102 },new object[]{ new byte[][] { [97, 98, 99], [100, 101], [102] }, null } };
183183

184184
// Content: sequence containing two booleans
185185
// Parsed as a sequence containing two sequences of octet strings (returned as bytes)
@@ -191,7 +191,6 @@ public static IEnumerable<object[]> Decode_TestData()
191191
}
192192
}
193193

194-
[ActiveIssue("https://github.com/dotnet/runtime/issues/99725")]
195194
[Theory]
196195
[MemberData(nameof(Decode_TestData))]
197196
public void Decode_Bytes_ReturnsExpected(string format, byte[] values, object[] expected)

0 commit comments

Comments
 (0)