Skip to content

Commit 1d796f1

Browse files
committed
Refactor StreamReader_StringCtorTests accordingly as Encoding param has been set to nullable
1 parent 314fbb5 commit 1d796f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/libraries/System.Runtime/tests/System.IO.Tests/StreamReader/StreamReader.StringCtorTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ public static void NullArgs_ThrowsArgumentNullException()
1919
AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamReader((string)null, null, true));
2020
AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamReader((string)null, null, true, null));
2121
AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamReader((string)null, null, true, -1));
22-
AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamReader("path", (Encoding)null));
23-
AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamReader("path", null, true));
24-
AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamReader("path", null, true, null));
25-
AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamReader("path", null, true, -1));
2622
AssertExtensions.Throws<ArgumentNullException>("options", () => new StreamReader("path", (FileStreamOptions)null));
2723
AssertExtensions.Throws<ArgumentNullException>("options", () => new StreamReader("path", Encoding.UTF8, true, null));
2824

0 commit comments

Comments
 (0)