コード例 #1
0
ファイル: TestPool.cs プロジェクト: AlexEndris/regtesting
        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);
        }
コード例 #2
0
ファイル: TestPool.cs プロジェクト: codedecay/regtesting
        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;
        }