File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
NHibernate.Test/Async/Ado Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public async Task BatchedoutputShouldBeFormattedAsync()
140140 {
141141 await ( FillDbAsync ( ) ) ;
142142 var log = sqlLog . GetWholeLog ( ) ;
143- Assert . IsTrue ( log . Contains ( "INSERT \n INTO" ) ) ;
143+ Assert . That ( log , Does . Contain ( "INSERT \n INTO" ) . IgnoreCase ) ;
144144 }
145145
146146 await ( CleanupAsync ( ) ) ;
@@ -211,7 +211,7 @@ public async Task AbstractBatcherLogAsync()
211211 foreach ( var loggingEvent in sl . Appender . GetEvents ( ) )
212212 {
213213 string message = loggingEvent . RenderedMessage ;
214- if ( message . ToLowerInvariant ( ) . Contains ( "insert" ) )
214+ if ( message . Contains ( "insert" ) )
215215 {
216216 Assert . That ( message , Does . Contain ( "batch" ) . IgnoreCase ) ;
217217 }
Original file line number Diff line number Diff line change @@ -35,5 +35,8 @@ public partial interface ITransaction : IDisposable
3535 /// </summary>
3636 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
3737 Task RollbackAsync ( CancellationToken cancellationToken = default ( CancellationToken ) ) ;
38+
39+ #if NET6_0_OR_GREATER
40+ #endif
3841 }
3942}
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ namespace NHibernate.Transaction
2121 using System . Threading . Tasks ;
2222 using System . Threading ;
2323 public partial class AdoTransaction : ITransaction
24- #if NET6_0_OR_GREATER
25- #endif
2624 {
2725
2826 private async Task AfterTransactionCompletionAsync ( bool successful , CancellationToken cancellationToken )
You can’t perform that action at this time.
0 commit comments