public void ThenISeeTheGridWithRowsOfDataInTheColumnsNamedBelow(Table table3) { StringBuilder FormatList = new StringBuilder(); IEnumerable <FiltersList> Data = table3.CreateSet <FiltersList>(); List <FiltersList> IList = (List <FiltersList>)Data; foreach (FiltersList FM in IList) { if (!BP_wf_FrameHelper.VerifyColumnText(FM.SelectaFormat)) { FormatList.Append(FM.SelectaFormat + ","); } } if (FormatList.Equals(string.Empty)) { ScenarioContext.Current["Comments"] = ScenarioContext.Current["Comments"] + "Formt List: " + FormatList + " is/are not displayed in table. \n"; ScenarioContext.Current["ActResult"] = "Failed"; } }