Skip to content

Commit 0cd8652

Browse files
committed
Fix namespaces in PowerShellEditorServices.Test
1 parent 00c4523 commit 0cd8652

11 files changed

+23
-17
lines changed

test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
1616
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1717
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
18+
using Microsoft.PowerShell.EditorServices.Test;
1819
using Microsoft.PowerShell.EditorServices.Test.Shared;
1920
using Microsoft.PowerShell.EditorServices.Utility;
2021
using Xunit;
21-
namespace Microsoft.PowerShell.EditorServices.Test.Debugging
22+
23+
namespace PowerShellEditorServices.Test.Debugging
2224
{
2325
[Trait("Category", "DebugService")]
2426
public class DebugServiceTests : IDisposable

test/PowerShellEditorServices.Test/Extensions/ExtensionCommandTests.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
using Microsoft.PowerShell.EditorServices.Services.Extension;
1414
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1515
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
16+
using Microsoft.PowerShell.EditorServices.Test;
1617
using Microsoft.PowerShell.EditorServices.Test.Shared;
1718
using Xunit;
1819

19-
namespace Microsoft.PowerShell.EditorServices.Test.Extensions
20+
namespace PowerShellEditorServices.Test.Extensions
2021
{
2122
[Trait("Category", "Extensions")]
2223
public class ExtensionCommandTests : IDisposable
@@ -59,7 +60,7 @@ public async Task CanRegisterAndInvokeCommandWithCmdletName()
5960
BufferRange.None);
6061

6162
EditorCommand commandAdded = null;
62-
extensionCommandService.CommandAdded += (object _, EditorCommand command) => commandAdded = command;
63+
extensionCommandService.CommandAdded += (_, command) => commandAdded = command;
6364

6465
const string commandName = "test.function";
6566
const string commandDisplayName = "Function extension";
@@ -95,7 +96,7 @@ public async Task CanRegisterAndInvokeCommandWithScriptBlock()
9596
BufferRange.None);
9697

9798
EditorCommand commandAdded = null;
98-
extensionCommandService.CommandAdded += (object _, EditorCommand command) => commandAdded = command;
99+
extensionCommandService.CommandAdded += (_, command) => commandAdded = command;
99100

100101
const string commandName = "test.scriptblock";
101102
const string commandDisplayName = "ScriptBlock extension";
@@ -126,7 +127,7 @@ await psesHost.ExecutePSCommandAsync(
126127
public async Task CanUpdateRegisteredCommand()
127128
{
128129
EditorCommand updatedCommand = null;
129-
extensionCommandService.CommandUpdated += (object _, EditorCommand command) => updatedCommand = command;
130+
extensionCommandService.CommandUpdated += (_, command) => updatedCommand = command;
130131

131132
const string commandName = "test.function";
132133
const string commandDisplayName = "Updated function extension";
@@ -160,7 +161,7 @@ public async Task CanUnregisterCommand()
160161
const string commandDisplayName = "ScriptBlock extension";
161162

162163
EditorCommand removedCommand = null;
163-
extensionCommandService.CommandRemoved += (object _, EditorCommand command) => removedCommand = command;
164+
extensionCommandService.CommandRemoved += (_, command) => removedCommand = command;
164165

165166
// Add the command and wait for the add event
166167
await psesHost.ExecutePSCommandAsync(

test/PowerShellEditorServices.Test/Language/CompletionHandlerTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
using Microsoft.PowerShell.EditorServices.Services;
1212
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1313
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
14+
using Microsoft.PowerShell.EditorServices.Test;
1415
using Microsoft.PowerShell.EditorServices.Test.Shared;
1516
using Microsoft.PowerShell.EditorServices.Test.Shared.Completion;
1617
using Microsoft.PowerShell.EditorServices.Utility;
1718
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
1819
using Xunit;
1920

20-
namespace Microsoft.PowerShell.EditorServices.Test.Language
21+
namespace PowerShellEditorServices.Test.Language
2122
{
2223
[Trait("Category", "Completions")]
2324
public class CompletionHandlerTests : IDisposable

test/PowerShellEditorServices.Test/Language/SemanticTokenTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
using System.Collections.Generic;
66
using System.IO;
77
using System.Management.Automation.Language;
8-
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
98
using Microsoft.PowerShell.EditorServices.Handlers;
9+
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
1010
using OmniSharp.Extensions.LanguageServer.Protocol;
1111
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
1212
using Xunit;
1313

14-
namespace Microsoft.PowerShell.EditorServices.Test.Language
14+
namespace PowerShellEditorServices.Test.Language
1515
{
1616
public class SemanticTokenTest
1717
{

test/PowerShellEditorServices.Test/Language/SymbolsServiceTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility;
1515
using Microsoft.PowerShell.EditorServices.Services.Symbols;
1616
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
17+
using Microsoft.PowerShell.EditorServices.Test;
1718
using Microsoft.PowerShell.EditorServices.Test.Shared;
1819
using Microsoft.PowerShell.EditorServices.Test.Shared.Definition;
1920
using Microsoft.PowerShell.EditorServices.Test.Shared.Occurrences;
@@ -23,7 +24,7 @@
2324
using Microsoft.PowerShell.EditorServices.Test.Shared.Symbols;
2425
using Xunit;
2526

26-
namespace Microsoft.PowerShell.EditorServices.Test.Language
27+
namespace PowerShellEditorServices.Test.Language
2728
{
2829
[Trait("Category", "Symbols")]
2930
public class SymbolsServiceTests : IDisposable

test/PowerShellEditorServices.Test/Language/TokenOperationsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
99
using Xunit;
1010

11-
namespace Microsoft.PowerShell.EditorServices.Test.Language
11+
namespace PowerShellEditorServices.Test.Language
1212
{
1313
public class TokenOperationsTests
1414
{

test/PowerShellEditorServices.Test/Services/Symbols/AstOperationsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
99
using Xunit;
1010

11-
namespace Microsoft.PowerShell.EditorServices.Test.Services.Symbols
11+
namespace PowerShellEditorServices.Test.Services.Symbols
1212
{
1313
[Trait("Category", "AstOperations")]
1414
public class AstOperationsTests

test/PowerShellEditorServices.Test/Session/PathEscapingTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Xunit;
55
using Microsoft.PowerShell.EditorServices.Utility;
66

7-
namespace Microsoft.PowerShell.EditorServices.Test.Session
7+
namespace PowerShellEditorServices.Test.Session
88
{
99
public class PathEscapingTests
1010
{

test/PowerShellEditorServices.Test/Session/PsesInternalHostTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
1212
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1313
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility;
14+
using Microsoft.PowerShell.EditorServices.Test;
1415
using Xunit;
1516

16-
namespace Microsoft.PowerShell.EditorServices.Test.Console
17+
namespace PowerShellEditorServices.Test.Session
1718
{
1819
using System.Management.Automation;
1920
using System.Management.Automation.Runspaces;

test/PowerShellEditorServices.Test/Session/ScriptFileTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using OmniSharp.Extensions.LanguageServer.Protocol;
1111
using Xunit;
1212

13-
namespace PSLanguageService.Test
13+
namespace PowerShellEditorServices.Test.Session
1414
{
1515
public class ScriptFileChangeTests
1616
{
@@ -194,7 +194,7 @@ public void FindsDotSourcedFiles()
194194
PowerShellVersion);
195195

196196
Assert.Equal(3, scriptFile.ReferencedFiles.Length);
197-
System.Console.Write("a" + scriptFile.ReferencedFiles[0]);
197+
Console.Write("a" + scriptFile.ReferencedFiles[0]);
198198
Assert.Equal(TestUtilities.NormalizePath("./athing.ps1"), scriptFile.ReferencedFiles[0]);
199199
}
200200

test/PowerShellEditorServices.Test/Session/WorkspaceTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using Microsoft.PowerShell.EditorServices.Test.Shared;
1111
using Xunit;
1212

13-
namespace Microsoft.PowerShell.EditorServices.Test.Session
13+
namespace PowerShellEditorServices.Test.Session
1414
{
1515
[Trait("Category", "Workspace")]
1616
public class WorkspaceTests

0 commit comments

Comments
 (0)