Tests.Tests.HadErrorOrWarning C# (CSharp) Method

HadErrorOrWarning() private method

private HadErrorOrWarning ( string matchStr, List list ) : bool
matchStr string
list List
return bool
        private bool HadErrorOrWarning(string matchStr, List<string> list)
        {
            if (matchStr == null)
                return list.Count > 0;

            foreach (var str in list)
            {
                if (str.Contains(matchStr))
                    return true;
            }
            return false;
        }
Tests