Reporter | Maria Pleskunina (Maria.Pleskunina) |
---|---|
Created | Apr 11, 2018 5:06:11 PM |
Updated | Apr 11, 2018 5:06:19 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Critical |
State | Submitted |
Type | Bug |
Fix version | No Fix versions |
Affected versions | 2017.3.5, 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
I can replicate it every time:
1. use a code e.g. like that:
1. use a code e.g. like that:
internal class Test
{
public void TestMethod(string a, int b, bool c)
{
if (c)
a = b.ToString();
else
a = a + b;
}
}
internal class Test1
{
public Test1()
{
var t = new Test();
t.TestMethod("", 1, true);
t.TestMethod("", 2, false);
}
}
2. Invoke Invert Boolean on “c” parameter and use a new name “d”. Ensure both checkboxes are selected.
3. The code inside of Test.TestMethod is changed correctly
4. The true and false parameter values in the invocation of the method inside of Test1.Test1 are not updated. They stay unchanged, but they should change to:
t.TestMethod( "", 1, false );
t.TestMethod( "", 2, true );
3. The code inside of Test.TestMethod is changed correctly
4. The true and false parameter values in the invocation of the method inside of Test1.Test1 are not updated. They stay unchanged, but they should change to:
t.TestMethod( "", 1, false );
t.TestMethod( "", 2, true );