diff options
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/TestHelper.cs | 8 |
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 | ||
28 | using System; | 28 | using System; |
29 | using System.Diagnostics; | ||
29 | 30 | ||
30 | namespace OpenSim.Tests.Common | 31 | namespace 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 | } |