/// <summary> /// Creates test tooltip. /// </summary> /// <param name="testInfo">Test information</param> /// <param name="testResult">Information from the last test run.</param> /// <returns>Tooltip for test node.</returns> string CreateTestTooltip(TestInfo testInfo, TestResult testResult) { string testName = testInfo.Name; string requirementLevel = testInfo.GetRequirementString(); string state = "NOT PERFORMED"; if (testResult != null) { if (testResult.Log.TestStatus == TestStatus.NotSupported) { state = "NOT SUPPORTED"; } else { state = testResult.Log.TestStatus.ToString().ToUpper(); } } string servicesString = testInfo.GetServicesRequirement(); string tooltip = string.Format("{0}\r\n{1}\r\nRequirement Level: {2} \r\nState: {3}", testName, servicesString, requirementLevel, state); return(tooltip); }