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()
266266 }
267267
268268 [ Test ]
269- public void TrimTrailingWhitespace ( )
269+ public void TrimInitialWhitespace ( )
270270 {
271271 using ( session . BeginTransaction ( ) )
272272 {
273- session . Save ( new AnotherEntity { Input = " hi " } ) ;
273+ session . Save ( new AnotherEntity { Input = " hi" } ) ;
274274 session . Save ( new AnotherEntity { Input = "hi" } ) ;
275275 session . Save ( new AnotherEntity { Input = "heh" } ) ;
276276 session . Flush ( ) ;
277277
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 ) ) ;
279279
280280 // Let it rollback to get rid of temporary changes.
281281 }
You can’t perform that action at this time.
0 commit comments