Skip to content

Commit

Permalink
Remove XCTest
Browse files Browse the repository at this point in the history
  • Loading branch information
orestesgaolin committed Jan 29, 2025
1 parent bb980cd commit 6c7e5db
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions example/macos/RunnerTests/RunnerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,11 @@ import Cocoa
import FlutterMacOS
import XCTest


@testable import file_picker

// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
//
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.

class RunnerTests: XCTestCase {

func testGetPlatformVersion() {
let plugin = FilePickerPlugin()

let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])

let resultExpectation = expectation(description: "result block must be called.")
plugin.handle(call) { result in
XCTAssertEqual(result as! String,
"macOS " + ProcessInfo.processInfo.operatingSystemVersionString)
resultExpectation.fulfill()
}
waitForExpectations(timeout: 1)
}

}

0 comments on commit 6c7e5db

Please sign in to comment.