diff --git a/src/libraries/.nuget/packages.config b/src/libraries/.nuget/packages.config
index a39245ee299..006de2d9ac8 100644
--- a/src/libraries/.nuget/packages.config
+++ b/src/libraries/.nuget/packages.config
@@ -1,6 +1,34 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel.sln b/src/libraries/System.ComponentModel.sln
new file mode 100644
index 00000000000..d8535e7e41c
--- /dev/null
+++ b/src/libraries/System.ComponentModel.sln
@@ -0,0 +1,33 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30723.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.ComponentModel", "System.ComponentModel\src\System.ComponentModel.csproj", "{AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{47919FF5-DA40-4D99-AF2D-F560282AA913}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\packages.config = .nuget\packages.config
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.ComponentModel.Tests", "System.ComponentModel\tests\System.ComponentModel.Tests.csproj", "{40C01084-DAB1-4F24-8729-85523BC9F04E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {40C01084-DAB1-4F24-8729-85523BC9F04E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {40C01084-DAB1-4F24-8729-85523BC9F04E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {40C01084-DAB1-4F24-8729-85523BC9F04E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {40C01084-DAB1-4F24-8729-85523BC9F04E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/src/libraries/System.ComponentModel/src/Properties/AssemblyInfo.cs b/src/libraries/System.ComponentModel/src/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000000..d087811874f
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/Properties/AssemblyInfo.cs
@@ -0,0 +1,30 @@
+// 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.Reflection;
+using System.Resources;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyCopyright("\x00a9 Microsoft Corporation. All rights reserved.")]
+[assembly: AssemblyCompany("Microsoft Corporation")]
+[assembly: AssemblyFileVersion("999.999.999.0")]
+[assembly: AssemblyInformationalVersion("999.999.999.0")]
+[assembly: AssemblyVersion("999.999.999.0")]
+[assembly: AssemblyTitle("System.ComponentModel")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyProduct("System.ComponentModel")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguageAttribute("en-US")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
diff --git a/src/libraries/System.ComponentModel/src/System.ComponentModel.csproj b/src/libraries/System.ComponentModel/src/System.ComponentModel.csproj
new file mode 100644
index 00000000000..70230148a73
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System.ComponentModel.csproj
@@ -0,0 +1,30 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}
+ Library
+ System.ComponentModel
+ System.ComponentModel
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/libraries/System.ComponentModel/src/System/ComponentModel/CancelEventArgs.cs b/src/libraries/System.ComponentModel/src/System/ComponentModel/CancelEventArgs.cs
new file mode 100644
index 00000000000..ec57860a53f
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System/ComponentModel/CancelEventArgs.cs
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+namespace System.ComponentModel
+{
+ ///
+ /// EventArgs used to describe a cancel event.
+ ///
+ public class CancelEventArgs : EventArgs
+ {
+ ///
+ /// Gets or sets a value indicating whether we should cancel the operation or not
+ ///
+ public bool Cancel { get; set; }
+
+ ///
+ /// Default constructor
+ ///
+ public CancelEventArgs()
+ {
+ }
+
+ ///
+ /// Helper constructor
+ ///
+ ///
+ public CancelEventArgs(bool cancel)
+ {
+ this.Cancel = cancel;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel/src/System/ComponentModel/IChangeTracking.cs b/src/libraries/System.ComponentModel/src/System/ComponentModel/IChangeTracking.cs
new file mode 100644
index 00000000000..9cf24ab4703
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System/ComponentModel/IChangeTracking.cs
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+
+namespace System.ComponentModel
+{
+ ///
+ /// Defines the mechanism for querying the object for changes and resetting of
+ /// the changed status.
+ ///
+ public interface IChangeTracking
+ {
+ ///
+ /// Gets a value indicating whether the object's content has changed since
+ /// the last call to System.ComponentModel.IChangeTracking.AcceptChanges().
+ ///
+ bool IsChanged
+ {
+ get;
+ }
+
+ ///
+ /// Resets the object's state to unchanged by accepting the modifications.
+ ///
+ void AcceptChanges();
+ }
+}
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs b/src/libraries/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs
new file mode 100644
index 00000000000..99b4710953f
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+namespace System.ComponentModel
+{
+ ///
+ /// Provides functionality to commit or rollback changes to an object that is used as a data source.
+ ///
+ public interface IEditableObject
+ {
+ ///
+ /// Begins an edit on an object.
+ ///
+ void BeginEdit();
+
+ ///
+ /// Discards changes since the last BeginEdit call.
+ ///
+ void EndEdit();
+
+ ///
+ /// Pushes changes since the last BeginEdit into the underlying object.
+ ///
+ void CancelEdit();
+ }
+}
diff --git a/src/libraries/System.ComponentModel/src/System/ComponentModel/IRevertibleChangeTracking.cs b/src/libraries/System.ComponentModel/src/System/ComponentModel/IRevertibleChangeTracking.cs
new file mode 100644
index 00000000000..a5816971c8a
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System/ComponentModel/IRevertibleChangeTracking.cs
@@ -0,0 +1,18 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+
+namespace System.ComponentModel
+{
+ ///
+ /// Provides support for rolling back the changes
+ ///
+ public interface IRevertibleChangeTracking : IChangeTracking
+ {
+ ///
+ /// Resets the object's state to unchanged by rejecting the modifications.
+ ///
+ void RejectChanges();
+ }
+}
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel/src/System/IServiceProvider.cs b/src/libraries/System.ComponentModel/src/System/IServiceProvider.cs
new file mode 100644
index 00000000000..9a8552d8d43
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/System/IServiceProvider.cs
@@ -0,0 +1,10 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+namespace System
+{
+ public interface IServiceProvider
+ {
+ Object GetService(Type serviceType);
+ }
+}
diff --git a/src/libraries/System.ComponentModel/src/packages.config b/src/libraries/System.ComponentModel/src/packages.config
new file mode 100644
index 00000000000..d4b5f78d770
--- /dev/null
+++ b/src/libraries/System.ComponentModel/src/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel/tests/ComponentModelBasicTests.cs b/src/libraries/System.ComponentModel/tests/ComponentModelBasicTests.cs
new file mode 100644
index 00000000000..6b20538b316
--- /dev/null
+++ b/src/libraries/System.ComponentModel/tests/ComponentModelBasicTests.cs
@@ -0,0 +1,30 @@
+// 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.ComponentModel;
+using Xunit;
+
+namespace Test
+{
+ public class ComponentModelTests
+ {
+ [Fact]
+ public static void TestComponentModelBasic()
+ {
+ // dummy tests to make sure the System.ComponentModel library loaded successfully
+#pragma warning disable 0219
+ IRevertibleChangeTracking iRevertibleChangeTracking = null;
+ IChangeTracking iChangeTracking = iRevertibleChangeTracking;
+ Assert.Null(iChangeTracking);
+
+ IEditableObject iEditableObject = null;
+ CancelEventArgs cancelEventArgs = new CancelEventArgs();
+ Assert.NotNull(cancelEventArgs);
+
+ IServiceProvider iServiceProvider = null;
+ Assert.Null(iServiceProvider);
+#pragma warning restore 0219
+ }
+ }
+}
diff --git a/src/libraries/System.ComponentModel/tests/System.ComponentModel.Tests.csproj b/src/libraries/System.ComponentModel/tests/System.ComponentModel.Tests.csproj
new file mode 100644
index 00000000000..9a939aecfbc
--- /dev/null
+++ b/src/libraries/System.ComponentModel/tests/System.ComponentModel.Tests.csproj
@@ -0,0 +1,35 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {40C01084-DAB1-4F24-8729-85523BC9F04E}
+ Library
+ System.ComponentModel.Tests
+ System.ComponentModel.Tests
+
+
+
+
+
+
+
+
+
+
+
+
+ {be8ed8c1-c314-4c4e-a929-64c9c8b3552a}
+ XunitTraitsDiscoverers
+
+
+ {AF3EBF3B-526A-4B51-9F3D-62B0113CD01F}
+ System.ComponentModel
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/libraries/System.ComponentModel/tests/packages.config b/src/libraries/System.ComponentModel/tests/packages.config
new file mode 100644
index 00000000000..0e797aee67c
--- /dev/null
+++ b/src/libraries/System.ComponentModel/tests/packages.config
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/libraries/System.Diagnostics.FileVersionInfo/tests/FileVersionInfoTest.cs b/src/libraries/System.Diagnostics.FileVersionInfo/tests/FileVersionInfoTest.cs
index af590edc293..90236633dc2 100644
--- a/src/libraries/System.Diagnostics.FileVersionInfo/tests/FileVersionInfoTest.cs
+++ b/src/libraries/System.Diagnostics.FileVersionInfo/tests/FileVersionInfoTest.cs
@@ -67,9 +67,7 @@ public class FileVersionInfoTest
private static void VerifyVersionInfo(String filePath, MyFVI expected)
{
- Console.WriteLine("Testing binary: " + filePath);
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(filePath);
- Console.WriteLine("Got the fvi: " + fvi);
TestStringProperty("Comments", fvi.Comments, expected.Comments);
TestStringProperty("CompanyName", fvi.Comments, expected.Comments);
TestProperty("FileBuildPart", fvi.FileBuildPart, expected.FileBuildPart);
@@ -134,7 +132,6 @@ public class FileVersionInfoTest
private static void TestStringProperty(String propertyName, String actual, String expected, String alternate, bool testOnNonEnglishPlatform)
{
- Console.WriteLine("{0}: {1}", propertyName, actual);
if (testOnNonEnglishPlatform || CultureInfo.CurrentCulture.Name == "en-US")
{
if ((actual == null && expected != null) ||
@@ -148,8 +145,6 @@ public class FileVersionInfoTest
private static void TestProperty(String propertyName, T actual, T expected)
{
- Console.WriteLine("{0}: {1}", propertyName, actual);
-
Assert.Equal(expected, actual);
}
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateFromFile.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateFromFile.cs
index e73e65b1981..29c1c843b19 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateFromFile.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateFromFile.cs
@@ -603,7 +603,6 @@ public class CreateFromFile : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass: iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateNew.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateNew.cs
index 080d771c5a7..d34e40e5299 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateNew.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateNew.cs
@@ -218,7 +218,6 @@ public class CreateNew : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass: iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateOrOpen.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateOrOpen.cs
index 0272f5373b8..79580e231aa 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateOrOpen.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateOrOpen.cs
@@ -370,7 +370,6 @@ public class CreateOrOpen : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("paSs. iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewAccessor.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewAccessor.cs
index 0571011617f..072d41a5963 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewAccessor.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewAccessor.cs
@@ -325,7 +325,6 @@ public class CreateViewAccessor : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("paSs. iCountTestcases==" + iCountTestcases);
return true;
}
else
@@ -405,7 +404,7 @@ public class CreateViewAccessor : MMFTestBase
}
else
{
- Console.WriteLine("Got expected {0}", aore.GetType().ToString());
+ // Got expected ArgumentOutOfRangeException
}
}
catch (IOException ioex)
@@ -421,7 +420,7 @@ public class CreateViewAccessor : MMFTestBase
}
else
{
- Console.WriteLine("Got expected {0}", ioex.GetType().ToString());
+ // Got expected IOException
}
}
}
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewStream.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewStream.cs
index 45b01eee09c..1d5f59ffd40 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewStream.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewStream.cs
@@ -324,7 +324,6 @@ public class CreateViewStream : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("paSs. iCountTestcases==" + iCountTestcases);
return true;
}
else
@@ -404,7 +403,7 @@ public class CreateViewStream : MMFTestBase
}
else
{
- Console.WriteLine("Got expected {0}", aore.GetType().ToString());
+ // Got expected ArgumentOutOfRangeException
}
}
catch (IOException ioex)
@@ -420,7 +419,7 @@ public class CreateViewStream : MMFTestBase
}
else
{
- Console.WriteLine("Got expected {0}", ioex.GetType().ToString());
+ // Got expected IOException
}
}
}
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/Dispose.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/Dispose.cs
index 61f833c067a..f44d0103dc5 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/Dispose.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/Dispose.cs
@@ -116,7 +116,6 @@ public class MMF_Dispose
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/OpenExisting.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/OpenExisting.cs
index a6a4b52abc8..420ecbae40d 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/OpenExisting.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/OpenExisting.cs
@@ -299,7 +299,6 @@ public class OpenExisting : MMFTestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/Flush.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/Flush.cs
index e80a2140ed9..ce582fb9004 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/Flush.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/Flush.cs
@@ -59,7 +59,6 @@ public class MMVA_Flush
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
@@ -85,9 +84,9 @@ public class MMVA_Flush
_iCountErrors++;
Console.WriteLine("ERROR, {0}: No exception thrown, expected {1}", strLoc, typeof(EXCTYPE));
}
- catch (EXCTYPE ex)
+ catch (EXCTYPE)
{
- Console.WriteLine("{0}: Expected, {1}: {2}", strLoc, ex.GetType(), ex.Message);
+ // Expected
}
catch (Exception ex)
{
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/ReadX.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/ReadX.cs
index 380cd69d15f..6eece8a368f 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/ReadX.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/ReadX.cs
@@ -53,8 +53,6 @@ public class MMVA_ReadX : TestBase
// Default ViewAccessor size - whole MMF
using (MemoryMappedViewAccessor view = mmf.CreateViewAccessor())
{
- Console.WriteLine("View Capacity: " + view.Capacity);
-
// position = 0, default (zeros)
VerifyRead("Loc001a", view, 0, false);
VerifyRead("Loc001b", view, 0, 0);
@@ -210,8 +208,6 @@ public class MMVA_ReadX : TestBase
// ViewAccessor starts at nonzero offset, spans remainder of MMF
using (MemoryMappedViewAccessor view = mmf.CreateViewAccessor(1000, 0))
{
- Console.WriteLine(view.Capacity);
-
// position = 0
VerifyRead("Loc111a", view, 0, true);
VerifyRead("Loc111b", view, 0, 1);
@@ -308,8 +304,6 @@ public class MMVA_ReadX : TestBase
// ViewAccessor starts at nonzero offset, with size shorter than MMF
using (MemoryMappedViewAccessor view = mmf.CreateViewAccessor(2000, 10000))
{
- Console.WriteLine(view.Capacity);
-
// position is last possible for type
VerifyRead("Loc214a", view, view.Capacity - 1, true);
VerifyRead("Loc214b", view, view.Capacity - 1, Byte.MaxValue);
@@ -371,7 +365,6 @@ public class MMVA_ReadX : TestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/SafeMemoryMappedViewHandle.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/SafeMemoryMappedViewHandle.cs
index 9011ee5e609..3a63a7cc851 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/SafeMemoryMappedViewHandle.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/SafeMemoryMappedViewHandle.cs
@@ -61,7 +61,6 @@ public class MMVA_get_SafeMemoryMappedViewHandle
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/WriteX.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/WriteX.cs
index 5f6a2bdbfc5..c7a41e084ff 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/WriteX.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/WriteX.cs
@@ -54,8 +54,6 @@ public class MMVA_WriteX : TestBase
// Default ViewAccessor size - whole MMF
using (MemoryMappedViewAccessor view = mmf.CreateViewAccessor())
{
- Console.WriteLine(view.Capacity);
-
// position = 0
VerifyWrite("Loc011a", view, 0, true);
VerifyWrite("Loc011b", view, 0, 234);
@@ -155,8 +153,6 @@ public class MMVA_WriteX : TestBase
// ViewAccessor starts at nonzero offset, spans remainder of MMF
using (MemoryMappedViewAccessor view2 = mmf.CreateViewAccessor(1000, 0))
{
- Console.WriteLine(view2.Capacity);
-
// position = 0
VerifyWrite("Loc111a", view2, 0, true);
VerifyWrite("Loc111b", view2, 0, 1);
@@ -203,8 +199,6 @@ public class MMVA_WriteX : TestBase
// ViewAccessor starts at nonzero offset, with size shorter than MMF
using (MemoryMappedViewAccessor view = mmf.CreateViewAccessor(2000, 10000))
{
- Console.WriteLine(view.Capacity);
-
// position is last possible for type
VerifyWrite("Loc214a", view, view.Capacity - 1, true);
VerifyWrite("Loc214b", view, view.Capacity - 1, (byte)251);
@@ -263,7 +257,6 @@ public class MMVA_WriteX : TestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/Flush.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/Flush.cs
index 35ce5752f1c..281e734be60 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/Flush.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/Flush.cs
@@ -59,7 +59,6 @@ public class MMVS_Flush
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
@@ -85,9 +84,9 @@ public class MMVS_Flush
_iCountErrors++;
Console.WriteLine("ERROR, {0}: No exception thrown, expected {1}", strLoc, typeof(EXCTYPE));
}
- catch (EXCTYPE ex)
+ catch (EXCTYPE)
{
- Console.WriteLine("{0}: Expected, {1}: {2}", strLoc, ex.GetType(), ex.Message);
+ // Expected
}
catch (Exception ex)
{
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/ReadWrite.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/ReadWrite.cs
index 1c898b66249..baa0c741e77 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/ReadWrite.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/ReadWrite.cs
@@ -57,8 +57,6 @@ public class MMVS_ReadWrite : TestBase
// Default ViewStream size - whole MMF
using (MemoryMappedViewStream view = mmf.CreateViewStream())
{
- Console.WriteLine("View Capacity: " + view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
BinaryWriter writer = new BinaryWriter(view);
@@ -149,19 +147,17 @@ public class MMVS_ReadWrite : TestBase
VerifyReadDouble("Loc074", reader2, BitConverter.ToDouble(byteArray1, 7));
reader2.BaseStream.Seek(0, SeekOrigin.Begin);
VerifyReadDecimal("Loc075", reader2, new Decimal(new Int32[] { BitConverter.ToInt32(byteArray1, 0), BitConverter.ToInt32(byteArray1, 4), BitConverter.ToInt32(byteArray1, 8), BitConverter.ToInt32(byteArray1, 12) }));
- Console.WriteLine(reader2.BaseStream.Seek(2161, SeekOrigin.Begin));
+ reader2.BaseStream.Seek(2161, SeekOrigin.Begin);
VerifyReadDecimal("Loc076", reader2, dec);
VerifyReadBoolean("Loc077", reader2, true);
VerifyReadInt32("Loc078", reader2, 211209802);
- Console.WriteLine(reader2.BaseStream.Seek(-1, SeekOrigin.End));
+ reader2.BaseStream.Seek(-1, SeekOrigin.End);
VerifyReadBoolean("Loc079", reader2, true);
}
// ViewStream starts at nonzero offset, spans remainder of MMF
using (MemoryMappedViewStream view = mmf.CreateViewStream(1000, 0))
{
- Console.WriteLine(view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
BinaryWriter writer = new BinaryWriter(view);
@@ -253,8 +249,6 @@ public class MMVS_ReadWrite : TestBase
// ViewStream starts at nonzero offset, with size shorter than MMF
using (MemoryMappedViewStream view = mmf.CreateViewStream(2000, 10000))
{
- Console.WriteLine(view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
BinaryWriter writer = new BinaryWriter(view);
@@ -350,8 +344,6 @@ public class MMVS_ReadWrite : TestBase
{
using (MemoryMappedViewStream view = mmf.CreateViewStream())
{
- Console.WriteLine(view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
BinaryWriter writer = new BinaryWriter(view);
@@ -434,8 +426,6 @@ public class MMVS_ReadWrite : TestBase
using (MemoryMappedViewStream view = mmf.CreateViewStream(0, 10000, MemoryMappedFileAccess.CopyOnWrite))
{
- Console.WriteLine(view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
BinaryWriter writer = new BinaryWriter(view);
@@ -463,8 +453,6 @@ public class MMVS_ReadWrite : TestBase
using (MemoryMappedViewStream view = mmf.CreateViewStream(0, 10000, MemoryMappedFileAccess.Read))
{
- Console.WriteLine(view.Capacity);
-
BinaryReader reader = new BinaryReader(view);
// Read existing values
@@ -492,7 +480,6 @@ public class MMVS_ReadWrite : TestBase
if (iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SafeMemoryMappedViewHandle.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SafeMemoryMappedViewHandle.cs
index 7c0859f720d..b6dd667add3 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SafeMemoryMappedViewHandle.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SafeMemoryMappedViewHandle.cs
@@ -61,7 +61,6 @@ public class MMVS_get_SafeMemoryMappedViewHandle
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SetLength.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SetLength.cs
index 50e5eb47045..0d4ab415e4c 100644
--- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SetLength.cs
+++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SetLength.cs
@@ -52,9 +52,9 @@ public class MMVS_SetLength
_iCountErrors++;
Console.WriteLine("ERROR, No exception thrown, expected NotSupportedException");
}
- catch (NotSupportedException ex)
+ catch (NotSupportedException)
{
- Console.WriteLine("Expected, {0}: {1}", ex.GetType(), ex.Message);
+ // Expected
}
catch (Exception ex)
{
@@ -77,7 +77,6 @@ public class MMVS_SetLength
if (_iCountErrors == 0)
{
- Console.WriteLine("Pass. iCountTestcases==" + _iCountTestcases);
return true;
}
else
diff --git a/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs b/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs
index 1d97040d558..2388edebacc 100644
--- a/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs
+++ b/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs
@@ -80,14 +80,12 @@ public class EncodingTest
EnsureInitialization();
Encoding encoding = Encoding.GetEncoding(0);
- Console.WriteLine("System default non-unicode code page: {0} ({1})", encoding.WebName, encoding.CodePage);
Assert.True(encoding.CodePage != 0);
Assert.True(encoding.WebName != Encoding.UTF8.WebName);
}
private static void TestRoundtrippingCodepageEncoding(string encodingName, byte[] bytes, string s)
{
- Console.WriteLine("Testing codepage: {0}", encodingName);
Encoding enc = Encoding.GetEncoding(encodingName);
string resultString = enc.GetString(bytes, 0, bytes.Length);
Assert.True(s.Equals(resultString));
@@ -96,7 +94,7 @@ public class EncodingTest
Assert.Equal(bytes.Length, resultBytes.Length);
for (int i = 0; i < bytes.Length; i++)
{
- Assert.Equal(bytes[i], resultBytes[i]);
+ Assert.True(bytes[i] == resultBytes[i], "encodingName: " + encodingName);
}
}
@@ -183,11 +181,6 @@ public class EncodingTest
int charCount = jpDecoder.GetChars(japaneseEncodedBuffer, byteIndex, 1, buffer, charIndex);
if (charCount > 0)
{
- for (int i = 0; i < charCount; i++)
- {
- Console.Write("0x{0:X}, ", (int)buffer[charIndex + i]);
- }
- Console.WriteLine();
charIndex += charCount;
}
byteIndex++;
@@ -228,11 +221,6 @@ public class EncodingTest
int charCount = chineseDecoder.GetChars(chineseBuffer, byteIndex, 1, buffer, charIndex);
if (charCount > 0)
{
- for (int i = 0; i < charCount; i++)
- {
- Console.Write("0x{0:X}, ", (int)buffer[charIndex + i]);
- }
- Console.WriteLine();
charIndex += charCount;
}
byteIndex++;
@@ -271,11 +259,6 @@ public class EncodingTest
int charCount = jpDecoder.GetChars(shiftJapaneseBuffer, byteIndex, 1, buffer, charIndex);
if (charCount > 0)
{
- for (int i = 0; i < charCount; i++)
- {
- Console.Write("0x{0:X}, ", (int)buffer[charIndex + i]);
- }
- Console.WriteLine();
charIndex += charCount;
}
byteIndex++;
@@ -313,11 +296,6 @@ public class EncodingTest
int charCount = krDecoder.GetChars(koreanEncodedBuffer, byteIndex, 1, buffer, charIndex);
if (charCount > 0)
{
- for (int i = 0; i < charCount; i++)
- {
- Console.Write("0x{0:X}, ", (int)buffer[charIndex + i]);
- }
- Console.WriteLine();
charIndex += charCount;
}
byteIndex++;
@@ -356,11 +334,6 @@ public class EncodingTest
int charCount = krDecoder.GetChars(hzEncodedBuffer, byteIndex, 1, buffer, charIndex);
if (charCount > 0)
{
- for (int i = 0; i < charCount; i++)
- {
- Console.Write("0x{0:X}, ", (int)buffer[charIndex + i]);
- }
- Console.WriteLine();
charIndex += charCount;
}
byteIndex++;
diff --git a/src/libraries/System.Text.RegularExpressions/tests/CaptureTests.cs b/src/libraries/System.Text.RegularExpressions/tests/CaptureTests.cs
index 27c68e8f8b3..b4f11561969 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/CaptureTests.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/CaptureTests.cs
@@ -35,8 +35,6 @@ namespace Test
Assert.Equal(match.Captures[0].Index, iMatch1[0]);
Assert.Equal(match.Captures[0].Length, iMatch1[1]);
- Console.WriteLine(match.Captures[0].ToString());
-
Assert.Equal(match.Groups.Count, 2);
//Group 0 always is the Match
diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests0.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests0.cs
index 060570a6a6c..0607487a330 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests0.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests0.cs
@@ -148,26 +148,6 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_576trffg! Do not found octal sequence match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input, string pattern); Testing hexadecimal sequence matches
//"012", "(\\x30\\x31\\x32)"
@@ -181,26 +161,6 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_674tgdg! Do not found hexadecimal sequence match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input, string pattern); Testing control character escapes???
//"2", "(\u0032)"
@@ -214,26 +174,7 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_4532gvfs! Do not found unicode character match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
///////////////////////////////////////////////////////////////////
/////////////////////////// END TESTS /////////////////////////////
}
diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests1.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests1.cs
index d648ff9362a..332a4ab9d94 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests1.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests1.cs
@@ -111,26 +111,6 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_4532gvfs! 1 do not match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input); Using |, (), ^, $, .: Actual - "^aaa(bb.+)(d|c)$"
//"aaabb.cc"
@@ -146,24 +126,6 @@ public partial class RegexMatchTests
}
else
{
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
-
if (!match.Value.Equals(strMatch1) || (match.Index != iMatch1[0]) || (match.Length != iMatch1[1]) || (match.Captures.Count != 1))
{
iCountErrors++;
diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests2.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests2.cs
index 98519ccfd56..7d49b841c6b 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests2.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests2.cs
@@ -48,26 +48,6 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_7563rfsgf! doesnot match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input); \\S, \\d, \\D, \\W: Actual - "(\\S+):\\W(\\d+)\\s(\\D+)"
//"Price: 5 dollars"
diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests4.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests4.cs
index c5138edad54..1b874d0d0d9 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests4.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/RegexMatchTests4.cs
@@ -301,26 +301,6 @@ public partial class RegexMatchTests
iCountErrors++;
Console.WriteLine("Err_1072gdg! doesnot match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input); Zero-width negative lookbehind assertion: Actual - "(\\w){6}(?[0-9]+)3"
//"abc123"
diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexUnicodeCharTests.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexUnicodeCharTests.cs
index 54017e2640a..292e53ef672 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/RegexUnicodeCharTests.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/RegexUnicodeCharTests.cs
@@ -53,9 +53,6 @@ public class RegexUnicodeCharTests
//[\p{L1}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]
iCountTestcases++;
-
- Console.WriteLine("MaxUnicodeRange, " + MaxUnicodeRange);
-
alstValidChars = new List();
alstInvalidChars = new List();
for (int i = 0; i < MaxUnicodeRange; i++)
diff --git a/src/libraries/System.Text.RegularExpressions/tests/ReturnValueChecks.cs b/src/libraries/System.Text.RegularExpressions/tests/ReturnValueChecks.cs
index 85d13fd1d49..a2e39ee1647 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/ReturnValueChecks.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/ReturnValueChecks.cs
@@ -102,26 +102,6 @@ public class ReturnValueChecks
iCountErrors++;
Console.WriteLine("Err_4532gvfs! 1 do not match");
}
- else
- {
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
- }
// [] public static Match Match(string input); Using |, (), ^, $, .: Actual - "^aaa(bb.+)(d|c)$"
//"aaabb.cc"
@@ -137,24 +117,6 @@ public class ReturnValueChecks
}
else
{
- Console.WriteLine("\r\nmatch.Value = " + match.Value + ", Index = " + match.Index + ", Length = " + match.Length);
- Console.WriteLine("\r\nmatch.Captures.Count = " + match.Captures.Count);
- for (int i = 0; i < match.Captures.Count; i++)
- {
- Console.WriteLine("\tmatch.Captures[" + i + "].Value = " + match.Captures[i].Value + ", Index = " + match.Captures[i].Index + ", Length = " + match.Captures[i].Length);
- }
-
- Console.WriteLine("\r\nmatch.Groups.Count = " + match.Groups.Count);
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n\tmatch.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine("\tmatch.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine("\t\tmatch.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
-
if (!match.Value.Equals(strMatch1) || (match.Index != iMatch1[0]) || (match.Length != iMatch1[1]) || (match.Captures.Count != 1))
{
iCountErrors++;
diff --git a/src/libraries/System.Text.RegularExpressions/tests/SplitMatchIsMatchTests.cs b/src/libraries/System.Text.RegularExpressions/tests/SplitMatchIsMatchTests.cs
index 3d3d538b975..403f95a9e5d 100644
--- a/src/libraries/System.Text.RegularExpressions/tests/SplitMatchIsMatchTests.cs
+++ b/src/libraries/System.Text.RegularExpressions/tests/SplitMatchIsMatchTests.cs
@@ -176,16 +176,6 @@ public class SplitMatchIsMatchTests
iCountErrors++;
Console.WriteLine("Err_3976dffd! unexpected return result");
}
-
- for (int i = 0; i < match.Groups.Count; i++)
- {
- Console.WriteLine("\r\n match.Groups[" + i + "].Value = " + match.Groups[i].Value + ", Index = " + match.Groups[i].Index + ", Length = " + match.Groups[i].Length);
- Console.WriteLine(" match.Groups[" + i + "].Captures.Count = " + match.Groups[i].Captures.Count);
- for (int j = 0; j < match.Groups[i].Captures.Count; j++)
- {
- Console.WriteLine(" match.Groups[" + i + "].Captures[" + j + "].Value = " + match.Groups[i].Captures[j].Value + ", Index = " + match.Groups[i].Captures[j].Index + ", Length = " + match.Groups[i].Captures[j].Length);
- }
- }
}
}
//-----------------------------------------------------------------