public void Connection_NotOpened_CloseOk() { var connection = new MemoryDbConnection( ); Action act = () => connection.Close( ); connection.State.Should( ).Be(ConnectionState.Closed); }
public void Connection_AlreadyOpened_CloseOk() { var connection = new MemoryDbConnection( ); connection.Open( ); connection.Close( ); connection.State.Should( ).Be(ConnectionState.Closed); }