public void CheckListContainsItems(IListWrapper list, string behavior, Table table) { bool exactOrder = behavior.Contains("contain in exact order"); var testingList = list.ListValues.ToList(); var refLit = ListServices.TableToRowsList(table); if (exactOrder) { bool check = ListServices.CheckListContainValuesFromAnotherListInExactOrder(testingList, refLit); check.Should().Be(true); } else { bool check = ListServices.CheckListContainValuesFromAnotherList(testingList, refLit); check.Should().Be(!behavior.Contains("not contain")); } }
public void CheckListContainsItems(IListWrapper list, string behavior, Table table) { bool check = ListServices.CheckListContainValuesFromAnotherList(list.ListValues.ToList(), ListServices.TableToRowsList(table)); check.Should().Be(!behavior.Contains("Not")); }