@@ -9,7 +9,7 @@ final class testPlayerInitialization: XCTestCase {
9
9
func testInitializationWithCustomParameters( ) {
10
10
let playbackCommand = PlaybackCommand . pause // Example of a non-default command
11
11
let commandBinding = Binding . constant ( playbackCommand)
12
- let playerView = ExtPlayerView (
12
+ let playerView = ExtVideoPlayer (
13
13
fileName: " swipe " ,
14
14
ext: " mov " ,
15
15
gravity: . resizeAspectFill,
@@ -31,7 +31,7 @@ final class testPlayerInitialization: XCTestCase {
31
31
32
32
// Test initialization with default parameters
33
33
func testInitializationWithDefaultParameters( ) {
34
- let playerView = ExtPlayerView ( fileName: " swipe " )
34
+ let playerView = ExtVideoPlayer ( fileName: " swipe " )
35
35
36
36
XCTAssertEqual ( playerView. settings. name, " swipe " )
37
37
XCTAssertEqual ( playerView. settings. ext, " mp4 " ) // Default extension
@@ -45,7 +45,7 @@ final class testPlayerInitialization: XCTestCase {
45
45
46
46
// Test the initializer that takes a closure returning VideoSettings
47
47
func testExtPlayerView_InitializesWithValues( ) {
48
- let playerView = ExtPlayerView {
48
+ let playerView = ExtVideoPlayer {
49
49
VideoSettings {
50
50
SourceName ( " swipe " )
51
51
Ext ( " mp8 " ) // Set default extension here If not provided then mp4 is default
@@ -68,7 +68,7 @@ final class testPlayerInitialization: XCTestCase {
68
68
69
69
// Test the initializer that takes a closure returning VideoSettings
70
70
func testExtPlayerView_InitializesWithClosureProvidedSettings( ) {
71
- let playerView = ExtPlayerView {
71
+ let playerView = ExtVideoPlayer {
72
72
VideoSettings {
73
73
SourceName ( " swipe " )
74
74
Ext ( " mp8 " )
@@ -102,7 +102,7 @@ final class testPlayerInitialization: XCTestCase {
102
102
}
103
103
}
104
104
let settings = Binding . constant ( initialSettings)
105
- let playerView = ExtPlayerView ( settings: settings, command: . constant( . pause) )
105
+ let playerView = ExtVideoPlayer ( settings: settings, command: . constant( . pause) )
106
106
107
107
XCTAssertEqual ( settings. wrappedValue. name, " swipe " )
108
108
XCTAssertEqual ( settings. wrappedValue. ext, " mkv " )
0 commit comments