コード例 #1
0
        public void Close_ChangesStateToClosedAndAbortsTimer()
        {
            // Act
            _state.Close();

            // Assert
            LastCommandShouldBe <SetClosedStateCommand>();
            _timer.Aborted.Should().BeTrue();
        }
コード例 #2
0
        public void Close_ChangesStateToClosedAndAbortsTimer()
        {
            // Act
            _state.Close();

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