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), }); }
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); }