private static IEnumerable <TestCase> GetTestCases(string fileName, bool valid) { return(TestSuite.Load(fileName).SelectMany(x => x.TestCases).Where(x => x.IsInvalid == !valid)); }