File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,16 +266,16 @@ public void Trim()
266
266
}
267
267
268
268
[ Test ]
269
- public void TrimTrailingWhitespace ( )
269
+ public void TrimInitialWhitespace ( )
270
270
{
271
271
using ( session . BeginTransaction ( ) )
272
272
{
273
- session . Save ( new AnotherEntity { Input = " hi " } ) ;
273
+ session . Save ( new AnotherEntity { Input = " hi" } ) ;
274
274
session . Save ( new AnotherEntity { Input = "hi" } ) ;
275
275
session . Save ( new AnotherEntity { Input = "heh" } ) ;
276
276
session . Flush ( ) ;
277
277
278
- Assert . AreEqual ( TestDialect . IgnoresTrailingWhitespace ? 2 : 1 , session . Query < AnotherEntity > ( ) . Where ( e => e . Input . TrimStart ( ) == "hi " ) . Count ( ) ) ;
278
+ Assert . That ( session . Query < AnotherEntity > ( ) . Count ( e => e . Input . TrimStart ( ) == "hi" ) , Is . EqualTo ( 2 ) ) ;
279
279
280
280
// Let it rollback to get rid of temporary changes.
281
281
}
You can’t perform that action at this time.
0 commit comments