From 29f01ea414465d53bb972fccced82d1ed3d99893 Mon Sep 17 00:00:00 2001 From: Johannes Deml Date: Mon, 3 Apr 2023 20:05:38 +0200 Subject: [PATCH] Update to .NET 6 and update packages NetCoreServer 5.1.0 -> 6.7.0 BenchmarkDotNet 0.13.1 -> 0.13.5 ENet-CSharp 2.4.7 -> 2.4.8 --- NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj | 8 ++++---- NetworkBenchmarkDotNet/Program.cs | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj b/NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj index e7cd1f6..e74d074 100644 --- a/NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj +++ b/NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj @@ -12,7 +12,7 @@ Debug;Release AnyCPU 9 - net5.0 + net6.0 true true true @@ -30,11 +30,11 @@ - - + + - + diff --git a/NetworkBenchmarkDotNet/Program.cs b/NetworkBenchmarkDotNet/Program.cs index c60995f..06c82aa 100644 --- a/NetworkBenchmarkDotNet/Program.cs +++ b/NetworkBenchmarkDotNet/Program.cs @@ -12,6 +12,7 @@ using System.CommandLine; using System.CommandLine.Invocation; using System.Linq; +using BenchmarkDotNet.Reports; using BenchmarkDotNet.Running; namespace NetworkBenchmark @@ -112,7 +113,7 @@ private static void RunBenchmark() "The following benchmarks are failed to build: " + string.Join(", ", summary.Reports.Where(r => !r.BuildResult.IsBuildSuccess).Select(r => r.BenchmarkCase.DisplayInfo))); - Assert(summary.Reports.All(r => r.ExecuteResults.Any(er => er.FoundExecutable && er.Data.Any())), + Assert(summary.Reports.All(r => r.ExecuteResults.Any(er => er.FoundExecutable && er.Results.Any())), "All reports should have at least one \"ExecuteResult\" with \"FoundExecutable\" = true and at least one \"Data\" item"); Assert(summary.Reports.All(report => report.AllMeasurements.Any()),