Skip to content

Commit

Permalink
Use ImmutableArray.Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
manfred-brands committed Apr 19, 2023
1 parent c46757f commit 672ca7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public DefaultConstraintTests()
[Test] public void Failure_Int_NonZero() => AssertFailure(1);
[Test] public void Failure_Double_NaN() => AssertFailure(double.NaN);
[Test] public void Failure_NonDefaultStructWithOverriddenEquals() => AssertFailure(new StructWithStrangeEquals { SomeField = 1, EqualsResult = true });
[Test] public void Failure_ImmutableArray_Empty() => AssertFailure(ImmutableArray.Create<int>());
[Test] public void Failure_ImmutableArray_Empty() => AssertFailure(ImmutableArray<int>.Empty);

private void AssertSuccess<T>(T actual)
{
Expand Down

0 comments on commit 672ca7a

Please sign in to comment.