@@ -26,18 +26,36 @@ public async ValueTask DisposeAsync() { }
2626 public void can_suggest_fr_designation ( )
2727 {
2828 var given = "Designation" ;
29- var actual = _wordListFr . Suggest ( given , TestContext . Current . CancellationToken ) ;
30- actual . ShouldContain ( "Désignation" ) ;
29+ var actual = _wordListFr . Suggest (
30+ given ,
31+ new QueryOptions ( )
32+ {
33+ TimeLimitSuggestStep = TimeSpan . FromSeconds ( 1 ) ,
34+ TimeLimitCompoundCheck = TimeSpan . FromSeconds ( 1 ) ,
35+ TimeLimitCompoundSuggest = TimeSpan . FromSeconds ( 1 ) ,
36+ TimeLimitSuggestGlobal = TimeSpan . FromSeconds ( 10 ) ,
37+ } ,
38+ TestContext . Current . CancellationToken ) ;
39+ actual . ShouldContain ( "Désignation" , StringComparer . Ordinal ) ;
3140 }
3241
3342 [ Fact ]
3443 public void can_suggest_es_descripcion ( )
3544 {
3645 var given = "Descripcion" ;
37- var actual = _wordListEs . Suggest ( given , TestContext . Current . CancellationToken ) ;
46+ var actual = _wordListEs . Suggest (
47+ given ,
48+ new QueryOptions ( )
49+ {
50+ TimeLimitSuggestStep = TimeSpan . FromSeconds ( 1 ) ,
51+ TimeLimitCompoundCheck = TimeSpan . FromSeconds ( 1 ) ,
52+ TimeLimitCompoundSuggest = TimeSpan . FromSeconds ( 1 ) ,
53+ TimeLimitSuggestGlobal = TimeSpan . FromSeconds ( 10 ) ,
54+ } ,
55+ TestContext . Current . CancellationToken ) ;
3856 // I don't know why but net48 randomly changes the case of the first letter.
3957 // It's probably worth investingating further and creating a new test for that
4058 // when the issue there is understood.
41- actual . ShouldContain ( "Descripción" , StringComparer . InvariantCultureIgnoreCase ) ;
59+ actual . ShouldContain ( "Descripción" , StringComparer . Ordinal ) ;
4260 }
4361}
0 commit comments