Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstringTests.cs (22)
64string testStatements = WithKey($"Thing.Consume(foo.{substring})", 0) + ';';
100string testStatements = WithKey($"Thing.Consume(foo.{substring})", 0);
140string testCode = CS.WithBody(WithKey($"thing.Consume(foo.{substring})", 0) + ';');
181string testCode = VB.WithBody(WithKey($"thing.Consume(foo.{substring})", 0));
247string testCode = CS.WithBody(WithKey($"Thing.Consume({testArguments})", 0) + ';');
280string testCode = VB.WithBody(WithKey($"Thing.Consume({testArguments})", 0));
411string testCode = CS.WithBody(WithKey(testExpression, 0) + ';');
538string testCode = VB.WithBody(WithKey(testExpression, 0));
601string testCode = CS.WithBody(WithKey(testExpression, 0) + ';');
624string testCode = VB.WithBody(WithKey(testExpression, 0));
764string testCode = CS.WithBody(WithKey(@"C.Consume(foo.Substring(1))", 0) + ';', includeUsings: false);
792string testCode = VB.WithBody(WithKey(@"C.Consume(foo.Substring(1))", 0), includeImports: false);
828string testCode = VB.WithBody(WithKey(@"C.Consume(foo.Substring(1))", 0), includeImports: false);
995CS.WithBody(WithKey(@"Consume(foo.Substring(1), foo.Substring(2), foo.Substring(3))", 0) + ';', members),
1005CS.WithBody(WithKey(@"Consume(7, foo.Substring(2), foo.Substring(3))", 0) + ';', members),
1040VB.WithBody(WithKey(@"R.Consume(foo.Substring(1), foo.Substring(2), foo.Substring(3))", 0)),
1054VB.WithBody(WithKey(@"R.Consume(7, foo.Substring(2), foo.Substring(3))", 0)),
1099CS.WithBody(WithKey(@"Consume(foo.Substring(1), foo.Substring(2))", 0) + ';', members)
1110CS.WithBody(WithKey(@"Consume(foo.Substring(1), foo.Substring(2), foo.Substring(3))", 0) + ';', members)
1142VB.WithBody(WithKey(@"R.Consume(foo.Substring(1), foo.Substring(2))", 0))
1157VB.WithBody(WithKey(@"R.Consume(foo.Substring(1), foo.Substring(2), foo.Substring(3))", 0))
1267string testCode = VB.WithBody(WithKey(testExpression, 0));