Skip to content

Commit ed97fa9

Browse files
committed
Assert corrected and used lambda for getter
1 parent 11b45e7 commit ed97fa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/NHibernate.Test/Ado/GenericBatchingBatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void BatchSizeTest()
5656
tx.Commit();
5757

5858
var log = sqlLog.GetWholeLog();
59-
Assert.That(4, Is.EqualTo(FindAllOccurrences(log, "Batch commands:")));
59+
Assert.That(FindAllOccurrences(log, "Batch commands:"), Is.EqualTo(4));
6060
}
6161
Cleanup();
6262
}

src/NHibernate.Test/Async/Ado/GenericBatchingBatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public async Task BatchSizeTestAsync()
6969
await (tx.CommitAsync());
7070

7171
var log = sqlLog.GetWholeLog();
72-
Assert.That(4, Is.EqualTo(FindAllOccurrences(log, "Batch commands:")));
72+
Assert.That(FindAllOccurrences(log, "Batch commands:"), Is.EqualTo(4));
7373
}
7474
await (CleanupAsync());
7575
}

src/NHibernate/Dialect/Dialect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ public virtual string LowercaseFunction
24492449
/// <summary>
24502450
/// The maximum number of parameters allowed in a query.
24512451
/// </summary>
2452-
public virtual int? MaxNumberOfParameters { get; } = null;
2452+
public virtual int? MaxNumberOfParameters => null;
24532453

24542454
/// <summary>
24552455
/// The syntax used to add a column to a table. Note this is deprecated

0 commit comments

Comments
 (0)