logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1511766 - /logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
Date Thu, 08 Aug 2013 13:06:03 GMT
Author: bodewig
Date: Thu Aug  8 13:06:02 2013
New Revision: 1511766

URL: http://svn.apache.org/r1511766
Log:
make PatternLayoutTest independent of reflection implementation

Modified:
    logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs

Modified: logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs?rev=1511766&r1=1511765&r2=1511766&view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs (original)
+++ logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs Thu Aug  8 13:06:02 2013
@@ -111,11 +111,7 @@ namespace log4net.Tests.Layout
             ILog log1 = LogManager.GetLogger(rep.Name, "TestStackTracePattern");
 
             log1.Info("TestMessage");
-#if !MONO
-            Assert.AreEqual("System.RuntimeMethodHandle.InvokeMethod > log4net.Tests.Layout.PatternLayoutTest.TestStackTracePattern",
stringAppender.GetString(), "stack trace value set");
-#else
-            Assert.AreEqual("MonoMethod.InternalInvoke > PatternLayoutTest.TestStackTracePattern",
stringAppender.GetString(), "stack trace value set");
-#endif
+            StringAssert.EndsWith("PatternLayoutTest.TestStackTracePattern", stringAppender.GetString(),
"stack trace value set");
             stringAppender.Reset();
         }
 



Mime
View raw message