Removing unnecessary dependency
This commit is contained in:
parent
4898c0d3df
commit
5b4cc95583
|
|
@ -24,7 +24,6 @@
|
|||
<PackageReference Include="System.Memory" Version="$(CoreFxVersion)" />
|
||||
<PackageReference Include="System.Numerics.Vectors" Version="$(CoreFxVersion)" />
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="$(CoreFxVersion)" />
|
||||
<PackageReference Include="System.Text.Formatting" Version="$(CoreFxLabsVersion)" />
|
||||
<PackageReference Include="System.Threading.Tasks.Channels" Version="$(CoreFxLabsVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<byte> buffer = new byte[] { 0x48, 0x65, 0x80, 0x6C, 0x6F, (byte)':' };
|
||||
var reader = new BytesReader(buffer);
|
||||
var ex = Assert.Throws<FormatException>(() =>
|
||||
{
|
||||
TextMessageParser.TryParseMessage(ref buffer, out _);
|
||||
|
|
|
|||
Loading…
Reference in New Issue