System.Xml.Tests.XsltcTestCaseBase.ShouldSkip C# (CSharp) Méthode

ShouldSkip() protected méthode

protected ShouldSkip ( object varParams ) : bool
varParams object
Résultat bool
        protected bool ShouldSkip(object[] varParams)
        {
            // some test only applicable in English environment, so skip them if current cultral is not english
            bool isCultralEnglish = CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToLower() == "en";
            if (isCultralEnglish)
            {
                return false;
            }

            // look up key word "EnglishOnly", if hit return true, otherwise false
            return varParams != null && varParams.Any(o => o.ToString() == "EnglishOnly");
        }