Skip to content

Commit 605e82c

Browse files
CopilotJustinGrote
andauthored
Assert edited content in open-document transition test
Agent-Logs-Url: https://github.com/PowerShell/PowerShellEditorServices/sessions/f6b6da25-a6a1-4158-9738-3a65a7e3008e Co-authored-by: JustinGrote <15258962+JustinGrote@users.noreply.github.com>
1 parent 9c3ac22 commit 605e82c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/PowerShellEditorServices.Test/Extensions/EditorOperationsServiceTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void GetWorkspaceOpenDocumentsTracksEditedAndUntitledSaveStates()
7474
EndOffset = 1,
7575
InsertString = "Set-StrictMode -Version Latest"
7676
});
77+
Assert.Contains("Set-StrictMode -Version Latest", openSaved.Contents, StringComparison.Ordinal);
7778

7879
WorkspaceOpenDocument[] editedDocuments = editorOperationsService.GetWorkspaceOpenDocuments();
7980
Assert.Contains(editedDocuments, static document => document.Path.EndsWith("open-saved.ps1") && !document.Saved);

0 commit comments

Comments
 (0)