@@ -606,7 +606,7 @@ public async Task OpenDocument_OpensAlreadyAddedDocumentInMiscellaneousProject()
606
606
}
607
607
608
608
[ Fact ]
609
- public async Task OpenDocument_OpensAndAddsDocumentToOwnerProject ( )
609
+ public async Task OpenDocument_OpensAndAddsDocumentToMiscellaneousProject ( )
610
610
{
611
611
// Arrange
612
612
const string ProjectFilePath = "C:/path/to/project.csproj" ;
@@ -617,7 +617,7 @@ public async Task OpenDocument_OpensAndAddsDocumentToOwnerProject()
617
617
var ownerProjectKey = await _projectService . AddProjectAsync (
618
618
ProjectFilePath , IntermediateOutputPath , RazorConfiguration . Default , RootNamespace , displayName : null , DisposalToken ) ;
619
619
620
- var ownerProject = _projectManager . GetLoadedProject ( ownerProjectKey ) ;
620
+ var miscProject = await _snapshotResolver . GetMiscellaneousProjectAsync ( DisposalToken ) ;
621
621
622
622
using var listener = _projectManager . ListenToNotifications ( ) ;
623
623
@@ -626,8 +626,8 @@ public async Task OpenDocument_OpensAndAddsDocumentToOwnerProject()
626
626
627
627
// Assert
628
628
listener . AssertNotifications (
629
- x => x . DocumentAdded ( DocumentFilePath , ownerProject . Key ) ,
630
- x => x . DocumentChanged ( DocumentFilePath , ownerProject . Key ) ) ;
629
+ x => x . DocumentAdded ( DocumentFilePath , miscProject . Key ) ,
630
+ x => x . DocumentChanged ( DocumentFilePath , miscProject . Key ) ) ;
631
631
632
632
Assert . True ( _projectManager . IsDocumentOpen ( DocumentFilePath ) ) ;
633
633
}
@@ -678,7 +678,7 @@ public async Task AddDocument_AddsDocumentToOwnerProject()
678
678
}
679
679
680
680
[ Fact ]
681
- public async Task AddDocument_AddsDocumentToMiscellaneousProject ( )
681
+ public async Task AddDocumentToMiscProjectAsync_AddsDocumentToMiscellaneousProject ( )
682
682
{
683
683
// Arrange
684
684
const string DocumentFilePath = "document.cshtml" ;
@@ -688,7 +688,7 @@ public async Task AddDocument_AddsDocumentToMiscellaneousProject()
688
688
using var listener = _projectManager . ListenToNotifications ( ) ;
689
689
690
690
// Act
691
- await _projectService . AddDocumentToPotentialProjectsAsync ( DocumentFilePath , DisposalToken ) ;
691
+ await _projectService . AddDocumentToMiscProjectAsync ( DocumentFilePath , DisposalToken ) ;
692
692
693
693
// Assert
694
694
listener . AssertNotifications (
0 commit comments