Esempio n. 1
0
        public void Connection_NotOpened_CloseOk()
        {
            var    connection = new MemoryDbConnection( );
            Action act        = () => connection.Close(  );

            connection.State.Should( ).Be(ConnectionState.Closed);
        }
Esempio n. 2
0
        public void Connection_AlreadyOpened_CloseOk()
        {
            var connection = new MemoryDbConnection( );

            connection.Open(  );
            connection.Close(  );
            connection.State.Should( ).Be(ConnectionState.Closed);
        }