private static void LogDiscoveryOptions(ITestFrameworkDiscoveryOptions options) { if (!Logger.IsEnabled) { return; } Logger.LogVerbose(" Diagnostic messages: {0}", options.GetDiagnosticMessagesOrDefault()); Logger.LogVerbose(" Method display (forced): {0}", options.GetMethodDisplayOrDefault()); Logger.LogVerbose(" Pre-enumerating theories: {0}", options.GetPreEnumerateTheoriesOrDefault()); Logger.LogVerbose(" Synchronous message reporting: {0}", options.GetSynchronousMessageReportingOrDefault()); }
private void SendExistingTestCases() { var forceUniqueNames = lastTestClassTestCases.Count > 1; foreach (var testCase in lastTestClassTestCases) { var vsTestCase = CreateVsTestCase(source, discoverer, testCase, forceUniqueNames, logger); if (vsTestCase != null) { if (discoveryOptions.GetDiagnosticMessagesOrDefault()) { logger.Log(testCase, "Discovered test case '{0}' (ID = '{1}', VS FQN = '{2}')", testCase.DisplayName, testCase.UniqueID, vsTestCase.FullyQualifiedName); } discoverySink.SendTestCase(vsTestCase); } else { logger.LogWarning(testCase, "Could not create VS test case for '{0}' (ID = '{1}', VS FQN = '{2}')", testCase.DisplayName, testCase.UniqueID, vsTestCase.FullyQualifiedName); } } lastTestClassTestCases.Clear(); }
private void SendExistingTestCases() { var forceUniqueNames = lastTestClassTestCases.Count > 1; foreach (var testCase in lastTestClassTestCases) { var vsTestCase = CreateVsTestCase(source, discoverer, testCase, forceUniqueNames, logger, discoveryOptions.GetDiagnosticMessagesOrDefault()); if (vsTestCase != null) { discoverySink.SendTestCase(vsTestCase); } } lastTestClassTestCases.Clear(); }