stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.74k stars 177 forks source link

Math mutations are not placed when static using is used #2933

Open richardwerkman opened 1 month ago

richardwerkman commented 1 month ago

Describe the bug

Math.Floor(5.5); // mutated

using static System.Math;
Floor(5.5); // not mutated

Expected behavior I'd expect the second Floor method to be mutated as well.

Additional context We currently check the syntax tree for the class name. We should use the semantic model for this.

matiangelico commented 1 month ago

I would like to work in this issue. Could you assign it to me @richardwerkman? Thanks