Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed Apr 18, 2023
1 parent 2fc98dd commit 5e7ae18
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -131,7 +131,7 @@ class Program
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -180,7 +180,7 @@ class Program
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int, string)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -227,7 +227,7 @@ class Program
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int, string)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -274,7 +274,7 @@ class Program
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int, string)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -316,7 +316,7 @@ public Program(int i, string s = null)
}
""",
CodeActionIndex = 1,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -371,7 +371,7 @@ public Program(int i, string s, bool b) : this(i)
}
""",
CodeActionIndex = 1,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int, string)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -426,7 +426,7 @@ public Program(int i, string s, bool b = false) : this(i)
}
""",
CodeActionIndex = 3,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int, string)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -466,7 +466,7 @@ public Program(bool b, HashSet<string> s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(bool)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(bool b)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -507,7 +507,7 @@ public Program(bool b, HashSet<string> s = null)
}
""",
CodeActionIndex = 1,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(bool)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(bool b)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1195,7 +1195,7 @@ public C(int i, int j, int k)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1240,7 +1240,7 @@ public C(int i, int j, int l)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 1,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1286,7 +1286,7 @@ public C(int i, int j, int k, int l)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 2,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, int, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1331,7 +1331,7 @@ public C(int i, int j, int k)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 3,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1377,7 +1377,7 @@ public C(int i, int j, int l = 0)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 4,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1422,7 +1422,7 @@ public C(int i, int j, int k, int l = 0)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 5,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, int, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1483,7 +1483,7 @@ public C(int i, double j, int k, int l)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 1,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, double, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j, int k)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1540,7 +1540,7 @@ public C(int i, double j = 0, int l = 0)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 3,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, double)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1582,7 +1582,7 @@ public C(int l, double m, int n = 0)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1627,7 +1627,7 @@ public C(int l, double m, int n = 0, int p = 0)
TestCode = source,
FixedCode = expected,
CodeActionIndex = 2,
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int, double, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int l, double m, int n)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1945,7 +1945,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -1985,7 +1985,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2025,7 +2025,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2065,7 +2065,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2105,7 +2105,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2145,7 +2145,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2186,7 +2186,7 @@ public Program(int i, string s, string t)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2227,7 +2227,7 @@ public Program(int i, string s, string t)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2267,7 +2267,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2307,7 +2307,7 @@ public Program(int i, string s)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2347,7 +2347,7 @@ public Program(int i, string t)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2387,7 +2387,7 @@ public Program(int i, string t)
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title)
}.RunAsync();
}

Expand Down Expand Up @@ -2690,7 +2690,7 @@ public class C
}
}
""",
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "C(int, int)"), codeAction.Title)
CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "C(int original, int original2)"), codeAction.Title)
}.RunAsync();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ class Program
HashSet<string> s;|]
}
""",
string.Format(FeaturesResources.Generate_constructor_0_1, "Program", "bool, HashSet<string>"));
string.Format(FeaturesResources.Generate_constructor_0_1, "Program", "bool b, HashSet<string> s"));
}

[Fact]
Expand All @@ -762,7 +762,7 @@ public Program(bool b)
}
}
""",
string.Format(FeaturesResources.Generate_field_assigning_constructor_0_1, "Program", "bool, HashSet<string>"));
string.Format(FeaturesResources.Generate_field_assigning_constructor_0_1, "Program", "bool b, HashSet<string> s"));
}

[Fact]
Expand All @@ -783,7 +783,7 @@ public Program(bool b)
}
}
""",
string.Format(FeaturesResources.Generate_delegating_constructor_0_1, "Program", "bool, HashSet<string>"),
string.Format(FeaturesResources.Generate_delegating_constructor_0_1, "Program", "bool b, HashSet<string> s"),
index: 1);
}

Expand Down

0 comments on commit 5e7ae18

Please sign in to comment.