diff --git a/src/Microsoft.AspNetCore.Sockets.Client.Http/Microsoft.AspNetCore.Sockets.Client.Http.csproj b/src/Microsoft.AspNetCore.Sockets.Client.Http/Microsoft.AspNetCore.Sockets.Client.Http.csproj
index 1d5bfe2ba5..871c9c715f 100644
--- a/src/Microsoft.AspNetCore.Sockets.Client.Http/Microsoft.AspNetCore.Sockets.Client.Http.csproj
+++ b/src/Microsoft.AspNetCore.Sockets.Client.Http/Microsoft.AspNetCore.Sockets.Client.Http.csproj
@@ -24,7 +24,6 @@
-
diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/BinaryMessageFormatterTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/BinaryMessageFormatterTests.cs
index 5ec6b5f211..d55a163771 100644
--- a/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/BinaryMessageFormatterTests.cs
+++ b/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/BinaryMessageFormatterTests.cs
@@ -1,9 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-using System;
-using System.Buffers;
using System.IO;
+using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Sockets.Internal.Formatters;
using Xunit;
@@ -56,7 +55,7 @@ namespace Microsoft.AspNetCore.Sockets.Tests.Internal.Formatters
BinaryMessageFormatter.WriteMessage(payload, output);
- Assert.Equal(encoded, output.ToArray().Slice(offset).ToArray());
+ Assert.Equal(encoded, output.ToArray().Skip(offset));
}
[Theory]
@@ -77,7 +76,7 @@ namespace Microsoft.AspNetCore.Sockets.Tests.Internal.Formatters
BinaryMessageFormatter.WriteMessage(message, output);
- Assert.Equal(encoded, output.ToArray().Slice(offset).ToArray());
+ Assert.Equal(encoded, output.ToArray().Skip(offset));
}
}
}
diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/TextMessageParserTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/TextMessageParserTests.cs
index f5501b44a0..8213e04a1f 100644
--- a/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/TextMessageParserTests.cs
+++ b/test/Microsoft.AspNetCore.SignalR.Tests/Formatters/TextMessageParserTests.cs
@@ -81,7 +81,6 @@ namespace Microsoft.AspNetCore.Sockets.Common.Tests.Internal.Formatters
// Invalid because first character is a UTF-8 "continuation" character
// We need to include the ':' so that
ReadOnlyBuffer buffer = new byte[] { 0x48, 0x65, 0x80, 0x6C, 0x6F, (byte)':' };
- var reader = new BytesReader(buffer);
var ex = Assert.Throws(() =>
{
TextMessageParser.TryParseMessage(ref buffer, out _);