From fcc9628666771ed7b79bd16755145eee80d80999 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 5 Dec 2024 20:16:05 +1300 Subject: [PATCH] Bumped Verify.Xunit to version 26.6.0 (#3821) --- test/Directory.Build.props | 2 +- .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ScopeExtensionsTests.verify.cs | 1 - .../WebIntegrationTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../SqlListenerTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - ...DiagnosticsSentryOptionsExtensionsTests.cs | 2 - .../ApiApprovalTests.verify.cs | 1 - .../IntegrationTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../IntegrationTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - ...grationTests.Simple.DotNet6_0.verified.txt | 2 +- ...grationTests.Simple.DotNet7_0.verified.txt | 2 +- ...grationTests.Simple.DotNet8_0.verified.txt | 2 +- ...ntegrationTests.Simple.Net4_8.verified.txt | 2 +- .../IntegrationTests.verify.cs | 8 +- .../ProfilingSentryOptionsExtensionsTests.cs | 2 - .../SamplingTransactionProfilerTests.cs | 1 - .../TraceLogProcessorTests.verify.cs | 1 - .../ApiApprovalTests.verify.cs | 1 - ...grationTests.Simple.DotNet6_0.verified.txt | 2 +- ...grationTests.Simple.DotNet7_0.verified.txt | 2 +- ...grationTests.Simple.DotNet8_0.verified.txt | 2 +- .../IntegrationTests.verify.cs | 1 - test/Sentry.Tests/ApiApprovalTests.verify.cs | 1 - .../Sentry.Tests/BaggageHeaderTests.verify.cs | 1 - .../EventProcessorTests.verify.cs | 1 - ...ctionEndedAsCrashed.DotNet9_0.verified.txt | 190 ++++++++++++++++++ test/Sentry.Tests/HubTests.verify.cs | 1 - .../CollectionExtensionsTests.verify.cs | 1 - .../Internals/DebugStackTraceTests.verify.cs | 2 - .../Http/HttpTransportTests.verify.cs | 1 - .../MainExceptionProcessorTests.verify.cs | 1 - .../Internals/MemoryInfoTests.verify.cs | 1 - .../SentryStackTraceFactoryTests.verify.cs | 1 - test/Sentry.Tests/MetricTests.verify.cs | 1 - .../MetricsSummaryTests.verify.cs | 1 - .../Context/ContextCopyTests.verify.cs | 1 - .../Protocol/MeasurementTests.verify.cs | 1 - .../Protocol/ProfilerTests.verify.cs | 1 - .../Protocol/SentryEventTests.verify.cs | 1 - test/Sentry.Tests/SentryClientTests.verify.cs | 1 - .../Sentry.Tests/SentryOptionsTests.verify.cs | 1 - .../Sentry.Tests/SerializationTests.verify.cs | 1 - .../TransactionProcessorTests.verify.cs | 1 - 53 files changed, 204 insertions(+), 56 deletions(-) create mode 100644 test/Sentry.Tests/HubTests.CaptureEvent_ActiveTransaction_UnhandledExceptionTransactionEndedAsCrashed.DotNet9_0.verified.txt diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 03df34a8e8..75a8f4175f 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -56,7 +56,7 @@ - + diff --git a/test/Sentry.Android.AssemblyReader.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Android.AssemblyReader.Tests/ApiApprovalTests.verify.cs index 92089a1628..32bcf57cb7 100644 --- a/test/Sentry.Android.AssemblyReader.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Android.AssemblyReader.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Android.AssemblyReader.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.AspNet.Tests/ApiApprovalTests.verify.cs b/test/Sentry.AspNet.Tests/ApiApprovalTests.verify.cs index 913ff64398..0fbfd6ee7e 100644 --- a/test/Sentry.AspNet.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.AspNet.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.AspNet.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.AspNetCore.Grpc.Tests/ApiApprovalTests.verify.cs b/test/Sentry.AspNetCore.Grpc.Tests/ApiApprovalTests.verify.cs index 58904137c8..304c742046 100644 --- a/test/Sentry.AspNetCore.Grpc.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.AspNetCore.Grpc.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.AspNetCore.Grpc.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.AspNetCore.Tests/ApiApprovalTests.verify.cs b/test/Sentry.AspNetCore.Tests/ApiApprovalTests.verify.cs index c9b398bb25..9d4a097633 100644 --- a/test/Sentry.AspNetCore.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.AspNetCore.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.AspNetCore.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.AspNetCore.Tests/ScopeExtensionsTests.verify.cs b/test/Sentry.AspNetCore.Tests/ScopeExtensionsTests.verify.cs index fb4f4b3c63..91cbb6725a 100644 --- a/test/Sentry.AspNetCore.Tests/ScopeExtensionsTests.verify.cs +++ b/test/Sentry.AspNetCore.Tests/ScopeExtensionsTests.verify.cs @@ -3,7 +3,6 @@ namespace Sentry.AspNetCore.Tests; -[UsesVerify] public partial class ScopeExtensionsTests { [Fact] diff --git a/test/Sentry.AspNetCore.Tests/WebIntegrationTests.verify.cs b/test/Sentry.AspNetCore.Tests/WebIntegrationTests.verify.cs index 8f2c8fdd8f..18138d595b 100644 --- a/test/Sentry.AspNetCore.Tests/WebIntegrationTests.verify.cs +++ b/test/Sentry.AspNetCore.Tests/WebIntegrationTests.verify.cs @@ -7,7 +7,6 @@ namespace Sentry.AspNetCore.Tests; -[UsesVerify] public class WebIntegrationTests { private readonly TestOutputDiagnosticLogger _logger; diff --git a/test/Sentry.Azure.Functions.Worker.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Azure.Functions.Worker.Tests/ApiApprovalTests.verify.cs index bee62da0b5..a99f9b7b25 100644 --- a/test/Sentry.Azure.Functions.Worker.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Azure.Functions.Worker.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Azure.Functions.Worker.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.DiagnosticSource.IntegrationTests/SqlListenerTests.verify.cs b/test/Sentry.DiagnosticSource.IntegrationTests/SqlListenerTests.verify.cs index 9c1761ad21..b9f4250999 100644 --- a/test/Sentry.DiagnosticSource.IntegrationTests/SqlListenerTests.verify.cs +++ b/test/Sentry.DiagnosticSource.IntegrationTests/SqlListenerTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.DiagnosticSource.IntegrationTests; -[UsesVerify] public class SqlListenerTests : IClassFixture { private readonly LocalDbFixture _fixture; diff --git a/test/Sentry.DiagnosticSource.Tests/ApiApprovalTests.verify.cs b/test/Sentry.DiagnosticSource.Tests/ApiApprovalTests.verify.cs index 0dc50b78f5..d814d7a31a 100644 --- a/test/Sentry.DiagnosticSource.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.DiagnosticSource.Tests/ApiApprovalTests.verify.cs @@ -4,7 +4,6 @@ namespace Sentry.DiagnosticSource.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.DiagnosticSource.Tests/DiagnosticsSentryOptionsExtensionsTests.cs b/test/Sentry.DiagnosticSource.Tests/DiagnosticsSentryOptionsExtensionsTests.cs index 2cb5658e0a..3a95f8a437 100644 --- a/test/Sentry.DiagnosticSource.Tests/DiagnosticsSentryOptionsExtensionsTests.cs +++ b/test/Sentry.DiagnosticSource.Tests/DiagnosticsSentryOptionsExtensionsTests.cs @@ -4,8 +4,6 @@ namespace Sentry.DiagnosticSource.Tests; #nullable enable -[UsesVerify] - public class DiagnosticsSentryOptionsExtensionsTests { private readonly InMemoryDiagnosticLogger _logger = new(); diff --git a/test/Sentry.EntityFramework.Tests/ApiApprovalTests.verify.cs b/test/Sentry.EntityFramework.Tests/ApiApprovalTests.verify.cs index 669d9d096f..93d18231c8 100644 --- a/test/Sentry.EntityFramework.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.EntityFramework.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.EntityFramework.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.EntityFramework.Tests/IntegrationTests.verify.cs b/test/Sentry.EntityFramework.Tests/IntegrationTests.verify.cs index 0073167fc2..8a3c944f85 100644 --- a/test/Sentry.EntityFramework.Tests/IntegrationTests.verify.cs +++ b/test/Sentry.EntityFramework.Tests/IntegrationTests.verify.cs @@ -1,7 +1,6 @@ #if NETFRAMEWORK namespace Sentry.EntityFramework.Tests; -[UsesVerify] [Collection("Sequential")] public class IntegrationTests { diff --git a/test/Sentry.Extensions.Logging.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Extensions.Logging.Tests/ApiApprovalTests.verify.cs index bfb7bcdd4d..6b89724054 100644 --- a/test/Sentry.Extensions.Logging.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Extensions.Logging.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Extensions.Logging.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.Google.Cloud.Functions.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Google.Cloud.Functions.Tests/ApiApprovalTests.verify.cs index 409131f34a..ae30f6ffa5 100644 --- a/test/Sentry.Google.Cloud.Functions.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Google.Cloud.Functions.Tests/ApiApprovalTests.verify.cs @@ -2,7 +2,6 @@ namespace Sentry.Google.Cloud.Functions.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.Log4Net.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Log4Net.Tests/ApiApprovalTests.verify.cs index 1d3a2aaee5..03494b18a5 100644 --- a/test/Sentry.Log4Net.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Log4Net.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Log4Net.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.Log4Net.Tests/IntegrationTests.verify.cs b/test/Sentry.Log4Net.Tests/IntegrationTests.verify.cs index 141da8f3f0..6ba7959933 100644 --- a/test/Sentry.Log4Net.Tests/IntegrationTests.verify.cs +++ b/test/Sentry.Log4Net.Tests/IntegrationTests.verify.cs @@ -1,4 +1,3 @@ -[UsesVerify] public class IntegrationTests { [Fact] diff --git a/test/Sentry.Maui.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Maui.Tests/ApiApprovalTests.verify.cs index 75ef2a0705..6d99a00b25 100644 --- a/test/Sentry.Maui.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Maui.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Maui.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.NLog.Tests/ApiApprovalTests.verify.cs b/test/Sentry.NLog.Tests/ApiApprovalTests.verify.cs index fdbad95ea1..24c797e908 100644 --- a/test/Sentry.NLog.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.NLog.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.NLog.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt index 7aefd596c7..0546a4fe28 100644 --- a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt +++ b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt @@ -40,7 +40,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 52, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt index 7aefd596c7..0546a4fe28 100644 --- a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt +++ b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt @@ -40,7 +40,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 52, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt index 7aefd596c7..0546a4fe28 100644 --- a/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt +++ b/test/Sentry.NLog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt @@ -40,7 +40,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 52, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.NLog.Tests/IntegrationTests.Simple.Net4_8.verified.txt b/test/Sentry.NLog.Tests/IntegrationTests.Simple.Net4_8.verified.txt index 7aefd596c7..0546a4fe28 100644 --- a/test/Sentry.NLog.Tests/IntegrationTests.Simple.Net4_8.verified.txt +++ b/test/Sentry.NLog.Tests/IntegrationTests.Simple.Net4_8.verified.txt @@ -40,7 +40,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 52, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.NLog.Tests/IntegrationTests.verify.cs b/test/Sentry.NLog.Tests/IntegrationTests.verify.cs index 65c66a36e4..887897a3b4 100644 --- a/test/Sentry.NLog.Tests/IntegrationTests.verify.cs +++ b/test/Sentry.NLog.Tests/IntegrationTests.verify.cs @@ -1,11 +1,15 @@ +using Sentry.PlatformAbstractions; + namespace Sentry.NLog.Tests; -[UsesVerify] public class IntegrationTests { - [Fact] + [SkippableFact] public Task Simple() { + // See: https://github.com/getsentry/sentry-dotnet/issues/3823 + Skip.If(RuntimeInfo.GetRuntime().IsMono() && TestEnvironment.IsGitHubActions, "Missing DebugImage in CI for Mono"); + var transport = new RecordingTransport(); var configuration = new LoggingConfiguration(); diff --git a/test/Sentry.Profiling.Tests/ProfilingSentryOptionsExtensionsTests.cs b/test/Sentry.Profiling.Tests/ProfilingSentryOptionsExtensionsTests.cs index 5e1c160d9f..651431d1d9 100644 --- a/test/Sentry.Profiling.Tests/ProfilingSentryOptionsExtensionsTests.cs +++ b/test/Sentry.Profiling.Tests/ProfilingSentryOptionsExtensionsTests.cs @@ -2,8 +2,6 @@ namespace Sentry.Profiling.Tests; #nullable enable -[UsesVerify] - public class ProfilingSentryOptionsExtensionsTests { private readonly InMemoryDiagnosticLogger _logger = new(); diff --git a/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs b/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs index 216ffe28e2..12bdcc5995 100644 --- a/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs +++ b/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs @@ -6,7 +6,6 @@ namespace Sentry.Profiling.Tests; // Note: we must not run tests in parallel because we only support profiling one transaction at a time. // That means setting up a test-collection with parallelization disabled and NOT using any async test functions. [CollectionDefinition(nameof(SamplingTransactionProfilerTests), DisableParallelization = true)] -[UsesVerify] public class SamplingTransactionProfilerTests { private readonly TestOutputDiagnosticLogger _testOutputLogger; diff --git a/test/Sentry.Profiling.Tests/TraceLogProcessorTests.verify.cs b/test/Sentry.Profiling.Tests/TraceLogProcessorTests.verify.cs index 9829fa30e1..5b4307e951 100644 --- a/test/Sentry.Profiling.Tests/TraceLogProcessorTests.verify.cs +++ b/test/Sentry.Profiling.Tests/TraceLogProcessorTests.verify.cs @@ -4,7 +4,6 @@ namespace Sentry.Profiling.Tests; -[UsesVerify] public class TraceLogProcessorTests { private readonly IDiagnosticLogger _testOutputLogger; diff --git a/test/Sentry.Serilog.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Serilog.Tests/ApiApprovalTests.verify.cs index feaaba0501..6d8b62b64b 100644 --- a/test/Sentry.Serilog.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Serilog.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Serilog.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt index 5e9073da84..1f894bd0ef 100644 --- a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt +++ b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet6_0.verified.txt @@ -203,7 +203,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 47, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt index 5e9073da84..1f894bd0ef 100644 --- a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt +++ b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet7_0.verified.txt @@ -203,7 +203,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 47, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt index 5e9073da84..1f894bd0ef 100644 --- a/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt +++ b/test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet8_0.verified.txt @@ -203,7 +203,7 @@ FileName: IntegrationTests.verify.cs, Function: Task IntegrationTests.Simple(), Module: null, - LineNumber: 48, + LineNumber: 47, ColumnNumber: 17, AbsolutePath: {ProjectDirectory}IntegrationTests.verify.cs, ContextLine: null, diff --git a/test/Sentry.Serilog.Tests/IntegrationTests.verify.cs b/test/Sentry.Serilog.Tests/IntegrationTests.verify.cs index 6115accfe7..10d7b538bc 100644 --- a/test/Sentry.Serilog.Tests/IntegrationTests.verify.cs +++ b/test/Sentry.Serilog.Tests/IntegrationTests.verify.cs @@ -1,7 +1,6 @@ #if NET6_0_OR_GREATER namespace Sentry.Serilog.Tests; -[UsesVerify] [Collection(nameof(SentrySdkCollection))] public class IntegrationTests { diff --git a/test/Sentry.Tests/ApiApprovalTests.verify.cs b/test/Sentry.Tests/ApiApprovalTests.verify.cs index 952e4e6edd..04971eb41a 100644 --- a/test/Sentry.Tests/ApiApprovalTests.verify.cs +++ b/test/Sentry.Tests/ApiApprovalTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public class ApiApprovalTests { [Fact] diff --git a/test/Sentry.Tests/BaggageHeaderTests.verify.cs b/test/Sentry.Tests/BaggageHeaderTests.verify.cs index 5da68cef1d..3610eeeb9a 100644 --- a/test/Sentry.Tests/BaggageHeaderTests.verify.cs +++ b/test/Sentry.Tests/BaggageHeaderTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public partial class BaggageHeaderTests { [Fact] diff --git a/test/Sentry.Tests/EventProcessorTests.verify.cs b/test/Sentry.Tests/EventProcessorTests.verify.cs index 2ab9f4761a..ea324e8283 100644 --- a/test/Sentry.Tests/EventProcessorTests.verify.cs +++ b/test/Sentry.Tests/EventProcessorTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public class EventProcessorTests { private readonly TestOutputDiagnosticLogger _logger; diff --git a/test/Sentry.Tests/HubTests.CaptureEvent_ActiveTransaction_UnhandledExceptionTransactionEndedAsCrashed.DotNet9_0.verified.txt b/test/Sentry.Tests/HubTests.CaptureEvent_ActiveTransaction_UnhandledExceptionTransactionEndedAsCrashed.DotNet9_0.verified.txt new file mode 100644 index 0000000000..e2f6a68211 --- /dev/null +++ b/test/Sentry.Tests/HubTests.CaptureEvent_ActiveTransaction_UnhandledExceptionTransactionEndedAsCrashed.DotNet9_0.verified.txt @@ -0,0 +1,190 @@ +[ + { + Header: { + sdk: { + name: sentry.dotnet + } + }, + Items: [ + { + Header: { + type: session + }, + Payload: { + Source: { + DistinctId: Guid_1, + Release: release, + Environment: production, + IsInitial: true + } + } + } + ] + }, + { + Header: { + event_id: Guid_2, + sdk: { + name: sentry.dotnet + }, + trace: { + environment: production, + public_key: d4d82fc1c2c4032a83f3a29aa3a3aff, + release: release, + sample_rate: 1, + sampled: true, + trace_id: Guid_3, + transaction: my transaction + } + }, + Items: [ + { + Header: { + type: event + }, + Payload: { + Source: { + Platform: csharp, + SentryExceptions: [ + { + Mechanism: { + Type: generic, + Handled: false, + Synthetic: false, + IsExceptionGroup: false + } + } + ], + SentryThreads: [ + { + Crashed: false, + Current: true + } + ], + DebugImages: [ + { + Type: pe_dotnet, + ImageAddress: null, + ImageSize: null, + DebugId: ________-____-____-____-____________-________, + DebugChecksum: ______:________________________________________________________________, + DebugFile: .../System.Private.CoreLib.pdb, + CodeId: ______________, + CodeFile: .../System.Private.CoreLib.dll + }, + { + Type: pe_dotnet, + ImageAddress: null, + ImageSize: null, + DebugId: ________-____-____-____-____________-________, + DebugChecksum: ______:________________________________________________________________, + DebugFile: .../Sentry.Tests.pdb, + CodeId: ______________, + CodeFile: .../Sentry.Tests.dll + }, + { + Type: pe_dotnet, + ImageAddress: null, + ImageSize: null, + DebugId: ________-____-____-____-____________-________, + DebugChecksum: ______:________________________________________________________________, + DebugFile: xunit.execution.dotnet.pdb, + CodeId: ______________, + CodeFile: .../xunit.execution.dotnet.dll + }, + { + Type: pe_dotnet, + ImageAddress: null, + ImageSize: null, + DebugId: ________-____-____-____-____________-________, + DebugChecksum: ______:________________________________________________________________, + DebugFile: xunit.core.pdb, + CodeId: ______________, + CodeFile: .../xunit.core.dll + } + ], + Level: error, + TransactionName: my transaction, + Request: {}, + Contexts: { + trace: { + Operation: + } + }, + User: { + Id: Guid_1, + IpAddress: {{auto}} + }, + Environment: production + } + } + }, + { + Header: { + type: session + }, + Payload: { + Source: { + DistinctId: Guid_1, + Release: release, + Environment: production, + ErrorCount: 1, + IsInitial: false, + SequenceNumber: 1, + EndStatus: Crashed + } + } + } + ] + }, + { + Header: { + event_id: Guid_4, + sdk: { + name: sentry.dotnet + }, + trace: { + environment: production, + public_key: d4d82fc1c2c4032a83f3a29aa3a3aff, + release: release, + sample_rate: 1, + sampled: true, + trace_id: Guid_3, + transaction: my transaction + } + }, + Items: [ + { + Header: { + type: transaction + }, + Payload: { + Source: { + Name: my transaction, + Platform: csharp, + Operation: my operation, + Description: , + Status: Aborted, + IsSampled: true, + SampleRate: 1.0, + Request: {}, + Contexts: { + trace: { + Operation: my operation, + Description: , + Status: Aborted, + IsSampled: true + } + }, + User: { + Id: Guid_1, + IpAddress: {{auto}} + }, + Environment: production, + IsFinished: true + } + } + } + ] + } +] \ No newline at end of file diff --git a/test/Sentry.Tests/HubTests.verify.cs b/test/Sentry.Tests/HubTests.verify.cs index f308a0ada6..5d162b3612 100644 --- a/test/Sentry.Tests/HubTests.verify.cs +++ b/test/Sentry.Tests/HubTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public partial class HubTests { [SkippableFact] diff --git a/test/Sentry.Tests/Internals/CollectionExtensionsTests.verify.cs b/test/Sentry.Tests/Internals/CollectionExtensionsTests.verify.cs index da0f2556a7..1a8f5528e6 100644 --- a/test/Sentry.Tests/Internals/CollectionExtensionsTests.verify.cs +++ b/test/Sentry.Tests/Internals/CollectionExtensionsTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests.Internals; -[UsesVerify] public class CollectionExtensionsTests { [Fact] diff --git a/test/Sentry.Tests/Internals/DebugStackTraceTests.verify.cs b/test/Sentry.Tests/Internals/DebugStackTraceTests.verify.cs index 9cf9c7365d..aa4387d9af 100644 --- a/test/Sentry.Tests/Internals/DebugStackTraceTests.verify.cs +++ b/test/Sentry.Tests/Internals/DebugStackTraceTests.verify.cs @@ -4,8 +4,6 @@ namespace Other.Tests.Internals; -[UsesVerify] - public class DebugStackTraceTests { private class Fixture diff --git a/test/Sentry.Tests/Internals/Http/HttpTransportTests.verify.cs b/test/Sentry.Tests/Internals/Http/HttpTransportTests.verify.cs index 933e179d11..ad5ac2a9c3 100644 --- a/test/Sentry.Tests/Internals/Http/HttpTransportTests.verify.cs +++ b/test/Sentry.Tests/Internals/Http/HttpTransportTests.verify.cs @@ -2,7 +2,6 @@ namespace Sentry.Tests.Internals.Http; -[UsesVerify] public partial class HttpTransportTests { [Fact] diff --git a/test/Sentry.Tests/Internals/MainExceptionProcessorTests.verify.cs b/test/Sentry.Tests/Internals/MainExceptionProcessorTests.verify.cs index 68305ebb73..a45be96160 100644 --- a/test/Sentry.Tests/Internals/MainExceptionProcessorTests.verify.cs +++ b/test/Sentry.Tests/Internals/MainExceptionProcessorTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests.Internals; -[UsesVerify] public partial class MainExceptionProcessorTests { [Fact] diff --git a/test/Sentry.Tests/Internals/MemoryInfoTests.verify.cs b/test/Sentry.Tests/Internals/MemoryInfoTests.verify.cs index b12500903e..dc47f32c67 100644 --- a/test/Sentry.Tests/Internals/MemoryInfoTests.verify.cs +++ b/test/Sentry.Tests/Internals/MemoryInfoTests.verify.cs @@ -3,7 +3,6 @@ namespace Sentry.Tests.Internals; -[UsesVerify] public class MemoryInfoTests { private readonly IDiagnosticLogger _testOutputLogger; diff --git a/test/Sentry.Tests/Internals/SentryStackTraceFactoryTests.verify.cs b/test/Sentry.Tests/Internals/SentryStackTraceFactoryTests.verify.cs index 6e3990775b..464d5278d3 100644 --- a/test/Sentry.Tests/Internals/SentryStackTraceFactoryTests.verify.cs +++ b/test/Sentry.Tests/Internals/SentryStackTraceFactoryTests.verify.cs @@ -6,7 +6,6 @@ namespace Other.Tests.Internals; // TODO: Create integration test to test this behaviour when publishing AOT apps // See https://github.com/getsentry/sentry-dotnet/pull/2732#discussion_r1371006441 -[UsesVerify] public partial class SentryStackTraceFactoryTests { [SkippableTheory] diff --git a/test/Sentry.Tests/MetricTests.verify.cs b/test/Sentry.Tests/MetricTests.verify.cs index 42041fbadd..cfe1f7444c 100644 --- a/test/Sentry.Tests/MetricTests.verify.cs +++ b/test/Sentry.Tests/MetricTests.verify.cs @@ -3,7 +3,6 @@ namespace Sentry.Tests; -[UsesVerify] public class MetricTests { public static IEnumerable GetMetrics() diff --git a/test/Sentry.Tests/MetricsSummaryTests.verify.cs b/test/Sentry.Tests/MetricsSummaryTests.verify.cs index 329de58889..51f8ca57a3 100644 --- a/test/Sentry.Tests/MetricsSummaryTests.verify.cs +++ b/test/Sentry.Tests/MetricsSummaryTests.verify.cs @@ -7,7 +7,6 @@ namespace Sentry.Tests; -[UsesVerify] public class MetricsSummaryTests { [Fact] diff --git a/test/Sentry.Tests/Protocol/Context/ContextCopyTests.verify.cs b/test/Sentry.Tests/Protocol/Context/ContextCopyTests.verify.cs index e541dda62d..4023c29567 100644 --- a/test/Sentry.Tests/Protocol/Context/ContextCopyTests.verify.cs +++ b/test/Sentry.Tests/Protocol/Context/ContextCopyTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests.Protocol.Context; -[UsesVerify] public class ContextCopyTests { [Fact] diff --git a/test/Sentry.Tests/Protocol/MeasurementTests.verify.cs b/test/Sentry.Tests/Protocol/MeasurementTests.verify.cs index 727b0feab3..724e165d34 100644 --- a/test/Sentry.Tests/Protocol/MeasurementTests.verify.cs +++ b/test/Sentry.Tests/Protocol/MeasurementTests.verify.cs @@ -2,7 +2,6 @@ namespace Sentry.Tests.Protocol; -[UsesVerify] public partial class MeasurementTests { [Fact] diff --git a/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs b/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs index 7d58ea2435..e47f4f5de1 100644 --- a/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs +++ b/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests.Protocol; -[UsesVerify] public class ProfilerTests { private readonly IDiagnosticLogger _testOutputLogger; diff --git a/test/Sentry.Tests/Protocol/SentryEventTests.verify.cs b/test/Sentry.Tests/Protocol/SentryEventTests.verify.cs index a60615715a..c755aa2bbc 100644 --- a/test/Sentry.Tests/Protocol/SentryEventTests.verify.cs +++ b/test/Sentry.Tests/Protocol/SentryEventTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests.Protocol; -[UsesVerify] public partial class SentryEventTests { [Fact] diff --git a/test/Sentry.Tests/SentryClientTests.verify.cs b/test/Sentry.Tests/SentryClientTests.verify.cs index ff9114fd22..329f8065d0 100644 --- a/test/Sentry.Tests/SentryClientTests.verify.cs +++ b/test/Sentry.Tests/SentryClientTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public partial class SentryClientTests { [Fact] diff --git a/test/Sentry.Tests/SentryOptionsTests.verify.cs b/test/Sentry.Tests/SentryOptionsTests.verify.cs index adebff2725..3e66a887ba 100644 --- a/test/Sentry.Tests/SentryOptionsTests.verify.cs +++ b/test/Sentry.Tests/SentryOptionsTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public partial class SentryOptionsTests { [Fact] diff --git a/test/Sentry.Tests/SerializationTests.verify.cs b/test/Sentry.Tests/SerializationTests.verify.cs index e17e3ee1a8..86a671cb3c 100644 --- a/test/Sentry.Tests/SerializationTests.verify.cs +++ b/test/Sentry.Tests/SerializationTests.verify.cs @@ -4,7 +4,6 @@ namespace Sentry.Tests; -[UsesVerify] public class SerializationTests { private readonly IDiagnosticLogger _testOutputLogger; diff --git a/test/Sentry.Tests/TransactionProcessorTests.verify.cs b/test/Sentry.Tests/TransactionProcessorTests.verify.cs index 5da19ed322..7d6425405b 100644 --- a/test/Sentry.Tests/TransactionProcessorTests.verify.cs +++ b/test/Sentry.Tests/TransactionProcessorTests.verify.cs @@ -1,6 +1,5 @@ namespace Sentry.Tests; -[UsesVerify] public partial class TransactionProcessorTests { [Fact]