Skip to content

Commit

Permalink
fix: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-f committed Mar 16, 2024
1 parent 5020e5d commit e921938
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ namespace Plana.Composition.RenameSymbols.Tests;

public partial class RenameSymbolsPluginTest
{
[Fact]
public async Task RenameNamespacesInProjectWorkspace()
{
var container = new PlanaContainer<RenameSymbolsPlugin>("rename-namespaces");
await container.RunAsync("../../../../Plana.CLI/Plana.CLI.csproj");

var source = await container.GetSourceByPathAsync("Commands/ObfuscateCommand.cs");

// Plana.CLI.Commands
var @namespace = await source.GetFirstSyntax<FileScopedNamespaceDeclarationSyntax>();
Assert.Equal("_0xb73384b5._0x23636295._0x0a849839", @namespace.Name.ToFullString());

// Plana -> Plana


// Plana.Composition.Abstractions -> Plana.Composition.Abstractions

// Plana.CLI.Bindings ->
}

[Fact]
public async Task RenameNamespacesInSolutionWorkspace()
{
Expand All @@ -31,24 +51,4 @@ public async Task RenameNamespacesInSolutionWorkspace()
var usingToAbstractions = await root.GetSyntax<UsingDirectiveSyntax>();
Assert.Equal("_0xb73384b5._0x23636295._0x895054f0", usingToAbstractions.Name!.ToFullString());
}

[Fact]
public async Task RenameNamespacesInProjectWorkspace()
{
var container = new PlanaContainer<RenameSymbolsPlugin>("rename-namespaces");
await container.RunAsync("../../../../Plana.CLI/Plana.CLI.csproj");

var source = await container.GetSourceByPathAsync("Commands/ObfuscateCommand.cs");

// Plana.CLI.Commands
var @namespace = await source.GetFirstSyntax<FileScopedNamespaceDeclarationSyntax>();
Assert.Equal("_0xb73384b5._0x23636295._0x0a849839", @namespace.Name.ToFullString());

// Plana -> Plana


// Plana.Composition.Abstractions -> Plana.Composition.Abstractions

// Plana.CLI.Bindings ->
}
}

0 comments on commit e921938

Please sign in to comment.