Raise AnalysisLevel to 6.0-Recommended, fix warnings (#2086)

Raise the .NET Code Analysis Level to `6.0-Minimum` and then `6.0-Recommended`.
This commit is contained in:
George Pollard
2022-06-29 09:27:33 +12:00
committed by GitHub
parent 3c3aeaa569
commit 2a6a0d9996
24 changed files with 100 additions and 64 deletions

View File

@ -8,7 +8,7 @@ namespace Tests;
public class SchedulerTests {
IEnumerable<Task> BuildTasks(int size) {
static IEnumerable<Task> BuildTasks(int size) {
return Enumerable.Range(0, size).Select(i =>
new Task(
Guid.Empty,
@ -123,7 +123,7 @@ public class SchedulerTests {
CheckBuckets(buckets, tasks, 12);
}
void CheckBuckets(ILookup<Scheduler.BucketId, Task> buckets, List<Task> tasks, int bucketCount) {
static void CheckBuckets(ILookup<Scheduler.BucketId, Task> buckets, List<Task> tasks, int bucketCount) {
Assert.Equal(buckets.Count, bucketCount);
foreach (var task in tasks) {