public void Close_ChangesStateToClosedAndAbortsTimer() { // Act _state.Close(); // Assert LastCommandShouldBe <SetClosedStateCommand>(); _timer.Aborted.Should().BeTrue(); }
public void Close_ChangesStateToClosedAndAbortsTimer() { // Act _state.Close(); // Assert _context.StateShouldBe <ConnectionClosedState>(); _timer.Aborted.Should().BeTrue(); }