예제 #1
0
 public static TestCase ConvertToVsTest(this framework.TestCase tc, string sourceAssembly)
 {
     return(new TestCase(tc.Identifier, AaaTestExecutor.ExecutorUri, sourceAssembly)
     {
         CodeFilePath = tc.CallerInformation.SourceFilePath,
         LineNumber = tc.CallerInformation.SourceLineNumber,
         DisplayName = BuildDisplayName(tc),
     });
 }
예제 #2
0
        private static string BuildDisplayName(framework.TestCase tc)
        {
            var rv = $"{tc.CallerInformation.MemberName}";

            if (tc.Name != null && tc.Name != tc.CallerInformation.MemberName)
            {
                rv += " - " + tc.Name;
            }

            return(rv);
        }