@@ -46,7 +46,7 @@ static void AssertOptions(string @string, char[] delimiters, StringSplitOptions
4646 {
4747 AssertMethodResults (
4848 expected : @string . Split ( delimiters , options ) ,
49- actual : @string . ToCharArray ( ) . AsSpan ( ) . SplitAny ( delimiters , options ) . ToSystemEnumerable ( ) ,
49+ actual : @string . ToCharArray ( ) . AsSpan ( ) . SplitAny ( delimiters , options ) . ToSystemEnumerable ( maxCount : 2 * @string . Length ) ,
5050 source : @string ,
5151 method : nameof ( SpanExtensions . SplitAny ) ,
5252 args : [ ( "delimiters" , delimiters ) , ( "options" , options ) ]
@@ -80,7 +80,7 @@ static void AssertOptions(string @string, char[] delimiters, int count, StringSp
8080 {
8181 AssertMethodResults (
8282 expected : @string . Split ( delimiters , count , options , countExceedingBehaviour ) ,
83- actual : @string . ToCharArray ( ) . AsSpan ( ) . SplitAny ( delimiters , count , options , countExceedingBehaviour ) . ToSystemEnumerable ( ) ,
83+ actual : @string . ToCharArray ( ) . AsSpan ( ) . SplitAny ( delimiters , count , options , countExceedingBehaviour ) . ToSystemEnumerable ( maxCount : 2 * @string . Length ) ,
8484 source : @string ,
8585 method : nameof ( SpanExtensions . SplitAny ) ,
8686 args : [ ( "delimiters" , delimiters ) , ( "count" , count ) , ( "options" , options ) , ( "countExceedingBehaviour" , countExceedingBehaviour ) ]
0 commit comments