public void WhenCloseCalled_ShouldChangeStateToClosing() { // Act _state.Close(); // Assert _context.ShouldQueueCommand <SetClosingStateCommand>(); }
public void WhenCloseCalled_ShouldCHangeStateToClosing() { // Act _state.Close(); // Assert _context.StateShouldBe <ConnectionClosingState>(); }