Exemplo n.º 1
0
        public void Close_ChangesStateToClosedAndAbortsTimer()
        {
            // Act
            _state.Close();

            // Assert
            LastCommandShouldBe <SetClosedStateCommand>();
            _timer.Aborted.Should().BeTrue();
        }
Exemplo n.º 2
0
        public void Close_ChangesStateToClosedAndAbortsTimer()
        {
            // Act
            _state.Close();

            // Assert
            _context.StateShouldBe <ConnectionClosedState>();
            _timer.Aborted.Should().BeTrue();
        }