示例#1
0
 public async Task <string[]> TestNameOutput()
 {
     return(new List <string>()
     {
         MethodHelpers.GetCurrentMethod(),
         MethodHelpers.GetCurrentMethod(false),
         MethodHelpers.StackFrame(true),
         MethodHelpers.StackFrame(false),
         MethodHelpers.CallerMemberName(nameof(benchmark_dotnet), nameof(TestClass)),
         MethodHelpers.CallerMemberName <TestClass>()
     }.ToArray());
 }
示例#2
0
 public string CallerMemberNameGeneric() => MethodHelpers.CallerMemberName <TestClass>();
示例#3
0
 public string CallerMemberName() => MethodHelpers.CallerMemberName(nameof(benchmark_dotnet), nameof(TestClass));
示例#4
0
 public string StackFrameFalse() => MethodHelpers.StackFrame(false);
示例#5
0
 public string StackFrame() => MethodHelpers.StackFrame(true);
示例#6
0
 public string StackTraceFalse() => MethodHelpers.GetCurrentMethod(false);
示例#7
0
 public string StackTrace() => MethodHelpers.GetCurrentMethod();