public void Abort_with_arguments_closes_the_channel()
        {
            var server = new RabbitServer();

            using (var model = new FakeModel(server))
            {
                model.Abort(5, "some message");

                Assert.True(model.IsClosed);
                Assert.False(model.IsOpen);
                Assert.NotNull(model.CloseReason);
            }
        }
Ejemplo n.º 2
0
        public void Abort_WithArguments_ClosesTheChannel()
        {
            // Arrange
            var node = new RabbitServer();

            using (var model = new FakeModel(node))
            {
                // Act
                model.Abort(5, "some message");

                // Assert
                Assert.True(model.IsClosed);
                Assert.False(model.IsOpen);
                Assert.NotNull(model.CloseReason);
            }
        }