forked from juliansteenbakker/mobile_scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juliansteenbakker#812 from navaronbracke/example_a…
…pp_ios_macos_cleanup feat: RunnerTests for iOS/MacOS
- Loading branch information
Showing
11 changed files
with
471 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Flutter | ||
import UIKit | ||
import XCTest | ||
|
||
@testable import mobile_scanner | ||
|
||
// 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 { | ||
|
||
// TODO: this test was left as-is from the template, but it obviuosly fails for now. | ||
// Add new tests later. | ||
/* | ||
func testGetPlatformVersion() { | ||
let plugin = MobileScannerPlugin() | ||
|
||
let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) | ||
|
||
let resultExpectation = expectation(description: "result block must be called.") | ||
plugin.handle(call) { result in | ||
XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion) | ||
resultExpectation.fulfill() | ||
} | ||
waitForExpectations(timeout: 1) | ||
}*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.