Skip to content

Commit dc5c853

Browse files
committed
Format arguments consistently in test
1 parent aad5e0b commit dc5c853

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/Sentry.AspNetCore.Tests/SentryMiddlewareTests.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,15 @@ public async Task InvokeAsync_LocksScope_BeforeConfiguringScope()
168168
verified = true;
169169
}));
170170

171-
_fixture.Hub.When(h => h.ConfigureScope(Arg.Any<Action<Scope, Arg.AnyType>>(), Arg.Any<Arg.AnyType>()))
172-
.Do(Callback.First(c => c.InvokeGenericConfigureScopeMethod(scope)).Then(_ =>
173-
{
174-
Assert.True(scope.Locked);
175-
verified = true;
176-
}));
171+
_fixture.Hub
172+
.When(h => h.ConfigureScope(Arg.Any<Action<Scope, Arg.AnyType>>(), Arg.Any<Arg.AnyType>()))
173+
.Do(Callback
174+
.First(c => c.InvokeGenericConfigureScopeMethod(scope))
175+
.Then(_ =>
176+
{
177+
Assert.True(scope.Locked);
178+
verified = true;
179+
}));
177180

178181
var sut = _fixture.GetSut();
179182

0 commit comments

Comments
 (0)