@@ -69,40 +69,25 @@ public void ShowExceptionQueries()
69
69
/// </summary>
70
70
public class QueryFactoryClass
71
71
{
72
- public static IEnumerable < TestCaseData > TestCases
73
- {
74
- get
75
- {
76
- // TODO - need to handle Ignore better (it won't show in results...)
77
- return EnumerateTests (
78
- td => ! td . Ignore && ! td . Result . StartsWith ( "Exception" ) ,
79
- td => new TestCaseData ( td . Query )
80
- . Returns ( td . Result )
81
- . SetCategory ( td . Category )
82
- . SetName ( td . Name )
83
- . SetDescription ( td . Description ) ) ;
84
- }
85
- }
86
-
87
- public static IEnumerable < string > GetIgnores
88
- {
89
- get
90
- {
91
- return EnumerateTests (
92
- td => td . Ignore ,
93
- td => td . Query ) ;
94
- }
95
- }
96
-
97
- public static IEnumerable < string > GetExceptions
98
- {
99
- get
100
- {
101
- return EnumerateTests (
102
- td => td . Result . StartsWith ( "Exception" ) ,
103
- td => td . Query ) ;
104
- }
105
- }
72
+ public static IEnumerable < TestCaseData > TestCases =>
73
+ // TODO - need to handle Ignore better (it won't show in results...)
74
+ EnumerateTests (
75
+ td => ! td . Ignore && ! td . Result . StartsWith ( "Exception" ) ,
76
+ td => new TestCaseData ( td . Query )
77
+ . Returns ( td . Result )
78
+ . SetCategory ( td . Category )
79
+ . SetName ( td . Name )
80
+ . SetDescription ( td . Description ) ) ;
81
+
82
+ public static IEnumerable < string > GetIgnores =>
83
+ EnumerateTests (
84
+ td => td . Ignore ,
85
+ td => td . Query ) ;
86
+
87
+ public static IEnumerable < string > GetExceptions =>
88
+ EnumerateTests (
89
+ td => td . Result . StartsWith ( "Exception" ) ,
90
+ td => td . Query ) ;
106
91
107
92
static IEnumerable < T > EnumerateTests < T > (
108
93
Func < QueryTestData , bool > predicate ,
0 commit comments