-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ironsourceAdapter
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 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
26 changes: 26 additions & 0 deletions
26
packages/mediation/gma_mediation_ironsource/example/ios/RunnerTests/RunnerTests.swift
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,26 @@ | ||
import Flutter | ||
import UIKit | ||
import XCTest | ||
|
||
@testable import gma_mediation_ironsource | ||
|
||
// 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 = GmaMediationIronsourcePlugin() | ||
|
||
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) | ||
} | ||
|
||
} |