-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Bad test input in UpgradeToRegexGeneratorAnalyzerTests #72544
Copy link
Copy link
Closed
Milestone
Description
Description
Line 48 in 671fe42
| var regex = new Regex("""", timeout: TimeSpan.FromSeconds(10)); |
Line 59 in 671fe42
| var regex = new Regex(timeout: TimeSpan.FromSeconds(10), pattern: """"); |
None of the constructors has a "timeout" parameter. I believe the test wanted to refer to this constructor, but the parameter was misspelled. I'm not sure though if the lack of options parameter is an intentional error scenario to test.
public Regex (string pattern, System.Text.RegularExpressions.RegexOptions options, TimeSpan matchTimeout);@joperezr What was the intention here?
I discovered this while enabling validation of compiler diagnostics in tests.
Reactions are currently unavailable