File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using Sentry . Internal ;
21using Sentry . Maui . Internal ;
32using Sentry . Maui . Tests . Mocks ;
43
Original file line number Diff line number Diff line change 1- using Sentry . Internal ;
21using Sentry . Maui . Internal ;
3- using Sentry . Maui . Tests . Mocks ;
42
53namespace 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 {
You can’t perform that action at this time.
0 commit comments