Exemplo n.º 1
0
        public void Should_Set_Connection_Closed_On_Success()
        {
            using (var server = new TestNpServer())
            {
                using (var connection = new NpSqlConnection(server.ConnectionString))
                {
                    connection.Open();
                    connection.Close();

                    Assert.Equal(ConnectionState.Closed, connection.State);
                }
            }
        }