Version Used:
Visual Studio Professional 16.0.1
Steps to Reproduce:
```c#
[TestClass]
public class TestClass1
{
[ClassInitialize]
public static void ClassInitialize(TestContext context)
{
Console.WriteLine("ClassInitialize");
}
[TestMethod]
public void Test1()
{
}
}
```
Expected Behavior:
Actual Behavior:
Based on the review of #34441, the current recommended resolution for this situation is to add the following statement as the first line of your ClassInitialize method:
// context is required by MSTest but not used in this case
_ = context;
I believe the correct approach here is to mark the parameter itself as a discard parameter, using special discard names, we now include this in diagnostic's description:
Avoid unused paramereters in your code. If the parameter cannot be removed, then change its name so it starts with an underscore and is optionally followed by an integer, such as '_', '_1', '_2', etc. These are treated as special discard symbol names.
There's some nice typos in that rule and its name :p.
Thanks guys! Was wondering how to handle multiple discard parameters, that _1, _2, helps
Most helpful comment
I believe the correct approach here is to mark the parameter itself as a discard parameter, using special discard names, we now include this in diagnostic's description: