private bool IsWorkItemSupported(WorkItem workItem, ITestable testable) { string[] supportedLanguages = testable.GetSupportedLanguages(); if (supportedLanguages != null && !supportedLanguages.Contains(workItem.Language.Languagecode, StringComparer.InvariantCultureIgnoreCase)) { return(false); } string[] supportedBrowsers = testable.GetSupportedBrowsers(); if (supportedBrowsers != null && !supportedBrowsers.Contains(workItem.Browser.Name, StringComparer.InvariantCultureIgnoreCase)) { return(false); } return(true); }
private bool IsWorkItemSupported(WorkItem workItem, ITestable testable) { string[] supportedLanguages = testable.GetSupportedLanguages(); if (supportedLanguages != null && !supportedLanguages.Contains(workItem.Language.Languagecode, StringComparer.InvariantCultureIgnoreCase)) return false; string[] supportedBrowsers = testable.GetSupportedBrowsers(); if (supportedBrowsers != null && !supportedBrowsers.Contains(workItem.Browser.Name, StringComparer.InvariantCultureIgnoreCase)) return false; return true; }