diff --git a/src/Tests/PolyfillTests_Memory.cs b/src/Tests/PolyfillTests_Memory.cs index ef5fca80..89824208 100644 --- a/src/Tests/PolyfillTests_Memory.cs +++ b/src/Tests/PolyfillTests_Memory.cs @@ -3,7 +3,7 @@ partial class PolyfillTests [Test] public void ReadOnlySpan_ZeroLengthContains() { - var span = new ReadOnlySpan(Array.Empty()); + var span = new ReadOnlySpan([]); var found = span.Contains(0); Assert.False(found); @@ -53,7 +53,7 @@ public void ReadOnlySpan_TestMultipleContains() [Test] public void ReadOnlySpan_ZeroLengthContains_String() { - var span = new ReadOnlySpan(Array.Empty()); + var span = new ReadOnlySpan([]); var found = span.Contains("a"); Assert.False(found); } @@ -123,7 +123,7 @@ public void ReadOnlySpan_TestMultipleMatchContains_String() [Test] public void Span_ZeroLengthContains() { - var span = new Span(Array.Empty()); + var span = new Span([]); var found = span.Contains(0); Assert.False(found); @@ -173,7 +173,7 @@ public void Span_TestMultipleContains() [Test] public void Span_ZeroLengthContains_String() { - var span = new Span(Array.Empty()); + var span = new Span([]); var found = span.Contains("a"); Assert.False(found); }