Tests.when_closing_dbconnection.then_already_closed_connection_is_not_closed C# (CSharp) Method

then_already_closed_connection_is_not_closed() private method

private then_already_closed_connection_is_not_closed ( ) : void
return void
        public void then_already_closed_connection_is_not_closed()
        {
            var dbConnection = new DbConnectionSpy {State = ConnectionState.Closed};

            dbConnection.SafeClose();

            Assert.IsFalse(dbConnection.CloseCalled);
        }