1 write to Name
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentSymbolUIItem.cs (1)
69
Name
= documentSymbolData.Name;
12 references to Name
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (12)
DocumentOutline\DocumentOutlineTests.cs (12)
167
Assert.Equal("MyClass", nodeToSelect?.
Name
);
172
Assert.Equal("Method1", nodeToSelect?.
Name
);
177
Assert.Equal("App", nodeToSelect?.
Name
);
195
originalUIItems.Single(parent => parent.
Name
.Equals("App")).IsExpanded = false;
196
originalUIItems.Single(parent => parent.
Name
.Equals("MyClass")).Children.Single(child => child.
Name
.Equals("Method2")).IsExpanded = false;
197
originalUIItems.Single(parent => parent.
Name
.Equals("foo")).Children.Single(child => child.
Name
.Equals("r")).IsExpanded = false;
233
var selectedNode = uiItems.Single(parent => parent.
Name
.Equals("MyClass")).Children.Single(child => child.
Name
.Equals("Method2"));
243
Assert.True(symbol.
Name
.Equals("MyClass") || symbol.
Name
.Equals("Method2") ? symbol.IsExpanded : !symbol.IsExpanded);