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:
authorstephentoub <stoub@microsoft.com>2015-08-09 19:06:31 +0300
committerstephentoub <stoub@microsoft.com>2015-08-11 01:29:24 +0300
commitbac232c457ff0053909bc2c3a45f6711f9df5121 (patch)
tree0fdb7c4d178b676dd5707380409e9ca6f914de0e /src/System.IO/tests/StringReader
parent381785c196c573fe4ee7b36eaf4c53f4f5526ca0 (diff)
Address PR feedback
- Fixed test failures on Linux - Fixes test failures when run with different cultures - Fixed ordering of arguments to Assert.Equal - Changed several Assert.Equal to be Assert.Same - Added some missing Assert.True calls - Changed several [Facts] to be [Theory]s - Removed some stale comments - Added copyright header to all new .cs files - A few other miscellaneous things...
Diffstat (limited to 'src/System.IO/tests/StringReader')
-rw-r--r--src/System.IO/tests/StringReader/StringReaderCtorTests.cs17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/System.IO/tests/StringReader/StringReaderCtorTests.cs b/src/System.IO/tests/StringReader/StringReaderCtorTests.cs
index 39d3f24bee..e967a6c247 100644
--- a/src/System.IO/tests/StringReader/StringReaderCtorTests.cs
+++ b/src/System.IO/tests/StringReader/StringReaderCtorTests.cs
@@ -1,3 +1,6 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
using System;
using System.IO;
using Xunit;
@@ -9,19 +12,7 @@ namespace StringReaderTests
[Fact]
public static void StringReaderWithNullString()
{
- // [] Null Argument should store null string
- //-----------------------------------------------------------
-
- Assert.Throws<ArgumentNullException>(() =>
- {
- StringReader sr = new StringReader(null);
- String strTemp = sr.ReadToEnd();
- sr.ReadLine();
- sr.Peek();
- sr.Read();
- sr.Dispose();
- });
-
+ Assert.Throws<ArgumentNullException>(() => new StringReader(null));
}
[Fact]