Exemple #1
0
        public string MatchesActualTypeActualValueExpectedValue(
            string theActualType, string theActualValue, string theExpectedValue)
        {
            string expectedValue = theExpectedValue.StartsWith("'")
                                       ? theExpectedValue.Substring(1, theExpectedValue.Length - 2)
                                       : theExpectedValue;

            try {
                string html = "<table><tr><td>" + HttpUtility.HtmlEncode(expectedValue) + "</td></tr></table>";
                myCell = Parse.ParseFrom(html).Parts.Parts;
                return
                    (CellOperation.Compare(MakeTypedValue(theActualValue, theActualType), myCell).ToString());
            }
            catch (Exception) {
                return("Exception");
            }
        }
Exemple #2
0
        bool IsMatch(Parse row, int col)
        {
            TypedValue actual = CellOperation.Invoke(this, headerCells.At(col));

            return(CellOperation.Compare(actual, GetCellForColumn(row, col)));
        }