File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ public class AutoCompleteTest : BootstrapBlazorTestBase
1313 [ Fact ]
1414 public void Parameter_Ok ( )
1515 {
16+ var items = new List < string > ( ) { "test1" , "test2" } ;
1617 var cut = Context . RenderComponent < AutoComplete > ( builder =>
1718 {
18- builder . Add ( a => a . Items , new string [ ] { "test1" , "test2" } ) ;
19+ builder . Add ( a => a . Items , items ) ;
1920 builder . Add ( a => a . NoDataTip , "test3" ) ;
2021 builder . Add ( a => a . ShowNoDataTip , true ) ;
2122 builder . Add ( a => a . DisplayCount , 10 ) ;
@@ -175,7 +176,7 @@ public void Enter_Test()
175176
176177 cut . InvokeAsync ( ( ) => cut . Instance . OnKeyUp ( "t" ) ) ;
177178 cut . InvokeAsync ( ( ) => cut . Instance . OnKeyUp ( "ArrowDown" ) ) ;
178- cut . InvokeAsync ( ( ) => cut . Instance . OnKeyUp ( "Enter " ) ) ;
179+ cut . InvokeAsync ( ( ) => cut . Instance . OnKeyUp ( "NumpadEnter " ) ) ;
179180 Assert . True ( enter ) ;
180181 }
181182
You can’t perform that action at this time.
0 commit comments