import XCTest
@testable import CommandLine

class CommandLineTests: XCTestCase {
    func testExample() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
        XCTAssertEqual(CommandLine().text, "Hello, World!")
    }


    static var allTests : [(String, (CommandLineTests) -> () throws -> Void)] {
        return [
            ("testExample", testExample),
        ]
    }
}

import XCTest
@testable import CommandLine

class CommandLineTests: XCTestCase {

    func testRunCommand() {
        let runExpectation = expectation(description: "Run <ls> to see files in current directory.")

        let commandLine = CommandLine()
        let command = "/usr/bin/env"
        let arguments = [ "ls" ]
        let result = commandLine.execute(command, with: arguments)

        switch result {
        case .output(let output):
            print(output)
            runExpectation.fulfill()
        case .error(let message):
            print("Error: \(message)")
        }
    }

    static var allTests : [(String, (CommandLineTests) -> () throws -> Void)] {
        return [
            ("testRunCommand", testRunCommand)
        ]
    }

}

Add test for simple running of commands
Add test for simple running of commands
