You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix namespace matching and remove TypeKind.Error fallback in IsTestMethod
- Fix StartsWith bug: 'Xunit'.StartsWith('Xunit') would also match 'Xunit2Extensions'
etc. Now uses exact match or dotted prefix check to prevent false positive suppression.
- Remove s_commonTestAttributeNames fallback: now that DiagnosticVerifier adds real
framework assembly references to every test compilation, TypeKind.Error can no longer
occur in tests. The fallback was also risky in production — any user-defined [Test]
or [Fact] attribute in an unresolved assembly would incorrectly suppress INTL0003.
- Rename s_testFrameworkNamespaces -> _TestFrameworkNamespaces to comply with INTL0001.
0 commit comments