2 writes to DestinationName
Microsoft.VisualStudio.LanguageServices (2)
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (2)
60
DestinationName
= new(PrependedNamespace + SearchText);
64
DestinationName
= foundItem;
28 references to DestinationName
Microsoft.VisualStudio.LanguageServices (9)
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (1)
45
case nameof(
DestinationName
):
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (8)
71
var typeName = viewModel.
DestinationName
.TypeName.Split('.').Last();
75
if (viewModel.
DestinationName
.IsNew)
79
viewModel.
DestinationName
.TypeName,
83
RoslynDebug.AssertNotNull(viewModel.
DestinationName
.NamedType);
86
viewModel.
DestinationName
.NamedType,
147
if (viewModel.
DestinationName
.IsNew || viewModel.
DestinationName
.IsFromHistory)
154
History.AddFirst(viewModel.
DestinationName
.NamedType!);
Microsoft.VisualStudio.LanguageServices.UnitTests (19)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (19)
97
Assert.Equal("TestClassHelpers", viewModel.
DestinationName
.TypeName)
99
Assert.Equal("TestNs.ExtraNs.TestClassHelpers", viewModel.
DestinationName
.TypeName)
181
Assert.Equal(viewModel.
DestinationName
.TypeName, "TestClassHelpers")
409
Assert.Equal("TestNs.ExtraNs.ConflictingNsClassName", viewModel.
DestinationName
.TypeName)
410
Assert.NotNull(viewModel.
DestinationName
.NamedType)
411
Assert.False(viewModel.
DestinationName
.IsNew)
416
Assert.Equal("TestNs.ConflictingClassName", viewModel.
DestinationName
.TypeName)
417
Assert.NotNull(viewModel.
DestinationName
.NamedType)
418
Assert.False(viewModel.
DestinationName
.IsNew)
452
Assert.Equal("TestClassHelpers", viewModel.
DestinationName
.TypeName)
454
Assert.Equal("TestNs.ExtraNs.TestClassHelpers", viewModel.
DestinationName
.TypeName)
522
Assert.Equal(viewModel.
DestinationName
.TypeName, "TestClassHelpers")
594
Assert.Equal(viewModel.
DestinationName
.TypeName, "TestClassHelpers")
760
Assert.Equal("TestNs.ExtraNs.ConflictingNsClassName", viewModel.
DestinationName
.TypeName)
761
Assert.NotNull(viewModel.
DestinationName
.NamedType)
762
Assert.False(viewModel.
DestinationName
.IsNew)
767
Assert.Equal("TestNs.ConflictingClassName", viewModel.
DestinationName
.TypeName)
768
Assert.NotNull(viewModel.
DestinationName
.NamedType)
769
Assert.False(viewModel.
DestinationName
.IsNew)