Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++
417 B
Raw Blame
// RedisAdapterDatabaseSelectionTests.swift
// Gridex

import XCTest
@testable import Gridex

final class RedisAdapterDatabaseSelectionTests: XCTestCase {

    func test_successfulSelectAdvancesTrackedCurrentDatabase() {
        var selection = RedisDatabaseSelectionState(initialDatabase: 0)

        selection.recordSuccessfulSelect(arguments: ["12"])

        XCTAssertEqual(selection.currentDatabase, 12)
    }
}