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
1.Create a xUnit Test Project(net7.0)
2.Replace Test1 with follwoing code
[Theory]
[InlineData(1, 1)]
public void Test1(int ,)
{
}
3.Add a space to the right of the ','
Note:
1.It isn't a regression issue, also repro on Version 17.4.4
2.Not repro for mstest(net7.0).
3.Repro VM: 10.214.92.193.
Expected result:
No error should appear.
Actual result:
Error " 'RemoveMethodParameterFix' encountered an error and has been disabled. Show Stack Trace Enable Enable and ignore future errors" shows.
Please refer to attachment "RemoveMethodParameterFix.gif".
--Logs:
System.NullReferenceException : Object reference not set to an instance of an object.
at async Xunit.Analyzers.FixProviders.RemoveMethodParameterFix.RegisterCodeFixesAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeFixes.CodeFixService.GetCodeFixesAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)
The text was updated successfully, but these errors were encountered:
Affected Branch: Rel.d17.5
Affected Build: Version 17.5.0 [33411.0.d17.5]
Affected Product Language:
Affected Build Link: Pipelines - Run rel.d17.5-33411.00 (visualstudio.com)
Steps to reproduce:
1.Create a xUnit Test Project(net7.0)
2.Replace Test1 with follwoing code
3.Add a space to the right of the ','
Note:
1.It isn't a regression issue, also repro on Version 17.4.4
2.Not repro for mstest(net7.0).
3.Repro VM: 10.214.92.193.
Expected result:
No error should appear.
Actual result:
Error " 'RemoveMethodParameterFix' encountered an error and has been disabled. Show Stack Trace Enable Enable and ignore future errors" shows.
Please refer to attachment "RemoveMethodParameterFix.gif".
--Logs:
The text was updated successfully, but these errors were encountered: