Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed Nov 30, 2024
1 parent 8d9f4e9 commit ffc07f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/NSubstitute/Core/ThreadLocalContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ThreadLocalContext : IThreadLocalContext
public ThreadLocalContext()
{
_lastCallRouter = new RobustThreadLocal<ICallRouter?>();
_argumentSpecifications = new RobustThreadLocal<IList<IArgumentSpecification>>(() => new List<IArgumentSpecification>());
_argumentSpecifications = new RobustThreadLocal<IList<IArgumentSpecification>>(() => []);
_getArgumentsForRaisingEvent = new RobustThreadLocal<Func<ICall, object?[]>?>();
_currentQuery = new RobustThreadLocal<IQuery?>();
_pendingSpecificationInfo = new RobustThreadLocal<PendingSpecInfoData>();
Expand Down Expand Up @@ -102,7 +102,7 @@ public IList<IArgumentSpecification> DequeueAllArgumentSpecifications()
}
else
{
_argumentSpecifications.Value = new List<IArgumentSpecification>();
_argumentSpecifications.Value = [];
}

return queue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class When_no_calls_are_made_to_the_expected_member : Context
{
protected override void ConfigureContext()
{
Sample.AnotherMethod(new List<string>());
Sample.AnotherMethod(new List<string>());
Sample.AnotherMethod([]);
Sample.AnotherMethod([]);
}

protected override void ExpectedCall()
Expand Down Expand Up @@ -67,12 +67,12 @@ public void Should_report_non_matching_calls()

public class When_calls_have_been_made_to_expected_member_but_with_some_different_args : Context
{
readonly IList<string> _strings = new List<string> { "a", "b" };
readonly IList<string> _strings = ["a", "b"];

protected override void ConfigureContext()
{
Sample.SampleMethod("different", 1, new List<string>());
Sample.SampleMethod("string", 7, new List<string>());
Sample.SampleMethod("different", 1, []);
Sample.SampleMethod("string", 7, []);
}

protected override void ExpectedCall()
Expand Down

0 comments on commit ffc07f9

Please sign in to comment.