-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move unit tests out of demo app into package
- Loading branch information
1 parent
c24dfdf
commit 5d0f272
Showing
2 changed files
with
65 additions
and
1 deletion.
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
58 changes: 58 additions & 0 deletions
58
Sources/MuxStatsGoogleIMAPluginTests/GoogleIMAEventTests.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,58 @@ | ||
// | ||
// GoogleIMAEventTests.swift | ||
// MuxStatsGoogleIMAPlugin | ||
// | ||
|
||
import XCTest | ||
|
||
import MUXSDKStats | ||
|
||
@testable import MuxStatsGoogleIMAPlugin | ||
|
||
|
||
final class GoogleIMAEventTests: XCTestCase { | ||
|
||
override func setUpWithError() throws { | ||
// Put setup code here. This method is called before the invocation of each test method in the class. | ||
} | ||
|
||
override func tearDownWithError() throws { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. | ||
} | ||
|
||
func testMuxImaListenerInitialization() throws { | ||
|
||
let binding = try XCTUnwrap( | ||
MUXSDKPlayerBinding( | ||
name: "", | ||
andSoftware: "" | ||
) | ||
) | ||
|
||
let imaListener = MuxImaListener( | ||
playerBinding: binding | ||
) | ||
|
||
XCTAssertNotNil(imaListener) | ||
|
||
} | ||
|
||
func testMuxImaListenerInitializationOptions() throws { | ||
|
||
let binding = try XCTUnwrap( | ||
MUXSDKPlayerBinding( | ||
name: "", | ||
andSoftware: "" | ||
) | ||
) | ||
|
||
let imaListener = MuxImaListener( | ||
playerBinding: binding, | ||
options: .pictureInPicture | ||
) | ||
|
||
XCTAssertNotNil(imaListener) | ||
|
||
} | ||
|
||
} |