@@ -136,86 +136,6 @@ await cut.InvokeAsync(async () =>
136136 } ) ;
137137 }
138138
139- [ Fact ]
140- public void ButtonUpload_OnGetFileFormat_Ok ( )
141- {
142- var cut = Context . RenderComponent < DropUpload > ( pb =>
143- {
144- pb . Add ( a => a . LoadingIcon , "fa-loading" ) ;
145- pb . Add ( a => a . DeleteIcon , "fa-delte" ) ;
146- pb . Add ( a => a . CancelIcon , "fa-cancel" ) ;
147- pb . Add ( a => a . DownloadIcon , "fa-download" ) ;
148- pb . Add ( a => a . InvalidStatusIcon , "fa-invalid" ) ;
149- pb . Add ( a => a . ValidStatusIcon , "fa-valid" ) ;
150-
151- pb . Add ( a => a . FileIconArchive , "fa-file-text" ) ;
152- pb . Add ( a => a . FileIconExcel , "fa-file-excel" ) ;
153- pb . Add ( a => a . FileIconFile , "fa-file" ) ;
154- pb . Add ( a => a . FileIconDocx , "fa-file-word" ) ;
155- pb . Add ( a => a . FileIconPPT , "fa-file-powerpoint" ) ;
156- pb . Add ( a => a . FileIconAudio , "fa-file-audio" ) ;
157- pb . Add ( a => a . FileIconVideo , "fa-file-video" ) ;
158- pb . Add ( a => a . FileIconCode , "fa-file-code" ) ;
159- pb . Add ( a => a . FileIconPdf , "fa-file-pdf" ) ;
160- pb . Add ( a => a . FileIconImage , "fa-file-image" ) ;
161- pb . Add ( a => a . FileIconZip , "fa-file-archive" ) ;
162- pb . Add ( a => a . DefaultFileList ,
163- [
164- new ( ) { FileName = "1.csv" } ,
165- new ( ) { FileName = "1.xls" } ,
166- new ( ) { FileName = "1.xlsx" } ,
167- new ( ) { FileName = "1.doc" } ,
168- new ( ) { FileName = "1.docx" } ,
169- new ( ) { FileName = "1.dot" } ,
170- new ( ) { FileName = "1.ppt" } ,
171- new ( ) { FileName = "1.pptx" } ,
172- new ( ) { FileName = "1.wav" } ,
173- new ( ) { FileName = "1.mp3" } ,
174- new ( ) { FileName = "1.mp4" } ,
175- new ( ) { FileName = "1.mov" } ,
176- new ( ) { FileName = "1.mkv" } ,
177- new ( ) { FileName = "1.cs" } ,
178- new ( ) { FileName = "1.html" } ,
179- new ( ) { FileName = "1.vb" } ,
180- new ( ) { FileName = "1.pdf" } ,
181- new ( ) { FileName = "1.zip" } ,
182- new ( ) { FileName = "1.rar" } ,
183- new ( ) { FileName = "1.iso" } ,
184- new ( ) { FileName = "1.txt" } ,
185- new ( ) { FileName = "1.log" } ,
186- new ( ) { FileName = "1.jpg" } ,
187- new ( ) { FileName = "1.jpeg" } ,
188- new ( ) { FileName = "1.png" } ,
189- new ( ) { FileName = "1.bmp" } ,
190- new ( ) { FileName = "1.gif" } ,
191- new ( ) { FileName = "1.test" } ,
192- new ( ) { FileName = "1" }
193- ] ) ;
194-
195- } ) ;
196- cut . Contains ( "fa-file-excel" ) ;
197- cut . Contains ( "fa-file-word" ) ;
198- cut . Contains ( "fa-file-powerpoint" ) ;
199- cut . Contains ( "fa-file-audio" ) ;
200- cut . Contains ( "fa-file-video" ) ;
201- cut . Contains ( "fa-file-code" ) ;
202- cut . Contains ( "fa-file-pdf" ) ;
203- cut . Contains ( "fa-file-archive" ) ;
204- cut . Contains ( "fa-file-text" ) ;
205- cut . Contains ( "fa-file-image" ) ;
206- cut . Contains ( "fa-file-archive" ) ;
207- cut . Contains ( "fa-file" ) ;
208-
209- cut . SetParametersAndRender ( pb =>
210- {
211- pb . Add ( a => a . OnGetFileFormat , extensions =>
212- {
213- return "fa-format-test" ;
214- } ) ;
215- } ) ;
216- cut . Contains ( "fa-format-test" ) ;
217- }
218-
219139 private class MockBrowserFile ( string name = "UploadTestFile" , string contentType = "text" ) : IBrowserFile
220140 {
221141 public string Name { get ; } = name ;
0 commit comments