コード例 #1
0
        public void ThenTheBelowResultShouldBeRetrieved_(Table table)
        {
            DataTable DataToVerify = DataTableUtilities.ConvertTableToDataTable(table);
            DataTable QueryRes     = (DataTable)ScenarioContext.Current["QueryResults"];

            if (!DataTableUtilities.CompareTwoDataTables(QueryRes, DataToVerify))
            {
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Query result is not displayed as per the table from database. \n";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }