public void Then_WeHaveNewTestResults(IReadOnlyCollection <StepTestResultRow> expectedRows) { SetCurrentCulture(); // compare with data from the system var testData = TestResult.GetTestData(); var actualRows = StepTestResultRow.Convert(testData); // call the comparator to compare our two sets expectedRows.CompareTo(actualRows); expectedRows.OrderedCompareTo(actualRows); }
public void Then_WeHaveOldTestUsingNewResults(Table table) { SetCurrentCulture(); // compare with data from the system var testData = TestResult.GetTestData(); var actualRows = StepTestResultRow.Convert(testData); var expectedRows = table.CreateSet <StepTestResultRow>().ToList(); // compare our two sets expectedRows.CompareTo(actualRows); expectedRows.OrderedCompareTo(actualRows); }