mirror of
https://github.com/Azure/DotNetty.git
synced 2026-10-18 14:27:09 +08:00
25 lines
806 B
C#
25 lines
806 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
namespace DotNetty.Codecs.Http.Tests.WebSockets
|
|
{
|
|
using DotNetty.Codecs.Http.WebSockets;
|
|
using DotNetty.Transport.Channels;
|
|
using Moq;
|
|
using Xunit;
|
|
|
|
public sealed class WebSocket08FrameDecoderTest
|
|
{
|
|
[Fact]
|
|
public void ChannelInactive()
|
|
{
|
|
var decoder = new WebSocket08FrameDecoder(true, true, 65535, false);
|
|
var ctx = new Mock<IChannelHandlerContext>(MockBehavior.Strict);
|
|
ctx.Setup(x => x.FireChannelInactive()).Returns(ctx.Object);
|
|
|
|
decoder.ChannelInactive(ctx.Object);
|
|
ctx.Verify(x => x.FireChannelInactive(), Times.Once);
|
|
}
|
|
}
|
|
}
|