aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r--OpenSim/Tests/Common/TestHelper.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/TestHelper.cs b/OpenSim/Tests/Common/TestHelper.cs
index 6853e55..21c2875 100644
--- a/OpenSim/Tests/Common/TestHelper.cs
+++ b/OpenSim/Tests/Common/TestHelper.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Diagnostics;
29 30
30namespace OpenSim.Tests.Common 31namespace OpenSim.Tests.Common
31{ 32{
@@ -46,5 +47,12 @@ namespace OpenSim.Tests.Common
46 47
47 return false; 48 return false;
48 } 49 }
50
51 // A debugging method that can be used to print out which test method you are in
52 public static void InMethod()
53 {
54 StackTrace stackTrace = new StackTrace();
55 Console.WriteLine("In Test Method : {0}", stackTrace.GetFrame(1).GetMethod().Name);
56 }
49 } 57 }
50} 58}