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()
140
140
{
141
141
await ( FillDbAsync ( ) ) ;
142
142
var log = sqlLog . GetWholeLog ( ) ;
143
- Assert . IsTrue ( log . Contains ( "INSERT \n INTO" ) ) ;
143
+ Assert . That ( log , Does . Contain ( "INSERT \n INTO" ) . IgnoreCase ) ;
144
144
}
145
145
146
146
await ( CleanupAsync ( ) ) ;
@@ -211,7 +211,7 @@ public async Task AbstractBatcherLogAsync()
211
211
foreach ( var loggingEvent in sl . Appender . GetEvents ( ) )
212
212
{
213
213
string message = loggingEvent . RenderedMessage ;
214
- if ( message . ToLowerInvariant ( ) . Contains ( "insert" ) )
214
+ if ( message . Contains ( "insert" ) )
215
215
{
216
216
Assert . That ( message , Does . Contain ( "batch" ) . IgnoreCase ) ;
217
217
}
Original file line number Diff line number Diff line change @@ -35,5 +35,8 @@ public partial interface ITransaction : IDisposable
35
35
/// </summary>
36
36
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
37
37
Task RollbackAsync ( CancellationToken cancellationToken = default ( CancellationToken ) ) ;
38
+
39
+ #if NET6_0_OR_GREATER
40
+ #endif
38
41
}
39
42
}
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ namespace NHibernate.Transaction
21
21
using System . Threading . Tasks ;
22
22
using System . Threading ;
23
23
public partial class AdoTransaction : ITransaction
24
- #if NET6_0_OR_GREATER
25
- #endif
26
24
{
27
25
28
26
private async Task AfterTransactionCompletionAsync ( bool successful , CancellationToken cancellationToken )
You can’t perform that action at this time.
0 commit comments