Skip to content

Commit 2b378ff

Browse files
authored
Merge pull request #67020 from sharwell/port-tests
Port Rename and Formatting tests to the new framework
2 parents 7e5b47e + 7b45a1e commit 2b378ff

39 files changed

+2963
-3154
lines changed

docs/wiki/Manual-Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ When doing a test pass, copy this page and consider using these status indicator
6666
| **Typing** | :fast_forward: **General Typing**<br />- Type and paste new constructs<br />- Nothing interferes with verbatim typing | | | |
6767
| | :mag: :fast_forward: **Completion**<br />- Typing new keyword/construct names<br />- Dotting off of new constructs<br />- Matching part of the identifier is highlighted (including word prefix matches) [Visual Studio 2015 Update 1]<br />- Target type preselection [Visual Studio 2017]<br />IntelliSense filtering [Visual Studio 2017] | | | |
6868
| | :fast_forward: **Formatting** <br />- Spacing in and around new constructs<br />- Spacing options<br />- Format Document command<br /> `Tools > Options` settings should be respected | | | |
69-
| | :fast_forward: **Automatic Brace Completion** (*C# only*) <br />- Auto-insert close brace<br />- Shift+Enter commit of IntelliSense and any pending brace completion sessions (Currently C# only: https://github.com/dotnet/roslyn/issues/18065) | | | N/A |
69+
| | :fast_forward: **Automatic Brace Completion** (*C# only*) <br />- Auto-insert close brace<br />- Shift+Enter commit of IntelliSense and any pending brace completion sessions | | | N/A |
7070
| | :fast_forward: **Indentation** <br />- Typing `Enter` in an unfinished statement indents the next line | | | |
7171
| **Navigating** | :mag: :fast_forward: **Go To Definition** <br />- F12 from callsites to definition<br />- Ctrl+click [Visual Studio 2017 version 15.4] | | | |
7272
| | :fast_forward: **Go To Implementation** <br />- Ctrl+F12 to jump from virtual members to their implementations<br />- Jump from inheritable types to their implementations | | | N/A |

src/Features/Core/Portable/Rename/SymbolicRenameInfo.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,8 @@ private bool CanRenameAttributePrefix(string triggerText)
7070
// Ok, the symbol is good. Now, make sure that the trigger text starts with the prefix
7171
// of the attribute. If it does, then we can rename just the attribute prefix (otherwise
7272
// we need to rename the entire attribute).
73-
#pragma warning disable IDE0059 // Unnecessary assignment of a value - https://github.com/dotnet/roslyn/issues/45895
7473
var nameWithoutAttribute = GetWithoutAttributeSuffix(this.Symbol.Name);
75-
76-
return triggerText.StartsWith(triggerText); // TODO: Always true? What was it supposed to do?
77-
#pragma warning restore IDE0059 // Unnecessary assignment of a value
74+
return triggerText.StartsWith(nameWithoutAttribute);
7875

7976
bool IsRenamingAttributeTypeWithAttributeSuffix()
8077
{

0 commit comments

Comments
 (0)