@@ -56,7 +56,7 @@ public void CastFunc()
56
56
args . Clear ( ) ;
57
57
args . Add ( "'123'" ) ;
58
58
args . Add ( "NO_TYPE" ) ;
59
- Assert . Throws < QueryException > ( ( ) => cf . Render ( args , factoryImpl ) ) ;
59
+ Assert . Throws < QueryException > ( ( ) => cf . Render ( args , factoryImpl ) , "Invalid type accepted" ) ;
60
60
}
61
61
62
62
[ Test ]
@@ -115,7 +115,7 @@ public void ClassicSum()
115
115
{
116
116
//ANSI-SQL92 definition
117
117
//<general set function> ::=
118
- //<set function type> <leftparen > [ <setquantifier> ] <value expression> <right paren>
118
+ //<set function type> <left paren > [ <setquantifier> ] <value expression> <right paren>
119
119
//<set function type> : := AVG | MAX | MIN | SUM | COUNT
120
120
//<setquantifier> ::= DISTINCT | ALL
121
121
IList args = new ArrayList ( ) ;
@@ -153,7 +153,7 @@ public void ClassicCount()
153
153
args . Clear ( ) ;
154
154
args . Add ( "va1" ) ;
155
155
args . Add ( "va2" ) ;
156
- Assert . Throws < QueryException > ( ( ) => ccf . Render ( args , factoryImpl ) ) ;
156
+ Assert . Throws < QueryException > ( ( ) => ccf . Render ( args , factoryImpl ) , "No exception 2 argument without <setquantifier>" ) ;
157
157
}
158
158
159
159
[ Test ]
@@ -178,7 +178,7 @@ public void ClassicAvg()
178
178
args . Clear ( ) ;
179
179
args . Add ( "va1" ) ;
180
180
args . Add ( "va2" ) ;
181
- Assert . Throws < QueryException > ( ( ) => caf . Render ( args , factoryImpl ) ) ;
181
+ Assert . Throws < QueryException > ( ( ) => caf . Render ( args , factoryImpl ) , "No exception 2 argument without <setquantifier>" ) ;
182
182
}
183
183
184
184
[ Test ]
@@ -198,7 +198,7 @@ public void ClassicAggregate()
198
198
args . Clear ( ) ;
199
199
args . Add ( "va1" ) ;
200
200
args . Add ( "va2" ) ;
201
- Assert . Throws < QueryException > ( ( ) => caf . Render ( args , factoryImpl ) ) ;
201
+ Assert . Throws < QueryException > ( ( ) => caf . Render ( args , factoryImpl ) , "No exception 2 argument without <setquantifier>" ) ;
202
202
203
203
args . Clear ( ) ;
204
204
args . Add ( "*" ) ;
@@ -223,13 +223,13 @@ public void AnsiSubstring()
223
223
Assert . AreEqual ( "substring(var1 from 3 for 4)" , asf . Render ( args , factoryImpl ) . ToString ( ) ) ;
224
224
225
225
args . Clear ( ) ;
226
- Assert . Throws < QueryException > ( ( ) => asf . Render ( args , factoryImpl ) ) ;
226
+ Assert . Throws < QueryException > ( ( ) => asf . Render ( args , factoryImpl ) , "Expected 'Not enough parameters' exception" ) ;
227
227
args . Clear ( ) ;
228
228
args . Add ( "1" ) ;
229
229
args . Add ( "2" ) ;
230
230
args . Add ( "3" ) ;
231
231
args . Add ( "4" ) ;
232
- Assert . Throws < QueryException > ( ( ) => asf . Render ( args , factoryImpl ) ) ;
232
+ Assert . Throws < QueryException > ( ( ) => asf . Render ( args , factoryImpl ) , "Expected 'Not enough parameters' exception" ) ;
233
233
}
234
234
}
235
235
}
0 commit comments