我有一个由外部 api 调用的方法,该方法期望该方法具有这些特定参数
public static bool DoSomething(
int x,
int y
) =>
true;
Run Code Online (Sandbox Code Playgroud)
Rosyln 代码分析正在报告 IDE0060 消息,如此处记录的
确切的消息是
Warning IDE0060 Remove unused parameter 'y' if it is not part of a shipped public API
Run Code Online (Sandbox Code Playgroud)
我将“x”替换为“_”
'y' 应该替换成什么?
__(双下划线)——编译器抱怨未使用 __(相同的 IDE0060 消息)
_(单下划线)——编译器抱怨参数名称 _ 是重复的(CS0100 错误)
_1(下划线后跟数字)——编译器抱怨 _1 是未使用的参数(RCS1163 消息)
我已经使用WinMergeReporter进行了一段时间的批准测试,并且它与标准的NUnit runner可执行文件配合得很好.
我正在尝试NCrunch和批准.验证失败(如预期的那样)以获得新的批准.
但是,WinMerge无法启动.
我失败了
ApprovalTests.Core.Exceptions.ApprovalMissingException:批准失败:批准文件"...\mytest.approved.txt"未找到.在ApprovalTests.Approvers.FileApprover.Fail()
我可以在NUnit运行程序中运行相同的代码并启动WinMerge.
NCrunch启动WinMergeReporter的秘诀是什么?