Skip to content

Commit 19db7e2

Browse files
.
1 parent e88f45c commit 19db7e2

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

test/Sentry.Maui.Tests/MauiEventsBinderTests.Application.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Sentry.Internal;
21
using Sentry.Maui.Internal;
32
using Sentry.Maui.Tests.Mocks;
43

test/Sentry.Maui.Tests/MauiEventsBinderTests.Button.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Sentry.Internal;
21
using Sentry.Maui.Internal;
3-
using Sentry.Maui.Tests.Mocks;
42

53
namespace Sentry.Maui.Tests;
64

@@ -261,30 +259,6 @@ public void Button_Pressed_ManualTransactionOnScope_NotBoundToScope()
261259
Assert.Same(userTransaction, _fixture.Scope.Transaction);
262260
}
263261

264-
[Fact]
265-
public void StartUiTransaction_TransactionOnScope_NotBoundToScope()
266-
{
267-
// Arrange
268-
var scope = new Scope();
269-
_fixture.Hub.SubstituteConfigureScope(scope);
270-
271-
var prevTransaction = Substitute.For<ITransactionTracer>();
272-
_fixture.Hub.ConfigureScope(s => s.Transaction = prevTransaction);
273-
274-
var clickTransaction = Substitute.For<ITransactionTracer>();
275-
_fixture.Hub.StartTransaction(Arg.Any<ITransactionContext>(), Arg.Any<TimeSpan?>())
276-
.Returns(clickTransaction);
277-
278-
// Act
279-
_fixture.Binder.StartUiTransaction("test");
280-
281-
// Assert
282-
_fixture.Hub.Received(1).StartTransaction(
283-
Arg.Is<ITransactionContext>(c => c.Operation == MauiEventsBinder.UserInteractionClickOp),
284-
Arg.Any<TimeSpan?>());
285-
Assert.Same(prevTransaction, _fixture.Scope.Transaction);
286-
}
287-
288262
[Fact]
289263
public void OnWindowOnStopped_FinishesActiveInteractionTransaction()
290264
{

0 commit comments

Comments
 (0)