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:
authorsepidehMS <sekho@microsoft.com>2017-06-29 20:20:36 +0300
committersepidehMS <sekho@microsoft.com>2017-06-29 20:20:36 +0300
commitfeaa38de15f48bf0d36ba02033a7345917bf1f29 (patch)
treee681d41d3cb30f6198323e5e834f42ea5b2e6356 /src/System.Diagnostics.StackTrace
parent954d7199ffd45537e89aa1b15b3cc38df56f58e1 (diff)
Fix System.Diagnostics.StackTrace tests
Diffstat (limited to 'src/System.Diagnostics.StackTrace')
-rw-r--r--src/System.Diagnostics.StackTrace/tests/StackFrameTests.cs8
-rw-r--r--src/System.Diagnostics.StackTrace/tests/StackTraceTests.cs8
2 files changed, 2 insertions, 14 deletions
diff --git a/src/System.Diagnostics.StackTrace/tests/StackFrameTests.cs b/src/System.Diagnostics.StackTrace/tests/StackFrameTests.cs
index 28ee6c6a03..dfc590848a 100644
--- a/src/System.Diagnostics.StackTrace/tests/StackFrameTests.cs
+++ b/src/System.Diagnostics.StackTrace/tests/StackFrameTests.cs
@@ -143,13 +143,7 @@ namespace System.Diagnostics.Tests
private static void VerifyStackFrame(StackFrame stackFrame, bool hasFileInfo, int skipFrames, MethodInfo expectedMethod, bool isCurrentFrame = false)
{
- // It appears that .NET Core on Windows strips this metadata in Debug mode.
-#if DEBUG
- bool hasNoMetadata = PlatformDetection.IsWindows && !PlatformDetection.IsFullFramework;
-#else
- bool hasNoMetadata = false;
-#endif
- if (hasNoMetadata || !hasFileInfo)
+ if (!hasFileInfo)
{
Assert.Null(stackFrame.GetFileName());
Assert.Equal(0, stackFrame.GetFileLineNumber());
diff --git a/src/System.Diagnostics.StackTrace/tests/StackTraceTests.cs b/src/System.Diagnostics.StackTrace/tests/StackTraceTests.cs
index da0c5f2569..75d1e86d1e 100644
--- a/src/System.Diagnostics.StackTrace/tests/StackTraceTests.cs
+++ b/src/System.Diagnostics.StackTrace/tests/StackTraceTests.cs
@@ -364,13 +364,7 @@ namespace System.Diagnostics.Tests
{
StackFrame stackFrame = stackFrames[i];
- // It appears that .NET Core on Windows strips this metadata.
-#if DEBUG
- bool hasNoMetadata = PlatformDetection.IsWindows && !PlatformDetection.IsFullFramework;
-#else
- bool hasNoMetadata = false;
-#endif
- if (hasNoMetadata || !hasFileInfo)
+ if (!hasFileInfo)
{
Assert.Null(stackFrame.GetFileName());
Assert.Equal(0, stackFrame.GetFileLineNumber());