From a2f5bade614e7bc0d5e0de9dbd19066468664147 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 3 Mar 2024 20:35:10 +1100 Subject: [PATCH] Update PolyfillTests_Memory.cs --- src/Tests/PolyfillTests_Memory.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }