@@ -122,7 +122,7 @@ public async Task SetPropertiesAsync_WithBrowserFile_ShouldSetPropertiesAsync()
122122 browserFile . SetupGet ( b => b . Name ) . Returns ( filename ) ;
123123
124124 var codec = Audiofile . AudioCodecs . First ( x => x . FileExtension == ".mp3" ) ;
125- _fileInputManager . Setup ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) ) . Returns ( codec ) ;
125+ _fileInputManager . Setup ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) ) . Returns ( codec ) ;
126126 _fileInputManager . Setup ( f => f . GetObjectUrlAsync ( inputId ) ) . ReturnsAsync ( objectUrl ) ;
127127 _jsRuntime . Setup ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . IsAny < object ? [ ] > ( ) ) ) . Returns ( new ValueTask < double > ( 90.0 ) ) ;
128128
@@ -145,7 +145,7 @@ public async Task SetPropertiesAsync_WithBrowserFile_ShouldSetPropertiesAsync()
145145 Assert . AreEqual ( objectUrl , audiofile . ObjectURL ) ;
146146 Assert . AreEqual ( TimeSpan . FromSeconds ( 90 ) , audiofile . Duration ) ;
147147 Assert . AreEqual ( 1 , audiofileChangedFired ) ;
148- _fileInputManager . Verify ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) , Times . Once ) ;
148+ _fileInputManager . Verify ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) , Times . Once ) ;
149149 _fileInputManager . Verify ( f => f . GetObjectUrlAsync ( inputId ) , Times . Once ) ;
150150 _jsRuntime . Verify ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . Is < object ? [ ] > ( o => o [ 0 ] as string == audiofile . ObjectURL ) ) , Times . Once ) ;
151151 }
@@ -162,7 +162,7 @@ public async Task SetProperty_AudiofileWithDuration_SetsLastTrackEndAlsoAsync()
162162 browserFile . SetupGet ( b => b . Name ) . Returns ( filename ) ;
163163
164164 var codec = Audiofile . AudioCodecs . First ( x => x . FileExtension == ".mp3" ) ;
165- _fileInputManager . Setup ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) ) . Returns ( codec ) ;
165+ _fileInputManager . Setup ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) ) . Returns ( codec ) ;
166166 _fileInputManager . Setup ( f => f . GetObjectUrlAsync ( inputId ) ) . ReturnsAsync ( objectUrl ) ;
167167 _jsRuntime . Setup ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . IsAny < object ? [ ] > ( ) ) ) . Returns ( new ValueTask < double > ( 90.0 ) ) ;
168168 var track1 = new Track ( )
@@ -198,7 +198,7 @@ public async Task SetProperty_AudiofileWithDuration_SetsLastTrackEndAlsoAsync()
198198 Assert . AreEqual ( TimeSpan . FromSeconds ( 90 ) , audiofile . Duration ) ;
199199 Assert . AreEqual ( TimeSpan . FromSeconds ( 90 ) , track2 . End ) ;
200200 Assert . AreEqual ( 1 , audiofileChangedFired ) ;
201- _fileInputManager . Verify ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) , Times . Once ) ;
201+ _fileInputManager . Verify ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) , Times . Once ) ;
202202 _fileInputManager . Verify ( f => f . GetObjectUrlAsync ( inputId ) , Times . Once ) ;
203203 _jsRuntime . Verify ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . Is < object ? [ ] > ( o => o [ 0 ] as string == audiofile . ObjectURL ) ) , Times . Once ) ;
204204 }
@@ -215,7 +215,7 @@ public async Task SetPropertiesAsync_PreviouslySetAudiofile_ShouldClearFirstAndS
215215 browserFile . SetupGet ( b => b . Name ) . Returns ( filename ) ;
216216
217217 var codec = Audiofile . AudioCodecs . First ( x => x . FileExtension == ".mp3" ) ;
218- _fileInputManager . Setup ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) ) . Returns ( codec ) ;
218+ _fileInputManager . Setup ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) ) . Returns ( codec ) ;
219219 _fileInputManager . Setup ( f => f . GetObjectUrlAsync ( inputId ) ) . ReturnsAsync ( objectUrl ) ;
220220 _jsRuntime . Setup ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . IsAny < object ? [ ] > ( ) ) ) . Returns ( new ValueTask < double > ( 90.0 ) ) ;
221221
@@ -240,7 +240,7 @@ public async Task SetPropertiesAsync_PreviouslySetAudiofile_ShouldClearFirstAndS
240240 Assert . AreEqual ( objectUrl , audiofile . ObjectURL ) ;
241241 Assert . AreEqual ( TimeSpan . FromSeconds ( 90 ) , audiofile . Duration ) ;
242242 Assert . AreEqual ( 1 , audiofileChangedFired ) ;
243- _fileInputManager . Verify ( f => f . GetAudioCodec ( "audio/mpeg" , filename ) , Times . Once ) ;
243+ _fileInputManager . Verify ( f => f . GetAudioCodec ( filename , "audio/mpeg" ) , Times . Once ) ;
244244 _fileInputManager . Verify ( f => f . GetObjectUrlAsync ( inputId ) , Times . Once ) ;
245245 _jsRuntime . Verify ( js => js . InvokeAsync < double > ( "getAudioDurationFromFile" , It . Is < object ? [ ] > ( o => o [ 0 ] as string == audiofile . ObjectURL ) ) , Times . Once ) ;
246246 _traceChangeManager . VerifySet ( t => t . BulkEdit = true , Times . Once ) ;
0 commit comments