diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs index c5e26e6d6..df15df355 100644 --- a/AssemblyInfo.cs +++ b/AssemblyInfo.cs @@ -2,21 +2,21 @@ [assembly: InternalsVisibleTo("Fallout.Build")] [assembly: InternalsVisibleTo("Fallout.Build.Shared")] -[assembly: InternalsVisibleTo("Fallout.Build.Tests")] +[assembly: InternalsVisibleTo("Fallout.Build.Specs")] [assembly: InternalsVisibleTo("Fallout.Common")] -[assembly: InternalsVisibleTo("Fallout.Common.Tests")] +[assembly: InternalsVisibleTo("Fallout.Common.Specs")] [assembly: InternalsVisibleTo("Fallout.Cli")] -[assembly: InternalsVisibleTo("Fallout.Cli.Tests")] -[assembly: InternalsVisibleTo("Fallout.ProjectModel.Tests")] +[assembly: InternalsVisibleTo("Fallout.Cli.Specs")] +[assembly: InternalsVisibleTo("Fallout.ProjectModel.Specs")] [assembly: InternalsVisibleTo("Fallout.SourceGenerators")] [assembly: InternalsVisibleTo("Fallout.Solution")] -[assembly: InternalsVisibleTo("Fallout.Solution.Tests")] +[assembly: InternalsVisibleTo("Fallout.Solution.Specs")] [assembly: InternalsVisibleTo("Fallout.Persistence.Solution")] [assembly: InternalsVisibleTo("Fallout.Persistence.Solution.Tests")] [assembly: InternalsVisibleTo("Fallout.Tooling")] -[assembly: InternalsVisibleTo("Fallout.Tooling.Tests")] +[assembly: InternalsVisibleTo("Fallout.Tooling.Specs")] [assembly: InternalsVisibleTo("Fallout.Utilities.IO.Globbing")] -[assembly: InternalsVisibleTo("Fallout.Utilities.Tests")] +[assembly: InternalsVisibleTo("Fallout.Utilities.Specs")] // External extensions — kept as Nuke.* until those projects rebrand independently. [assembly: InternalsVisibleTo("Nuke.VisualStudio")] diff --git a/Directory.Build.props b/Directory.Build.props index 0c8259874..0fb080e79 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -22,7 +22,7 @@ README.md - + False @@ -53,7 +53,7 @@ - + diff --git a/build/Build.cs b/build/Build.cs index 823c3535f..b30325191 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -101,7 +101,7 @@ private static int ParseMajor(string informationalVersion) from framework in project.GetTargetFrameworks() select (project, framework); - IEnumerable ITest.TestProjects => Partition.GetCurrent(Solution.GetAllProjects("*.Tests")); + IEnumerable ITest.TestProjects => Partition.GetCurrent(Solution.GetAllProjects("*.Specs")); [Parameter] public int TestDegreeOfParallelism { get; } = 1; diff --git a/docs/rebrand-plan.md b/docs/rebrand-plan.md index 526cb6f23..4f6040c72 100644 --- a/docs/rebrand-plan.md +++ b/docs/rebrand-plan.md @@ -122,3 +122,11 @@ Dates land on the timeline once `R0` ships. - [#37](https://github.com/ChrisonSimtian/Fallout/issues/37) — migration guide (P5) - [#47](https://github.com/ChrisonSimtian/Fallout/issues/47) — `Nuke.` type-forwarding shim packages on GH Packages (P5) - [#48](https://github.com/ChrisonSimtian/Fallout/issues/48) — `Fallout.Migrate` CLI tool (P5, demand-driven) + +## Test naming migration sizing (2026-06-28) + +Scope estimate for renaming `Test`/`Tests` to `Spec`/`Specs`: + +- C# files affected by filename/class declaration renames: **84** +- Test project files affected (`*.Tests.csproj` → `*.Specs.csproj`): **13** +- Combined unique files in scope: **97** diff --git a/fallout.slnx b/fallout.slnx index 6b9975316..7ccf6c763 100644 --- a/fallout.slnx +++ b/fallout.slnx @@ -34,21 +34,21 @@ - - - - - - - - - - - + + + + + + + + + + + - - + + diff --git a/src/Fallout.Migrate/Fallout.Migrate.csproj b/src/Fallout.Migrate/Fallout.Migrate.csproj index 4427b3e44..7018259d3 100644 --- a/src/Fallout.Migrate/Fallout.Migrate.csproj +++ b/src/Fallout.Migrate/Fallout.Migrate.csproj @@ -11,7 +11,7 @@ - + diff --git a/tests/Consumers/README.md b/tests/Consumers/README.md index f75febc7d..1501019f7 100644 --- a/tests/Consumers/README.md +++ b/tests/Consumers/README.md @@ -46,8 +46,8 @@ The `Nuke.Consumer` doesn't pin anything (it references the in-repo shim assembl ## What's NOT tested - Actual build *execution* (see above — runtime activation is fragile) -- CI-host integration (GitHubActions, AzurePipelines, etc.) — covered by `tests/Fallout.Common.Tests/CI/` +- CI-host integration (GitHubActions, AzurePipelines, etc.) — covered by `tests/Fallout.Common.Specs/CI/` - Tool wrappers — covered by their own generated tests -- Source generator behaviour — covered by `tests/Fallout.SourceGenerators.Tests/` +- Source generator behaviour — covered by `tests/Fallout.SourceGenerators.Specs/` These consumer projects are a **sentinel for shape changes**, not a place to demo features. Don't add consumer projects covering specific subsystems — those go in their own focused tests. diff --git a/tests/Fallout.Build.Tests/BuildExecutorTest.cs b/tests/Fallout.Build.Specs/BuildExecutorSpec.cs similarity index 98% rename from tests/Fallout.Build.Tests/BuildExecutorTest.cs rename to tests/Fallout.Build.Specs/BuildExecutorSpec.cs index 98728a01b..d94807637 100644 --- a/tests/Fallout.Build.Tests/BuildExecutorTest.cs +++ b/tests/Fallout.Build.Specs/BuildExecutorSpec.cs @@ -1,19 +1,19 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.Execution; using Fallout.Common.Utilities.Collections; using Xunit; -namespace Fallout.Common.Tests.Execution; +namespace Fallout.Common.Specs.Execution; -public class BuildExecutorTest +public class BuildExecutorSpec { private ExecutableTarget A = new() { Name = nameof(A), Status = ExecutionStatus.Scheduled }; private ExecutableTarget B = new() { Name = nameof(B), Status = ExecutionStatus.Scheduled }; private ExecutableTarget C = new() { Name = nameof(C), Status = ExecutionStatus.Scheduled }; - public BuildExecutorTest() + public BuildExecutorSpec() { C.ExecutionDependencies.Add(B); B.ExecutionDependencies.Add(A); diff --git a/tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsFromSchema.verified.txt b/tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsFromSchema.verified.txt similarity index 100% rename from tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsFromSchema.verified.txt rename to tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsFromSchema.verified.txt diff --git a/tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsParameterBuild.verified.txt b/tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsParameterBuild.verified.txt similarity index 100% rename from tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsParameterBuild.verified.txt rename to tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsParameterBuild.verified.txt diff --git a/tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsTargetBuild.verified.txt b/tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsTargetBuild.verified.txt similarity index 100% rename from tests/Fallout.Build.Tests/CompletionUtilityTest.TestGetCompletionItemsTargetBuild.verified.txt rename to tests/Fallout.Build.Specs/CompletionUtilitySpec.TestGetCompletionItemsTargetBuild.verified.txt diff --git a/tests/Fallout.Build.Tests/CompletionUtilityTest.cs b/tests/Fallout.Build.Specs/CompletionUtilitySpec.cs similarity index 94% rename from tests/Fallout.Build.Tests/CompletionUtilityTest.cs rename to tests/Fallout.Build.Specs/CompletionUtilitySpec.cs index 6a60cd592..1d66d9c11 100644 --- a/tests/Fallout.Build.Tests/CompletionUtilityTest.cs +++ b/tests/Fallout.Build.Specs/CompletionUtilitySpec.cs @@ -10,15 +10,15 @@ using VerifyXunit; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class CompletionUtilityTest +public class CompletionUtilitySpec { private readonly VerifySettings _verifySettings; private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); - private static AbsolutePath TestDirectory => RootDirectory / "tests" / "Fallout.Build.Tests"; + private static AbsolutePath TestDirectory => RootDirectory / "tests" / "Fallout.Build.Specs"; - public CompletionUtilityTest() + public CompletionUtilitySpec() { _verifySettings = new VerifySettings(); _verifySettings.DontIgnoreEmptyCollections(); @@ -27,7 +27,7 @@ public CompletionUtilityTest() [Fact] public async Task TestGetCompletionItemsTargetBuild() { - var file = TestDirectory / "SchemaUtilityTest.TestTargetBuild.verified.json"; + var file = TestDirectory / "SchemaUtilitySpec.TestTargetBuild.verified.json"; var schema = JsonDocument.Parse(file.ReadAllText()); var items = CompletionUtility.GetItemsFromSchema(schema, new[] { "dev" }); await Verifier.Verify(items, _verifySettings); @@ -36,7 +36,7 @@ public async Task TestGetCompletionItemsTargetBuild() [Fact] public async Task TestGetCompletionItemsParameterBuild() { - var file = TestDirectory / "SchemaUtilityTest.TestParameterBuild.verified.json"; + var file = TestDirectory / "SchemaUtilitySpec.TestParameterBuild.verified.json"; var schema = JsonDocument.Parse(file.ReadAllText()); var items = CompletionUtility.GetItemsFromSchema(schema, []); await Verifier.Verify(items, _verifySettings); diff --git a/tests/Fallout.Build.Tests/ControlFlowTest.cs b/tests/Fallout.Build.Specs/ControlFlowSpec.cs similarity index 88% rename from tests/Fallout.Build.Tests/ControlFlowTest.cs rename to tests/Fallout.Build.Specs/ControlFlowSpec.cs index d995cbbfb..e2be64a22 100644 --- a/tests/Fallout.Build.Tests/ControlFlowTest.cs +++ b/tests/Fallout.Build.Specs/ControlFlowSpec.cs @@ -5,9 +5,9 @@ // ReSharper disable ArgumentsStyleLiteral -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ControlFlowTest +public class ControlFlowSpec { [Fact] public void Test() diff --git a/tests/Fallout.Build.Tests/DefaultInterfaceExecutionTest.cs b/tests/Fallout.Build.Specs/DefaultInterfaceExecutionSpec.cs similarity index 95% rename from tests/Fallout.Build.Tests/DefaultInterfaceExecutionTest.cs rename to tests/Fallout.Build.Specs/DefaultInterfaceExecutionSpec.cs index c2c21979a..70dc7a8a2 100644 --- a/tests/Fallout.Build.Tests/DefaultInterfaceExecutionTest.cs +++ b/tests/Fallout.Build.Specs/DefaultInterfaceExecutionSpec.cs @@ -1,13 +1,13 @@ -using System; +using System; using System.Linq; using System.Linq.Expressions; using FluentAssertions; using Fallout.Common.Execution; using Xunit; -namespace Fallout.Common.Tests.Execution; +namespace Fallout.Common.Specs.Execution; -public class DefaultInterfaceExecutionTest +public class DefaultInterfaceExecutionSpec { public static string Description = "description"; public static Action Action = () => { }; @@ -185,11 +185,11 @@ private class OverriddenDuplicatedTargetTestBuild : FalloutBuild, ITestBuild, ID private interface ITestBuild { - public string Description => DefaultInterfaceExecutionTest.Description; - public Action Action => DefaultInterfaceExecutionTest.Action; - public Expression> Requirement => DefaultInterfaceExecutionTest.Requirement; - public Func StaticCondition => DefaultInterfaceExecutionTest.StaticCondition; - public Func DynamicCondition => DefaultInterfaceExecutionTest.DynamicCondition; + public string Description => DefaultInterfaceExecutionSpec.Description; + public Action Action => DefaultInterfaceExecutionSpec.Action; + public Expression> Requirement => DefaultInterfaceExecutionSpec.Requirement; + public Func StaticCondition => DefaultInterfaceExecutionSpec.StaticCondition; + public Func DynamicCondition => DefaultInterfaceExecutionSpec.DynamicCondition; public Target A => _ => _ .Description(Description) diff --git a/tests/Fallout.Build.Tests/ExecutableTargetFactoryTest.cs b/tests/Fallout.Build.Specs/ExecutableTargetFactorySpec.cs similarity index 98% rename from tests/Fallout.Build.Tests/ExecutableTargetFactoryTest.cs rename to tests/Fallout.Build.Specs/ExecutableTargetFactorySpec.cs index 168797267..18571e260 100644 --- a/tests/Fallout.Build.Tests/ExecutableTargetFactoryTest.cs +++ b/tests/Fallout.Build.Specs/ExecutableTargetFactorySpec.cs @@ -5,9 +5,9 @@ using Fallout.Common.Execution; using Xunit; -namespace Fallout.Common.Tests.Execution; +namespace Fallout.Common.Specs.Execution; -public class ExecutableTargetFactoryTest +public class ExecutableTargetFactorySpec { [Fact] public void Test() diff --git a/tests/Fallout.Build.Tests/ExecutionPlannerTest.cs b/tests/Fallout.Build.Specs/ExecutionPlannerSpec.cs similarity index 97% rename from tests/Fallout.Build.Tests/ExecutionPlannerTest.cs rename to tests/Fallout.Build.Specs/ExecutionPlannerSpec.cs index b8e51e94f..643349d56 100644 --- a/tests/Fallout.Build.Tests/ExecutionPlannerTest.cs +++ b/tests/Fallout.Build.Specs/ExecutionPlannerSpec.cs @@ -5,9 +5,9 @@ using Fallout.Common.Execution; using Xunit; -namespace Fallout.Common.Tests.Execution; +namespace Fallout.Common.Specs.Execution; -public class ExecutionPlannerTest +public class ExecutionPlannerSpec { private ExecutableTarget A = new() { Name = nameof(A), IsDefault = true }; private ExecutableTarget B = new() { Name = nameof(B) }; diff --git a/tests/Fallout.Build.Tests/ExecutionTestsInitializer.cs b/tests/Fallout.Build.Specs/ExecutionSpecsInitializer.cs similarity index 85% rename from tests/Fallout.Build.Tests/ExecutionTestsInitializer.cs rename to tests/Fallout.Build.Specs/ExecutionSpecsInitializer.cs index 30ec8acd4..8f39f1338 100644 --- a/tests/Fallout.Build.Tests/ExecutionTestsInitializer.cs +++ b/tests/Fallout.Build.Specs/ExecutionSpecsInitializer.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.Linq; using System.Runtime.CompilerServices; using Fallout.Common.Execution; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; public static class ExecutionTestsInitializer { diff --git a/tests/Fallout.Build.Tests/Fallout.Build.Tests.csproj b/tests/Fallout.Build.Specs/Fallout.Build.Specs.csproj similarity index 100% rename from tests/Fallout.Build.Tests/Fallout.Build.Tests.csproj rename to tests/Fallout.Build.Specs/Fallout.Build.Specs.csproj diff --git a/tests/Fallout.Build.Tests/GitRepositoryTest.cs b/tests/Fallout.Build.Specs/GitRepositorySpec.cs similarity index 91% rename from tests/Fallout.Build.Tests/GitRepositoryTest.cs rename to tests/Fallout.Build.Specs/GitRepositorySpec.cs index 6fa952f64..8ad457acc 100644 --- a/tests/Fallout.Build.Tests/GitRepositoryTest.cs +++ b/tests/Fallout.Build.Specs/GitRepositorySpec.cs @@ -1,13 +1,13 @@ -using System; +using System; using System.IO; using System.Linq; using FluentAssertions; using Fallout.Common.Git; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class GitRepositoryTest +public class GitRepositorySpec { [Theory] [InlineData("https://github.com/nuke-build", "github.com", "nuke-build")] @@ -27,7 +27,7 @@ public class GitRepositoryTest [InlineData("https://git.test.org:1234/test/test", "git.test.org", "test/test")] [InlineData("git://git.test.org:1234/test/test", "git.test.org", "test/test")] [InlineData("git://git.test.org/test/test", "git.test.org", "test/test")] - public void FromUrlTest(string url, string endpoint, string identifier) + public void FromUrlSpec(string url, string endpoint, string identifier) { var repository = GitRepository.FromUrl(url); repository.Endpoint.Should().Be(endpoint); @@ -39,14 +39,14 @@ public void FromUrlTest(string url, string endpoint, string identifier) [InlineData("git@git.test.org:test", GitProtocol.Ssh)] [InlineData("ssh://git.test.org:1234/test/test", GitProtocol.Ssh)] [InlineData("git://git.test.org:1234/test/test", GitProtocol.Ssh)] - public void FromUrlProtocolTest(string url, GitProtocol protocol) + public void FromUrlProtocolSpec(string url, GitProtocol protocol) { var repository = GitRepository.FromUrl(url); repository.Protocol.Should().Be(protocol); } [Fact] - public void FromDirectoryTest() + public void FromDirectorySpec() { var repository = GitRepository.FromLocalDirectory(Directory.GetCurrentDirectory()).NotNull(); repository.Endpoint.Should().NotBeNullOrEmpty(); diff --git a/tests/Fallout.Build.Tests/HostInitializer.cs b/tests/Fallout.Build.Specs/HostInitializer.cs similarity index 90% rename from tests/Fallout.Build.Tests/HostInitializer.cs rename to tests/Fallout.Build.Specs/HostInitializer.cs index 05bfd7f54..730047626 100644 --- a/tests/Fallout.Build.Tests/HostInitializer.cs +++ b/tests/Fallout.Build.Specs/HostInitializer.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.Linq; using System.Runtime.CompilerServices; using Fallout.Common.Utilities; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; public static class HostInitializer { diff --git a/tests/Fallout.Build.Tests/ParameterServiceTest.cs b/tests/Fallout.Build.Specs/ParameterServiceSpec.cs similarity index 98% rename from tests/Fallout.Build.Tests/ParameterServiceTest.cs rename to tests/Fallout.Build.Specs/ParameterServiceSpec.cs index 92a2618cf..eb55383d3 100644 --- a/tests/Fallout.Build.Tests/ParameterServiceTest.cs +++ b/tests/Fallout.Build.Specs/ParameterServiceSpec.cs @@ -7,9 +7,9 @@ using Xunit; using static Fallout.Common.Utilities.ReflectionUtility; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ParameterServiceTest +public class ParameterServiceSpec { private ParameterService GetService(string[] commandLineArguments = null, IDictionary environmentVariables = null) { diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.TestCustomParameterAttribute.verified.json b/tests/Fallout.Build.Specs/SchemaUtilitySpec.TestCustomParameterAttribute.verified.json similarity index 100% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.TestCustomParameterAttribute.verified.json rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.TestCustomParameterAttribute.verified.json diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.TestEmptyBuild.verified.json b/tests/Fallout.Build.Specs/SchemaUtilitySpec.TestEmptyBuild.verified.json similarity index 100% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.TestEmptyBuild.verified.json rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.TestEmptyBuild.verified.json diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.TestGetBuildSchema.verified.json b/tests/Fallout.Build.Specs/SchemaUtilitySpec.TestGetBuildSchema.verified.json similarity index 100% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.TestGetBuildSchema.verified.json rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.TestGetBuildSchema.verified.json diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.TestParameterBuild.verified.json b/tests/Fallout.Build.Specs/SchemaUtilitySpec.TestParameterBuild.verified.json similarity index 100% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.TestParameterBuild.verified.json rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.TestParameterBuild.verified.json diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.TestTargetBuild.verified.json b/tests/Fallout.Build.Specs/SchemaUtilitySpec.TestTargetBuild.verified.json similarity index 100% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.TestTargetBuild.verified.json rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.TestTargetBuild.verified.json diff --git a/tests/Fallout.Build.Tests/SchemaUtilityTest.cs b/tests/Fallout.Build.Specs/SchemaUtilitySpec.cs similarity index 97% rename from tests/Fallout.Build.Tests/SchemaUtilityTest.cs rename to tests/Fallout.Build.Specs/SchemaUtilitySpec.cs index 745585966..1d9c4a24d 100644 --- a/tests/Fallout.Build.Tests/SchemaUtilityTest.cs +++ b/tests/Fallout.Build.Specs/SchemaUtilitySpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; @@ -11,9 +11,9 @@ #pragma warning disable CS0169 // Field is never used -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class SchemaUtilityTest +public class SchemaUtilitySpec { [Fact] public Task TestEmptyBuild() diff --git a/tests/Fallout.Cli.Tests/VerifyTestsInitializer.cs b/tests/Fallout.Build.Specs/VerifySpecsInitializer.cs similarity index 89% rename from tests/Fallout.Cli.Tests/VerifyTestsInitializer.cs rename to tests/Fallout.Build.Specs/VerifySpecsInitializer.cs index 3f4852254..ff5f8c9a5 100644 --- a/tests/Fallout.Cli.Tests/VerifyTestsInitializer.cs +++ b/tests/Fallout.Build.Specs/VerifySpecsInitializer.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.Linq; using System.Runtime.CompilerServices; using VerifyTests; -namespace Fallout.Cli.Tests; +namespace Fallout.Common.Specs; public static class VerifyTestsInitializer { diff --git a/tests/Fallout.Build.Tests/parameters.json b/tests/Fallout.Build.Specs/parameters.json similarity index 56% rename from tests/Fallout.Build.Tests/parameters.json rename to tests/Fallout.Build.Specs/parameters.json index 0b2ee0afb..a0b1e463a 100644 --- a/tests/Fallout.Build.Tests/parameters.json +++ b/tests/Fallout.Build.Specs/parameters.json @@ -1,5 +1,5 @@ { - "$schema": "./SchemaUtilityTest.TestTargetBuild.verified.json", + "$schema": "./SchemaUtilitySpec.TestTargetBuild.verified.json", "Verbosity": "Minimal", "Target": ["ExplicitTarget", "InheritedTarget"] } diff --git a/tests/Fallout.Cli.Tests/BuildProjectResolverTests.cs b/tests/Fallout.Cli.Specs/BuildProjectResolverSpecs.cs similarity index 98% rename from tests/Fallout.Cli.Tests/BuildProjectResolverTests.cs rename to tests/Fallout.Cli.Specs/BuildProjectResolverSpecs.cs index 21d2a120d..679c86075 100644 --- a/tests/Fallout.Cli.Tests/BuildProjectResolverTests.cs +++ b/tests/Fallout.Cli.Specs/BuildProjectResolverSpecs.cs @@ -5,9 +5,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Cli.Tests; +namespace Fallout.Cli.Specs; -public class BuildProjectResolverTests +public class BuildProjectResolverSpecs { [Fact] public void Resolve_ConventionDefault_ReturnsBuildSlashUnderscoreBuildCsproj() diff --git a/tests/Fallout.Cli.Tests/CakeConversionTests.cs b/tests/Fallout.Cli.Specs/CakeConversionSpecs.cs similarity index 90% rename from tests/Fallout.Cli.Tests/CakeConversionTests.cs rename to tests/Fallout.Cli.Specs/CakeConversionSpecs.cs index 8357034f7..9e999a6da 100644 --- a/tests/Fallout.Cli.Tests/CakeConversionTests.cs +++ b/tests/Fallout.Cli.Specs/CakeConversionSpecs.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FluentAssertions; @@ -8,9 +8,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.Cli.Tests; +namespace Fallout.Cli.Specs; -public class CakeConversionTests +public class CakeConversionSpecs { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory); @@ -37,7 +37,7 @@ public void TestPackages() packages.Should().NotContain(x => x.Id.Contains("Cake")); } - private static AbsolutePath CakeScriptsDirectory => RootDirectory / "tests" / "Fallout.Cli.Tests" / "cake-scripts"; + private static AbsolutePath CakeScriptsDirectory => RootDirectory / "tests" / "Fallout.Cli.Specs" / "cake-scripts"; public static IEnumerable CakeFileNames => CakeScriptsDirectory.GlobFiles(Program.CAKE_FILE_PATTERN).Select(x => new object[] { x }); diff --git a/tests/Fallout.Cli.Tests/Fallout.Cli.Tests.csproj b/tests/Fallout.Cli.Specs/Fallout.Cli.Specs.csproj similarity index 100% rename from tests/Fallout.Cli.Tests/Fallout.Cli.Tests.csproj rename to tests/Fallout.Cli.Specs/Fallout.Cli.Specs.csproj diff --git a/tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=1.verified.txt b/tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=1.verified.txt similarity index 100% rename from tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=1.verified.txt rename to tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=1.verified.txt diff --git a/tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=2.verified.txt b/tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=2.verified.txt similarity index 100% rename from tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=2.verified.txt rename to tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=2.verified.txt diff --git a/tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=3.verified.txt b/tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=3.verified.txt similarity index 100% rename from tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.Test_number=3.verified.txt rename to tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.Test_number=3.verified.txt diff --git a/tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.cs b/tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.cs similarity index 98% rename from tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.cs rename to tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.cs index 0663a166b..8963c84a0 100644 --- a/tests/Fallout.Cli.Tests/UpdateSolutionFileContentTests.cs +++ b/tests/Fallout.Cli.Specs/UpdateSolutionFileContentSpecs.cs @@ -5,9 +5,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.Cli.Tests; +namespace Fallout.Cli.Specs; -public class UpdateSolutionFileContentTests +public class UpdateSolutionFileContentSpecs { [Theory] [InlineData( diff --git a/tests/Fallout.Build.Tests/VerifyTestsInitializer.cs b/tests/Fallout.Cli.Specs/VerifySpecsInitializer.cs similarity index 88% rename from tests/Fallout.Build.Tests/VerifyTestsInitializer.cs rename to tests/Fallout.Cli.Specs/VerifySpecsInitializer.cs index 661d4b232..aa3f89b70 100644 --- a/tests/Fallout.Build.Tests/VerifyTestsInitializer.cs +++ b/tests/Fallout.Cli.Specs/VerifySpecsInitializer.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.Linq; using System.Runtime.CompilerServices; using VerifyTests; -namespace Fallout.Common.Tests; +namespace Fallout.Cli.Specs; public static class VerifyTestsInitializer { diff --git a/tests/Fallout.Cli.Tests/cake-scripts/default-target.cake b/tests/Fallout.Cli.Specs/cake-scripts/default-target.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/default-target.cake rename to tests/Fallout.Cli.Specs/cake-scripts/default-target.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/default-target.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/default-target.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/default-target.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/default-target.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/globbing.cake b/tests/Fallout.Cli.Specs/cake-scripts/globbing.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/globbing.cake rename to tests/Fallout.Cli.Specs/cake-scripts/globbing.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/globbing.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/globbing.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/globbing.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/globbing.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/parameters.cake b/tests/Fallout.Cli.Specs/cake-scripts/parameters.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/parameters.cake rename to tests/Fallout.Cli.Specs/cake-scripts/parameters.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/parameters.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/parameters.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/parameters.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/parameters.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/paths.cake b/tests/Fallout.Cli.Specs/cake-scripts/paths.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/paths.cake rename to tests/Fallout.Cli.Specs/cake-scripts/paths.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/paths.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/paths.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/paths.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/paths.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/references.cake b/tests/Fallout.Cli.Specs/cake-scripts/references.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/references.cake rename to tests/Fallout.Cli.Specs/cake-scripts/references.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/references.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/references.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/references.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/references.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/targets.cake b/tests/Fallout.Cli.Specs/cake-scripts/targets.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/targets.cake rename to tests/Fallout.Cli.Specs/cake-scripts/targets.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/targets.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/targets.verified.cs similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/targets.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/targets.verified.cs diff --git a/tests/Fallout.Cli.Tests/cake-scripts/tool-invocation.cake b/tests/Fallout.Cli.Specs/cake-scripts/tool-invocation.cake similarity index 100% rename from tests/Fallout.Cli.Tests/cake-scripts/tool-invocation.cake rename to tests/Fallout.Cli.Specs/cake-scripts/tool-invocation.cake diff --git a/tests/Fallout.Cli.Tests/cake-scripts/tool-invocation.verified.cs b/tests/Fallout.Cli.Specs/cake-scripts/tool-invocation.verified.cs similarity index 99% rename from tests/Fallout.Cli.Tests/cake-scripts/tool-invocation.verified.cs rename to tests/Fallout.Cli.Specs/cake-scripts/tool-invocation.verified.cs index 0368b35c4..e84fe7972 100644 --- a/tests/Fallout.Cli.Tests/cake-scripts/tool-invocation.verified.cs +++ b/tests/Fallout.Cli.Specs/cake-scripts/tool-invocation.verified.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=checkout-ref_attribute=GitHubActionsAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=checkout-ref_attribute=GitHubActionsAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=checkout-ref_attribute=GitHubActionsAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=checkout-ref_attribute=GitHubActionsAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=AppVeyorAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=AppVeyorAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=AppVeyorAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=AppVeyorAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=AzurePipelinesAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=AzurePipelinesAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=AzurePipelinesAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=AzurePipelinesAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=SpaceAutomationAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=SpaceAutomationAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=SpaceAutomationAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=SpaceAutomationAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=TeamCityAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=TeamCityAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=null_attribute=TeamCityAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=null_attribute=TeamCityAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=simple-triggers_attribute=GitHubActionsAttribute.verified.txt b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=simple-triggers_attribute=GitHubActionsAttribute.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.Test_testName=simple-triggers_attribute=GitHubActionsAttribute.verified.txt rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.Test_testName=simple-triggers_attribute=GitHubActionsAttribute.verified.txt diff --git a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.cs b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.cs similarity index 99% rename from tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.cs rename to tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.cs index ce164bfb5..cf0a3ed45 100644 --- a/tests/Fallout.Common.Tests/CI/ConfigurationGenerationTest.cs +++ b/tests/Fallout.Common.Specs/CI/ConfigurationGenerationSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; @@ -15,9 +15,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; -public class ConfigurationGenerationTest +public class ConfigurationGenerationSpec { [Theory] [MemberData(nameof(GetAttributes))] diff --git a/tests/Fallout.Common.Tests/CI/ITestConfigurationGenerator.cs b/tests/Fallout.Common.Specs/CI/ISpecConfigurationGenerator.cs similarity index 84% rename from tests/Fallout.Common.Tests/CI/ITestConfigurationGenerator.cs rename to tests/Fallout.Common.Specs/CI/ISpecConfigurationGenerator.cs index 547000106..3663db91a 100644 --- a/tests/Fallout.Common.Tests/CI/ITestConfigurationGenerator.cs +++ b/tests/Fallout.Common.Specs/CI/ISpecConfigurationGenerator.cs @@ -3,7 +3,7 @@ using System.Linq; using Fallout.Common.CI; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public interface ITestConfigurationGenerator : IConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CI/TestAppVeyorAttribute.cs b/tests/Fallout.Common.Specs/CI/SpecAppVeyorAttribute.cs similarity index 92% rename from tests/Fallout.Common.Tests/CI/TestAppVeyorAttribute.cs rename to tests/Fallout.Common.Specs/CI/SpecAppVeyorAttribute.cs index 4f85207a9..ea9e16d19 100644 --- a/tests/Fallout.Common.Tests/CI/TestAppVeyorAttribute.cs +++ b/tests/Fallout.Common.Specs/CI/SpecAppVeyorAttribute.cs @@ -3,7 +3,7 @@ using System.Linq; using Fallout.Common.CI.AppVeyor; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public class TestAppVeyorAttribute : AppVeyorAttribute, ITestConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CI/TestAzurePipelinesAttribute.cs b/tests/Fallout.Common.Specs/CI/SpecAzurePipelinesAttribute.cs similarity index 93% rename from tests/Fallout.Common.Tests/CI/TestAzurePipelinesAttribute.cs rename to tests/Fallout.Common.Specs/CI/SpecAzurePipelinesAttribute.cs index be6589670..45829980c 100644 --- a/tests/Fallout.Common.Tests/CI/TestAzurePipelinesAttribute.cs +++ b/tests/Fallout.Common.Specs/CI/SpecAzurePipelinesAttribute.cs @@ -3,7 +3,7 @@ using System.Linq; using Fallout.Common.CI.AzurePipelines; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public class TestAzurePipelinesAttribute : AzurePipelinesAttribute, ITestConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CI/TestGitHubActionsAttribute.cs b/tests/Fallout.Common.Specs/CI/SpecGitHubActionsAttribute.cs similarity index 93% rename from tests/Fallout.Common.Tests/CI/TestGitHubActionsAttribute.cs rename to tests/Fallout.Common.Specs/CI/SpecGitHubActionsAttribute.cs index b699aa89f..3f8c633bc 100644 --- a/tests/Fallout.Common.Tests/CI/TestGitHubActionsAttribute.cs +++ b/tests/Fallout.Common.Specs/CI/SpecGitHubActionsAttribute.cs @@ -3,7 +3,7 @@ using System.Linq; using Fallout.Common.CI.GitHubActions; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public class TestGitHubActionsAttribute : GitHubActionsAttribute, ITestConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CI/TestSpaceAutomationAttribute.cs b/tests/Fallout.Common.Specs/CI/SpecSpaceAutomationAttribute.cs similarity index 89% rename from tests/Fallout.Common.Tests/CI/TestSpaceAutomationAttribute.cs rename to tests/Fallout.Common.Specs/CI/SpecSpaceAutomationAttribute.cs index 6b76fac5b..497526893 100644 --- a/tests/Fallout.Common.Tests/CI/TestSpaceAutomationAttribute.cs +++ b/tests/Fallout.Common.Specs/CI/SpecSpaceAutomationAttribute.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.IO; using System.Linq; using Fallout.Common.CI.SpaceAutomation; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public class TestSpaceAutomationAttribute : SpaceAutomationAttribute, ITestConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CI/TestTeamCityAttribute.cs b/tests/Fallout.Common.Specs/CI/SpecTeamCityAttribute.cs similarity index 89% rename from tests/Fallout.Common.Tests/CI/TestTeamCityAttribute.cs rename to tests/Fallout.Common.Specs/CI/SpecTeamCityAttribute.cs index ea166fec0..f8d7e11f5 100644 --- a/tests/Fallout.Common.Tests/CI/TestTeamCityAttribute.cs +++ b/tests/Fallout.Common.Specs/CI/SpecTeamCityAttribute.cs @@ -3,7 +3,7 @@ using System.Linq; using Fallout.Common.CI.TeamCity; -namespace Fallout.Common.Tests.CI; +namespace Fallout.Common.Specs.CI; public class TestTeamCityAttribute : TeamCityAttribute, ITestConfigurationGenerator { diff --git a/tests/Fallout.Common.Tests/CITest.cs b/tests/Fallout.Common.Specs/CISpec.cs similarity index 98% rename from tests/Fallout.Common.Tests/CITest.cs rename to tests/Fallout.Common.Specs/CISpec.cs index ac1a79ab3..73e5a550e 100644 --- a/tests/Fallout.Common.Tests/CITest.cs +++ b/tests/Fallout.Common.Specs/CISpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; @@ -14,9 +14,9 @@ using Fallout.Common.CI.TravisCI; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class CITest +public class CISpec { [CITheory(typeof(AppVeyor))] [MemberData(nameof(Properties), typeof(AppVeyor))] diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_1.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_2.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_3.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_4.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5_section_0.2.3.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5_section_0.2.3.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5_section_0.2.3.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_1.0.0_variant_5_section_0.2.3.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_invalid_variant_1.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_invalid_variant_1.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_invalid_variant_1.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_invalid_variant_1.md diff --git a/tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_invalid_variant_2.md b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_invalid_variant_2.md similarity index 100% rename from tests/Fallout.Common.Tests/ChangelogReferenceFiles/changelog_reference_invalid_variant_2.md rename to tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_invalid_variant_2.md diff --git a/tests/Fallout.Common.Tests/ChangelogTasksTest.cs b/tests/Fallout.Common.Specs/ChangelogTasksSpec.cs similarity index 96% rename from tests/Fallout.Common.Tests/ChangelogTasksTest.cs rename to tests/Fallout.Common.Specs/ChangelogTasksSpec.cs index 07e7e718a..9ba25f47d 100644 --- a/tests/Fallout.Common.Tests/ChangelogTasksTest.cs +++ b/tests/Fallout.Common.Specs/ChangelogTasksSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -10,13 +10,13 @@ // ReSharper disable ReturnValueOfPureMethodIsNotUsed -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ChangelogTasksTest +public class ChangelogTasksSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); - private static AbsolutePath PathToChangelogReferenceFiles => RootDirectory / "tests" / "Fallout.Common.Tests" / "ChangelogReferenceFiles"; + private static AbsolutePath PathToChangelogReferenceFiles => RootDirectory / "tests" / "Fallout.Common.Specs" / "ChangelogReferenceFiles"; [Theory] [MemberData(nameof(AllChangelogReference_1_0_0_Files))] diff --git a/tests/Fallout.Common.Tests/Fallout.Common.Tests.csproj b/tests/Fallout.Common.Specs/Fallout.Common.Specs.csproj similarity index 100% rename from tests/Fallout.Common.Tests/Fallout.Common.Tests.csproj rename to tests/Fallout.Common.Specs/Fallout.Common.Specs.csproj diff --git a/tests/Fallout.Common.Tests/GitHubTasksTest.cs b/tests/Fallout.Common.Specs/GitHubTasksSpec.cs similarity index 92% rename from tests/Fallout.Common.Tests/GitHubTasksTest.cs rename to tests/Fallout.Common.Specs/GitHubTasksSpec.cs index 1b13ea081..8d2496282 100644 --- a/tests/Fallout.Common.Tests/GitHubTasksTest.cs +++ b/tests/Fallout.Common.Specs/GitHubTasksSpec.cs @@ -6,14 +6,14 @@ using Fallout.Common.Tools.GitHub; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class GitHubTasksTest +public class GitHubTasksSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); [Fact] - public void GitHubRepositoryFromLocalDirectoryTest() + public void GitHubRepositoryFromLocalDirectorySpec() { var repository = GitRepository.FromLocalDirectory(RootDirectory).NotNull(); if (!repository.IsGitHubRepository()) @@ -39,7 +39,7 @@ public void GitHubRepositoryFromLocalDirectoryTest() } [Fact] - public void GitHubRepositoryFromUrlTest() + public void GitHubRepositoryFromUrlSpec() { var repository = GitRepository.FromUrl("https://github.com/nuke-build/nuke", "dev"); diff --git a/tests/Fallout.Common.Tests/GitVersionParseTest.cs b/tests/Fallout.Common.Specs/GitVersionParseSpec.cs similarity index 97% rename from tests/Fallout.Common.Tests/GitVersionParseTest.cs rename to tests/Fallout.Common.Specs/GitVersionParseSpec.cs index d78fc964a..ae65f3c11 100644 --- a/tests/Fallout.Common.Tests/GitVersionParseTest.cs +++ b/tests/Fallout.Common.Specs/GitVersionParseSpec.cs @@ -8,13 +8,13 @@ using Fallout.Common.Utilities; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; /// /// Regression tests for GitVersion JSON deserialisation (issue #218). /// GitVersion 6.x emits several fields as bare JSON numbers instead of quoted strings. /// -public class GitVersionParseTest +public class GitVersionParseSpec { // Exact payload from issue #218 — BuildMetaData, CommitsSinceVersionSource, // PreReleaseNumber and WeightedPreReleaseNumber are numbers, not strings. diff --git a/tests/Fallout.Common.Tests/SettingsTest.TestDiscord.verified.txt b/tests/Fallout.Common.Specs/SettingsSpec.TestDiscord.verified.txt similarity index 100% rename from tests/Fallout.Common.Tests/SettingsTest.TestDiscord.verified.txt rename to tests/Fallout.Common.Specs/SettingsSpec.TestDiscord.verified.txt diff --git a/tests/Fallout.Common.Tests/SettingsTest.cs b/tests/Fallout.Common.Specs/SettingsSpec.cs similarity index 99% rename from tests/Fallout.Common.Tests/SettingsTest.cs rename to tests/Fallout.Common.Specs/SettingsSpec.cs index 1bdff94ab..ea714e69e 100644 --- a/tests/Fallout.Common.Tests/SettingsTest.cs +++ b/tests/Fallout.Common.Specs/SettingsSpec.cs @@ -18,9 +18,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class SettingsTest +public class SettingsSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(Directory.GetCurrentDirectory()).NotNull(); diff --git a/tests/Fallout.Common.Tests/VerifyTestsInitializer.cs b/tests/Fallout.Common.Specs/VerifySpecsInitializer.cs similarity index 88% rename from tests/Fallout.Common.Tests/VerifyTestsInitializer.cs rename to tests/Fallout.Common.Specs/VerifySpecsInitializer.cs index 661d4b232..ff5f8c9a5 100644 --- a/tests/Fallout.Common.Tests/VerifyTestsInitializer.cs +++ b/tests/Fallout.Common.Specs/VerifySpecsInitializer.cs @@ -1,9 +1,9 @@ -using System; +using System; using System.Linq; using System.Runtime.CompilerServices; using VerifyTests; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; public static class VerifyTestsInitializer { diff --git a/tests/Fallout.Core.Tests/ArchitectureFitnessTests.cs b/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs similarity index 97% rename from tests/Fallout.Core.Tests/ArchitectureFitnessTests.cs rename to tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs index d4aed0960..0c00c7f8f 100644 --- a/tests/Fallout.Core.Tests/ArchitectureFitnessTests.cs +++ b/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs @@ -5,14 +5,14 @@ using NetArchTest.Rules; using Xunit; -namespace Fallout.Core.Tests; +namespace Fallout.Core.Specs; /// /// The acceptance criterion for issue #88: Fallout.Core is the pure reactor core. It depends on /// nothing in the repo and never touches I/O, processes, the console, or logging. The broader /// architecture-fitness suite lands in #95; these two tests guard the Core invariant specifically. /// -public class ArchitectureFitnessTests +public class ArchitectureFitnessSpecs { private static readonly Assembly CoreAssembly = typeof(TopoSort).Assembly; diff --git a/tests/Fallout.Core.Tests/Fallout.Core.Tests.csproj b/tests/Fallout.Core.Specs/Fallout.Core.Specs.csproj similarity index 100% rename from tests/Fallout.Core.Tests/Fallout.Core.Tests.csproj rename to tests/Fallout.Core.Specs/Fallout.Core.Specs.csproj diff --git a/tests/Fallout.Core.Tests/TopoSortTests.cs b/tests/Fallout.Core.Specs/TopoSortSpecs.cs similarity index 97% rename from tests/Fallout.Core.Tests/TopoSortTests.cs rename to tests/Fallout.Core.Specs/TopoSortSpecs.cs index bbc93cd96..272f1936f 100644 --- a/tests/Fallout.Core.Tests/TopoSortTests.cs +++ b/tests/Fallout.Core.Specs/TopoSortSpecs.cs @@ -4,9 +4,9 @@ using Fallout.Core.Planning; using Xunit; -namespace Fallout.Core.Tests; +namespace Fallout.Core.Specs; -public class TopoSortTests +public class TopoSortSpecs { // Edges read as "depends on". Anything not listed has no dependencies. private static PlanResult Order( diff --git a/tests/Fallout.Migrate.Analyzers.Tests/AnalyzerTestHarness.cs b/tests/Fallout.Migrate.Analyzers.Specs/AnalyzerSpecHarness.cs similarity index 86% rename from tests/Fallout.Migrate.Analyzers.Tests/AnalyzerTestHarness.cs rename to tests/Fallout.Migrate.Analyzers.Specs/AnalyzerSpecHarness.cs index a91a0b964..c5cfe3fec 100644 --- a/tests/Fallout.Migrate.Analyzers.Tests/AnalyzerTestHarness.cs +++ b/tests/Fallout.Migrate.Analyzers.Specs/AnalyzerSpecHarness.cs @@ -3,7 +3,7 @@ using Microsoft.CodeAnalysis.CSharp.Testing; using Microsoft.CodeAnalysis.Testing; -namespace Fallout.Migrate.Analyzers.Tests; +namespace Fallout.Migrate.Analyzers.Specs; // Convenience aliases so the test bodies stay focused on what they assert, // not on plumbing. @@ -23,17 +23,17 @@ internal static class AnalyzerTestHarness MetadataReference.CreateFromFile(typeof(global::Fallout.Common.Utilities.CompletionUtility).Assembly.Location); } -internal sealed class AnalyzerTest : CSharpAnalyzerTest +internal sealed class AnalyzerSpec : CSharpAnalyzerTest { - public AnalyzerTest() + public AnalyzerSpec() { TestState.AdditionalReferences.Add(AnalyzerTestHarness.FalloutMarkerReference); } } -internal sealed class CodeFixTest : CSharpCodeFixTest +internal sealed class CodeFixSpec : CSharpCodeFixTest { - public CodeFixTest() + public CodeFixSpec() { TestState.AdditionalReferences.Add(AnalyzerTestHarness.FalloutMarkerReference); FixedState.AdditionalReferences.Add(AnalyzerTestHarness.FalloutMarkerReference); diff --git a/tests/Fallout.Migrate.Analyzers.Tests/Fallout.Migrate.Analyzers.Tests.csproj b/tests/Fallout.Migrate.Analyzers.Specs/Fallout.Migrate.Analyzers.Specs.csproj similarity index 100% rename from tests/Fallout.Migrate.Analyzers.Tests/Fallout.Migrate.Analyzers.Tests.csproj rename to tests/Fallout.Migrate.Analyzers.Specs/Fallout.Migrate.Analyzers.Specs.csproj diff --git a/tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationAnalyzerTests.cs b/tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationAnalyzerSpecs.cs similarity index 87% rename from tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationAnalyzerTests.cs rename to tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationAnalyzerSpecs.cs index f2053e835..2036c6d2a 100644 --- a/tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationAnalyzerTests.cs +++ b/tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationAnalyzerSpecs.cs @@ -1,9 +1,9 @@ using System.Threading.Tasks; using Xunit; -namespace Fallout.Migrate.Analyzers.Tests; +namespace Fallout.Migrate.Analyzers.Specs; -public class NukeMigrationAnalyzerTests +public class NukeMigrationAnalyzerSpecs { // Stubs so the test compilations actually resolve the legacy Nuke.* names. // Without these the compiler emits CS0246 alongside FALLOUT004 and the @@ -28,7 +28,7 @@ namespace X { class C { } } {{LegacyNukeStub}} """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } [Fact] @@ -40,7 +40,7 @@ namespace X { class C { } } {{LegacyNukeStub}} """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } [Fact] @@ -60,7 +60,7 @@ void M() {{LegacyNukeStub}} """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } [Fact] @@ -74,7 +74,7 @@ class NukeBuild { } } """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } [Fact] @@ -88,7 +88,7 @@ interface INukeBuild { } } """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } [Fact] @@ -128,6 +128,6 @@ void M() } """; - await new AnalyzerTest { TestCode = source }.RunAsync(); + await new AnalyzerSpec { TestCode = source }.RunAsync(); } } diff --git a/tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationCodeFixTests.cs b/tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationCodeFixSpecs.cs similarity index 90% rename from tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationCodeFixTests.cs rename to tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationCodeFixSpecs.cs index 7f652bc92..c38d22878 100644 --- a/tests/Fallout.Migrate.Analyzers.Tests/NukeMigrationCodeFixTests.cs +++ b/tests/Fallout.Migrate.Analyzers.Specs/NukeMigrationCodeFixSpecs.cs @@ -1,9 +1,9 @@ using System.Threading.Tasks; using Xunit; -namespace Fallout.Migrate.Analyzers.Tests; +namespace Fallout.Migrate.Analyzers.Specs; -public class NukeMigrationCodeFixTests +public class NukeMigrationCodeFixSpecs { // Both legacy and target namespaces need to exist in the test compilation — // legacy for the pre-fix source, target for the fixed source — otherwise the @@ -47,7 +47,7 @@ namespace X { class C { } } {{TargetFalloutStub}} """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } [Fact] @@ -67,7 +67,7 @@ namespace X { class C { } } {{TargetFalloutStub}} """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } [Fact] @@ -97,7 +97,7 @@ class C {{TargetFalloutStub}} """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } [Fact] @@ -121,7 +121,7 @@ class FalloutBuild { } } """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } [Fact] @@ -145,7 +145,7 @@ interface IFalloutBuild { } } """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } [Fact] @@ -167,6 +167,6 @@ namespace X { class C { } } {{TargetFalloutStub}} """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } } diff --git a/tests/Fallout.Migrate.Analyzers.Tests/RealWorldSmokeTests.cs b/tests/Fallout.Migrate.Analyzers.Specs/RealWorldSmokeSpecs.cs similarity index 95% rename from tests/Fallout.Migrate.Analyzers.Tests/RealWorldSmokeTests.cs rename to tests/Fallout.Migrate.Analyzers.Specs/RealWorldSmokeSpecs.cs index 3854bc72f..5f2882dc2 100644 --- a/tests/Fallout.Migrate.Analyzers.Tests/RealWorldSmokeTests.cs +++ b/tests/Fallout.Migrate.Analyzers.Specs/RealWorldSmokeSpecs.cs @@ -1,14 +1,14 @@ using System.Threading.Tasks; using Xunit; -namespace Fallout.Migrate.Analyzers.Tests; +namespace Fallout.Migrate.Analyzers.Specs; // End-to-end smoke test: the snippet below is distilled from a real pre-rename // version of this repo's own build/Build.cs (commit 6967a094^, before #54 // renamed Nuke.* → Fallout.*). Exercises the analyzer + codefix on the kinds // of patterns an actual NUKE consumer project contains, not just synthetic // minimal cases. If this test breaks, real consumer migrations break too. -public class RealWorldSmokeTests +public class RealWorldSmokeSpecs { // Stand-in declarations so the test compilation can resolve the legacy // Nuke.* namespace structure used in pre-rename consumer code. @@ -77,6 +77,6 @@ partial class Build : FalloutBuild, Fallout.Components.IPack {{TargetFalloutStub}} """; - await new CodeFixTest { TestCode = source, FixedCode = fixedSource }.RunAsync(); + await new CodeFixSpec { TestCode = source, FixedCode = fixedSource }.RunAsync(); } } diff --git a/tests/Fallout.Migrate.Tests/CodeRewriterTest.cs b/tests/Fallout.Migrate.Specs/CodeRewriterSpec.cs similarity index 97% rename from tests/Fallout.Migrate.Tests/CodeRewriterTest.cs rename to tests/Fallout.Migrate.Specs/CodeRewriterSpec.cs index 0047ad28a..55329dc0e 100644 --- a/tests/Fallout.Migrate.Tests/CodeRewriterTest.cs +++ b/tests/Fallout.Migrate.Specs/CodeRewriterSpec.cs @@ -1,9 +1,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Migrate.Tests; +namespace Fallout.Migrate.Specs; -public class CodeRewriterTest +public class CodeRewriterSpec { [Fact] public void RewritesUsingDirective() diff --git a/tests/Fallout.Migrate.Tests/CsprojRewriterTest.cs b/tests/Fallout.Migrate.Specs/CsprojRewriterSpec.cs similarity index 99% rename from tests/Fallout.Migrate.Tests/CsprojRewriterTest.cs rename to tests/Fallout.Migrate.Specs/CsprojRewriterSpec.cs index 6e1501768..68d032495 100644 --- a/tests/Fallout.Migrate.Tests/CsprojRewriterTest.cs +++ b/tests/Fallout.Migrate.Specs/CsprojRewriterSpec.cs @@ -1,9 +1,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Migrate.Tests; +namespace Fallout.Migrate.Specs; -public class CsprojRewriterTest +public class CsprojRewriterSpec { private const string TestFalloutVersion = "11.0.0"; diff --git a/tests/Fallout.Migrate.Tests/Fallout.Migrate.Tests.csproj b/tests/Fallout.Migrate.Specs/Fallout.Migrate.Specs.csproj similarity index 100% rename from tests/Fallout.Migrate.Tests/Fallout.Migrate.Tests.csproj rename to tests/Fallout.Migrate.Specs/Fallout.Migrate.Specs.csproj diff --git a/tests/Fallout.Migrate.Tests/MigrationIntegrationTest.cs b/tests/Fallout.Migrate.Specs/MigrationIntegrationSpec.cs similarity index 98% rename from tests/Fallout.Migrate.Tests/MigrationIntegrationTest.cs rename to tests/Fallout.Migrate.Specs/MigrationIntegrationSpec.cs index 48d4fa153..4041e487a 100644 --- a/tests/Fallout.Migrate.Tests/MigrationIntegrationTest.cs +++ b/tests/Fallout.Migrate.Specs/MigrationIntegrationSpec.cs @@ -5,9 +5,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Migrate.Tests; +namespace Fallout.Migrate.Specs; -public class MigrationIntegrationTest +public class MigrationIntegrationSpec { [Fact] public void MigratesVanillaConsumerRepo() diff --git a/tests/Fallout.Migrate.Tests/ScriptRewriterTest.cs b/tests/Fallout.Migrate.Specs/ScriptRewriterSpec.cs similarity index 95% rename from tests/Fallout.Migrate.Tests/ScriptRewriterTest.cs rename to tests/Fallout.Migrate.Specs/ScriptRewriterSpec.cs index 98bb64ddc..3f78be5d3 100644 --- a/tests/Fallout.Migrate.Tests/ScriptRewriterTest.cs +++ b/tests/Fallout.Migrate.Specs/ScriptRewriterSpec.cs @@ -1,9 +1,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Migrate.Tests; +namespace Fallout.Migrate.Specs; -public class ScriptRewriterTest +public class ScriptRewriterSpec { [Fact] public void RewritesDotnetNukeInvocations() diff --git a/tests/Fallout.ProjectModel.Tests/Fallout.ProjectModel.Tests.csproj b/tests/Fallout.ProjectModel.Specs/Fallout.ProjectModel.Specs.csproj similarity index 100% rename from tests/Fallout.ProjectModel.Tests/Fallout.ProjectModel.Tests.csproj rename to tests/Fallout.ProjectModel.Specs/Fallout.ProjectModel.Specs.csproj diff --git a/tests/Fallout.ProjectModel.Tests/ModuleInit.cs b/tests/Fallout.ProjectModel.Specs/ModuleInit.cs similarity index 96% rename from tests/Fallout.ProjectModel.Tests/ModuleInit.cs rename to tests/Fallout.ProjectModel.Specs/ModuleInit.cs index b0e969fe6..ad0952480 100644 --- a/tests/Fallout.ProjectModel.Tests/ModuleInit.cs +++ b/tests/Fallout.ProjectModel.Specs/ModuleInit.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; using Fallout.Solutions; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; internal static class ModuleInit { diff --git a/tests/Fallout.ProjectModel.Tests/ProjectModelTest.cs b/tests/Fallout.ProjectModel.Specs/ProjectModelSpec.cs similarity index 90% rename from tests/Fallout.ProjectModel.Tests/ProjectModelTest.cs rename to tests/Fallout.ProjectModel.Specs/ProjectModelSpec.cs index a769b2fe0..d393ffb34 100644 --- a/tests/Fallout.ProjectModel.Tests/ProjectModelTest.cs +++ b/tests/Fallout.ProjectModel.Specs/ProjectModelSpec.cs @@ -1,20 +1,20 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.IO; using Fallout.Solutions; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ProjectModelTest +public class ProjectModelSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); private static AbsolutePath SolutionFile => RootDirectory / "fallout.slnx"; [Fact] - public void ProjectTest() + public void ProjectSpec() { var solution = SolutionFile.ReadSolution(); var project = solution.Projects.Single(x => x.Name == "Fallout.ProjectModel"); @@ -29,7 +29,7 @@ public void ProjectTest() } [Fact] - public void MSBuildProjectTest() + public void MSBuildProjectSpec() { var solution = SolutionFile.ReadSolution(); var project = solution.Projects.Single(x => x.Name == "Fallout.ProjectModel"); diff --git a/tests/Fallout.Solution.Tests/Fallout.Solution.Tests.csproj b/tests/Fallout.Solution.Specs/Fallout.Solution.Specs.csproj similarity index 100% rename from tests/Fallout.Solution.Tests/Fallout.Solution.Tests.csproj rename to tests/Fallout.Solution.Specs/Fallout.Solution.Specs.csproj diff --git a/tests/Fallout.Solution.Tests/SolutionTest.cs b/tests/Fallout.Solution.Specs/SolutionSpec.cs similarity index 78% rename from tests/Fallout.Solution.Tests/SolutionTest.cs rename to tests/Fallout.Solution.Specs/SolutionSpec.cs index b1530e0a0..e590c32f8 100644 --- a/tests/Fallout.Solution.Tests/SolutionTest.cs +++ b/tests/Fallout.Solution.Specs/SolutionSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.IO; @@ -6,16 +6,16 @@ using Fallout.Common.Utilities; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class SolutionModelTest +public class SolutionModelSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); private static AbsolutePath SolutionFile => RootDirectory / "fallout.slnx"; [Fact] - public void SolutionTest() + public void SolutionSpec() { var solution = SolutionFile.ReadSolution(); @@ -28,10 +28,10 @@ public void SolutionTest() } [Fact] - public void SolutionGetProjectsTest() + public void SolutionGetProjectsSpec() { var solution = SolutionFile.ReadSolution(); - solution.GetAllProjects("*.Tests").Should().HaveCountGreaterOrEqualTo(2); + solution.GetAllProjects("*.Specs").Should().HaveCountGreaterOrEqualTo(2); } } diff --git a/tests/Fallout.SourceGenerators.Tests/Fallout.SourceGenerators.Tests.csproj b/tests/Fallout.SourceGenerators.Specs/Fallout.SourceGenerators.Specs.csproj similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/Fallout.SourceGenerators.Tests.csproj rename to tests/Fallout.SourceGenerators.Specs/Fallout.SourceGenerators.Specs.csproj diff --git a/tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.Test#Solution.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.Test#Solution.g.verified.cs similarity index 70% rename from tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.Test#Solution.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.Test#Solution.g.verified.cs index 8b2c5d544..0fd6468c2 100644 --- a/tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.Test#Solution.g.verified.cs +++ b/tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.Test#Solution.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: Solution.g.cs +//HintName: Solution.g.cs // using Fallout.Persistence.Solution.Model; @@ -11,44 +11,44 @@ internal class Solution(SolutionModel model, AbsolutePath path) : Fallout.Soluti public Fallout.Solutions.Project _build => this.GetProject("_build"); public Fallout.Solutions.Project Fallout_Build => this.GetProject("Fallout.Build"); public Fallout.Solutions.Project Fallout_Build_Shared => this.GetProject("Fallout.Build.Shared"); - public Fallout.Solutions.Project Fallout_Build_Tests => this.GetProject("Fallout.Build.Tests"); + public Fallout.Solutions.Project Fallout_Build_Specs => this.GetProject("Fallout.Build.Specs"); public Fallout.Solutions.Project Fallout_Cli => this.GetProject("Fallout.Cli"); - public Fallout.Solutions.Project Fallout_Cli_Tests => this.GetProject("Fallout.Cli.Tests"); + public Fallout.Solutions.Project Fallout_Cli_Specs => this.GetProject("Fallout.Cli.Specs"); public Fallout.Solutions.Project Fallout_Common => this.GetProject("Fallout.Common"); - public Fallout.Solutions.Project Fallout_Common_Tests => this.GetProject("Fallout.Common.Tests"); + public Fallout.Solutions.Project Fallout_Common_Specs => this.GetProject("Fallout.Common.Specs"); public Fallout.Solutions.Project Fallout_Components => this.GetProject("Fallout.Components"); public Fallout.Solutions.Project Fallout_Consumer_Local => this.GetProject("Fallout.Consumer.Local"); public Fallout.Solutions.Project Fallout_Consumer_NuGet => this.GetProject("Fallout.Consumer.NuGet"); public Fallout.Solutions.Project Fallout_Core => this.GetProject("Fallout.Core"); - public Fallout.Solutions.Project Fallout_Core_Tests => this.GetProject("Fallout.Core.Tests"); + public Fallout.Solutions.Project Fallout_Core_Specs => this.GetProject("Fallout.Core.Specs"); public Fallout.Solutions.Project Fallout_Migrate => this.GetProject("Fallout.Migrate"); public Fallout.Solutions.Project Fallout_Migrate_Analyzers => this.GetProject("Fallout.Migrate.Analyzers"); - public Fallout.Solutions.Project Fallout_Migrate_Analyzers_Tests => this.GetProject("Fallout.Migrate.Analyzers.Tests"); - public Fallout.Solutions.Project Fallout_Migrate_Tests => this.GetProject("Fallout.Migrate.Tests"); + public Fallout.Solutions.Project Fallout_Migrate_Analyzers_Specs => this.GetProject("Fallout.Migrate.Analyzers.Specs"); + public Fallout.Solutions.Project Fallout_Migrate_Specs => this.GetProject("Fallout.Migrate.Specs"); public Fallout.Solutions.Project Fallout_MSBuildTasks => this.GetProject("Fallout.MSBuildTasks"); public Fallout.Solutions.Project Fallout_Persistence_Solution => this.GetProject("Fallout.Persistence.Solution"); public Fallout.Solutions.Project Fallout_Persistence_Solution_Benchmarks => this.GetProject("Fallout.Persistence.Solution.Benchmarks"); public Fallout.Solutions.Project Fallout_ProjectModel => this.GetProject("Fallout.ProjectModel"); - public Fallout.Solutions.Project Fallout_ProjectModel_Tests => this.GetProject("Fallout.ProjectModel.Tests"); + public Fallout.Solutions.Project Fallout_ProjectModel_Specs => this.GetProject("Fallout.ProjectModel.Specs"); public Fallout.Solutions.Project Fallout_Solution => this.GetProject("Fallout.Solution"); - public Fallout.Solutions.Project Fallout_Solution_Tests => this.GetProject("Fallout.Solution.Tests"); + public Fallout.Solutions.Project Fallout_Solution_Specs => this.GetProject("Fallout.Solution.Specs"); public Fallout.Solutions.Project Fallout_SourceGenerators => this.GetProject("Fallout.SourceGenerators"); - public Fallout.Solutions.Project Fallout_SourceGenerators_Tests => this.GetProject("Fallout.SourceGenerators.Tests"); + public Fallout.Solutions.Project Fallout_SourceGenerators_Specs => this.GetProject("Fallout.SourceGenerators.Specs"); public Fallout.Solutions.Project Fallout_Tooling => this.GetProject("Fallout.Tooling"); public Fallout.Solutions.Project Fallout_Tooling_Generator => this.GetProject("Fallout.Tooling.Generator"); - public Fallout.Solutions.Project Fallout_Tooling_Tests => this.GetProject("Fallout.Tooling.Tests"); + public Fallout.Solutions.Project Fallout_Tooling_Specs => this.GetProject("Fallout.Tooling.Specs"); public Fallout.Solutions.Project Fallout_Utilities => this.GetProject("Fallout.Utilities"); public Fallout.Solutions.Project Fallout_Utilities_IO_Compression => this.GetProject("Fallout.Utilities.IO.Compression"); public Fallout.Solutions.Project Fallout_Utilities_IO_Globbing => this.GetProject("Fallout.Utilities.IO.Globbing"); public Fallout.Solutions.Project Fallout_Utilities_Net => this.GetProject("Fallout.Utilities.Net"); - public Fallout.Solutions.Project Fallout_Utilities_Tests => this.GetProject("Fallout.Utilities.Tests"); + public Fallout.Solutions.Project Fallout_Utilities_Specs => this.GetProject("Fallout.Utilities.Specs"); public Fallout.Solutions.Project Fallout_Utilities_Text_Json => this.GetProject("Fallout.Utilities.Text.Json"); public Fallout.Solutions.Project Fallout_Utilities_Text_Yaml => this.GetProject("Fallout.Utilities.Text.Yaml"); public Fallout.Solutions.Project Nuke_Build => this.GetProject("Nuke.Build"); public Fallout.Solutions.Project Nuke_Common => this.GetProject("Nuke.Common"); - public Fallout.Solutions.Project Nuke_Common_Shim_Tests => this.GetProject("Nuke.Common.Shim.Tests"); + public Fallout.Solutions.Project Nuke_Common_Shim_Specs => this.GetProject("Nuke.Common.Shim.Specs"); public Fallout.Solutions.Project Nuke_Components => this.GetProject("Nuke.Components"); - public Fallout.Solutions.Project Nuke_Components_Shim_Tests => this.GetProject("Nuke.Components.Shim.Tests"); + public Fallout.Solutions.Project Nuke_Components_Shim_Specs => this.GetProject("Nuke.Components.Shim.Specs"); public Fallout.Solutions.Project Nuke_Consumer => this.GetProject("Nuke.Consumer"); public _misc misc => Unsafe.As<_misc>(this.GetSolutionFolder("misc")); diff --git a/tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.cs b/tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.cs similarity index 96% rename from tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.cs rename to tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.cs index 3cb6d2a52..82b4e469c 100644 --- a/tests/Fallout.SourceGenerators.Tests/StronglyTypedSolutionGeneratorTest.cs +++ b/tests/Fallout.SourceGenerators.Specs/StronglyTypedSolutionGeneratorSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Threading.Tasks; using FluentAssertions; @@ -9,9 +9,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.SourceGenerators.Tests; +namespace Fallout.SourceGenerators.Specs; -public class StronglyTypedSolutionGeneratorTest +public class StronglyTypedSolutionGeneratorSpec { [Fact] public Task Test() diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#ShimAllPublicTypesUnderAttribute.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#ShimAllPublicTypesUnderAttribute.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#ShimAllPublicTypesUnderAttribute.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#ShimAllPublicTypesUnderAttribute.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Abstr.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Abstr.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Abstr.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Abstr.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Generic_T_.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Generic_T_.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Generic_T_.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Generic_T_.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.IFoo.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.IFoo.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.IFoo.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.IFoo.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.MyAttr.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.MyAttr.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.MyAttr.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.MyAttr.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Regular.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Regular.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Regular.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.Regular.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.StaticHelpers.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.StaticHelpers.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.StaticHelpers.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.StaticHelpers.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.WithNested.g.verified.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.WithNested.g.verified.cs similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.WithNested.g.verified.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier#global__Fallout.Common.WithNested.g.verified.cs diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier.verified.txt b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier.verified.txt similarity index 100% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.EmitsShimsForEachKindAndSkipsHardTier.verified.txt rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.EmitsShimsForEachKindAndSkipsHardTier.verified.txt diff --git a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.cs b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.cs similarity index 98% rename from tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.cs rename to tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.cs index 30d8ac333..5908abf87 100644 --- a/tests/Fallout.SourceGenerators.Tests/TransitionShimGeneratorTest.cs +++ b/tests/Fallout.SourceGenerators.Specs/TransitionShimGeneratorSpec.cs @@ -7,9 +7,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.SourceGenerators.Tests; +namespace Fallout.SourceGenerators.Specs; -public class TransitionShimGeneratorTest +public class TransitionShimGeneratorSpec { // Each kind in the Easy tier (regular class, abstract class, interface, // attribute, generic class, nested type) emits a representative shim. The diff --git a/tests/Fallout.SourceGenerators.Tests/VerifyTestsInitializer.cs b/tests/Fallout.SourceGenerators.Specs/VerifySpecsInitializer.cs similarity index 87% rename from tests/Fallout.SourceGenerators.Tests/VerifyTestsInitializer.cs rename to tests/Fallout.SourceGenerators.Specs/VerifySpecsInitializer.cs index 36f4b5d73..23c99bdbb 100644 --- a/tests/Fallout.SourceGenerators.Tests/VerifyTestsInitializer.cs +++ b/tests/Fallout.SourceGenerators.Specs/VerifySpecsInitializer.cs @@ -1,8 +1,8 @@ -using System; +using System; using System.Runtime.CompilerServices; using VerifyTests; -namespace Fallout.SourceGenerators.Tests; +namespace Fallout.SourceGenerators.Specs; public static class VerifyTestsInitializer { diff --git a/tests/Fallout.Tooling.Tests/ArgumentStringHandlerTest.cs b/tests/Fallout.Tooling.Specs/ArgumentStringHandlerSpec.cs similarity index 97% rename from tests/Fallout.Tooling.Tests/ArgumentStringHandlerTest.cs rename to tests/Fallout.Tooling.Specs/ArgumentStringHandlerSpec.cs index b8aa54e4e..6ba680736 100644 --- a/tests/Fallout.Tooling.Tests/ArgumentStringHandlerTest.cs +++ b/tests/Fallout.Tooling.Specs/ArgumentStringHandlerSpec.cs @@ -5,9 +5,9 @@ // ReSharper disable StringLiteralAsInterpolationArgument -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ArgumentStringHandlerTest +public class ArgumentStringHandlerSpec { [Fact] public void Test() diff --git a/tests/Fallout.Tooling.Tests/Fallout.Tooling.Tests.csproj b/tests/Fallout.Tooling.Specs/Fallout.Tooling.Specs.csproj similarity index 100% rename from tests/Fallout.Tooling.Tests/Fallout.Tooling.Tests.csproj rename to tests/Fallout.Tooling.Specs/Fallout.Tooling.Specs.csproj diff --git a/tests/Fallout.Tooling.Tests/NuGetPackageResolverTest.cs b/tests/Fallout.Tooling.Specs/NuGetPackageResolverSpec.cs similarity index 95% rename from tests/Fallout.Tooling.Tests/NuGetPackageResolverTest.cs rename to tests/Fallout.Tooling.Specs/NuGetPackageResolverSpec.cs index 5f9cee5bd..2a1520f17 100644 --- a/tests/Fallout.Tooling.Tests/NuGetPackageResolverTest.cs +++ b/tests/Fallout.Tooling.Specs/NuGetPackageResolverSpec.cs @@ -4,13 +4,13 @@ using Fallout.Common.Tooling; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class NuGetPackageResolverTest +public class NuGetPackageResolverSpec { private static AbsolutePath RootDirectory => Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory).NotNull(); - private static AbsolutePath ProjectFile => RootDirectory / "tests" / "Fallout.Tooling.Tests" / "Fallout.Tooling.Tests.csproj"; + private static AbsolutePath ProjectFile => RootDirectory / "tests" / "Fallout.Tooling.Specs" / "Fallout.Tooling.Specs.csproj"; private static AbsolutePath AssetsFile => ProjectFile.Parent / "obj" / "project.assets.json"; private const string XunitConsolePackageVersion = "2.6.1"; diff --git a/tests/Fallout.Tooling.Tests/OptionsTest.TestSerialization.verified.txt b/tests/Fallout.Tooling.Specs/OptionsSpec.TestSerialization.verified.txt similarity index 100% rename from tests/Fallout.Tooling.Tests/OptionsTest.TestSerialization.verified.txt rename to tests/Fallout.Tooling.Specs/OptionsSpec.TestSerialization.verified.txt diff --git a/tests/Fallout.Tooling.Tests/OptionsTest.cs b/tests/Fallout.Tooling.Specs/OptionsSpec.cs similarity index 99% rename from tests/Fallout.Tooling.Tests/OptionsTest.cs rename to tests/Fallout.Tooling.Specs/OptionsSpec.cs index 06e1455a6..b293a7435 100644 --- a/tests/Fallout.Tooling.Tests/OptionsTest.cs +++ b/tests/Fallout.Tooling.Specs/OptionsSpec.cs @@ -12,9 +12,9 @@ using VerifyXunit; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class OptionsTest +public class OptionsSpec { // ReSharper disable UnassignedGetOnlyAutoProperty private string ScalarValue { get; } diff --git a/tests/Fallout.Tooling.Tests/ToolOptionsArgumentsTest.cs b/tests/Fallout.Tooling.Specs/ToolOptionsArgumentsSpec.cs similarity index 99% rename from tests/Fallout.Tooling.Tests/ToolOptionsArgumentsTest.cs rename to tests/Fallout.Tooling.Specs/ToolOptionsArgumentsSpec.cs index cfa788dfb..bfe8cb161 100644 --- a/tests/Fallout.Tooling.Tests/ToolOptionsArgumentsTest.cs +++ b/tests/Fallout.Tooling.Specs/ToolOptionsArgumentsSpec.cs @@ -11,9 +11,9 @@ using Fallout.Common.Utilities.Collections; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ToolOptionsArgumentsTest +public class ToolOptionsArgumentsSpec { [Fact] public void TestBool_Simple() => Assert(new { Bool = true }, ["/bool:true",]); [Fact] public void TestBool_FlagTrue() => Assert(new { Flag = true }, ["/flag"]); diff --git a/tests/Fallout.Tooling.Tests/ToolTasksLoggerTest.cs b/tests/Fallout.Tooling.Specs/ToolTasksLoggerSpec.cs similarity index 96% rename from tests/Fallout.Tooling.Tests/ToolTasksLoggerTest.cs rename to tests/Fallout.Tooling.Specs/ToolTasksLoggerSpec.cs index e6d50e927..91b9a3e9f 100644 --- a/tests/Fallout.Tooling.Tests/ToolTasksLoggerTest.cs +++ b/tests/Fallout.Tooling.Specs/ToolTasksLoggerSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using FluentAssertions; @@ -8,13 +8,13 @@ using Serilog.Events; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ToolTasksLoggerTest +public class ToolTasksLoggerSpec { private readonly List _logEvents = new(); - public ToolTasksLoggerTest() + public ToolTasksLoggerSpec() { var memorySink = new InMemorySink(); Log.Logger = new LoggerConfiguration() diff --git a/tests/Fallout.Tooling.Tests/ToolTasksToolPathTest.cs b/tests/Fallout.Tooling.Specs/ToolTasksToolPathSpec.cs similarity index 94% rename from tests/Fallout.Tooling.Tests/ToolTasksToolPathTest.cs rename to tests/Fallout.Tooling.Specs/ToolTasksToolPathSpec.cs index 96474a262..543965dc6 100644 --- a/tests/Fallout.Tooling.Tests/ToolTasksToolPathTest.cs +++ b/tests/Fallout.Tooling.Specs/ToolTasksToolPathSpec.cs @@ -5,11 +5,11 @@ using Fallout.Common.Tooling; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ToolTasksToolPathTest +public class ToolTasksToolPathSpec { - public ToolTasksToolPathTest() + public ToolTasksToolPathSpec() { var rootDirectory = Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory); NuGetToolPathResolver.NuGetPackagesConfigFile = rootDirectory / "build" / "_build.csproj"; diff --git a/tests/Fallout.Utilities.Tests/ArgumentParserTest.cs b/tests/Fallout.Utilities.Specs/ArgumentParserSpec.cs similarity index 98% rename from tests/Fallout.Utilities.Tests/ArgumentParserTest.cs rename to tests/Fallout.Utilities.Specs/ArgumentParserSpec.cs index 46612aeb9..296a03246 100644 --- a/tests/Fallout.Utilities.Tests/ArgumentParserTest.cs +++ b/tests/Fallout.Utilities.Specs/ArgumentParserSpec.cs @@ -3,9 +3,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class ArgumentParserTest +public class ArgumentParserSpec { [Theory] [InlineData("arg0 arg1 arg2", new[] { "arg0", "arg1", "arg2" })] diff --git a/tests/Fallout.Utilities.Tests/Collections/DictionaryExtensionsTest.cs b/tests/Fallout.Utilities.Specs/Collections/DictionaryExtensionsSpec.cs similarity index 83% rename from tests/Fallout.Utilities.Tests/Collections/DictionaryExtensionsTest.cs rename to tests/Fallout.Utilities.Specs/Collections/DictionaryExtensionsSpec.cs index d6390fa29..4454de5e0 100644 --- a/tests/Fallout.Utilities.Tests/Collections/DictionaryExtensionsTest.cs +++ b/tests/Fallout.Utilities.Specs/Collections/DictionaryExtensionsSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -6,9 +6,9 @@ using Fallout.Common.Utilities.Collections; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class DictionaryExtensionsTest +public class DictionaryExtensionsSpec { [Fact] public static void ToGeneric() diff --git a/tests/Fallout.Utilities.Tests/Collections/EnumerableExtensionsTest.cs b/tests/Fallout.Utilities.Specs/Collections/EnumerableExtensionsSpec.cs similarity index 89% rename from tests/Fallout.Utilities.Tests/Collections/EnumerableExtensionsTest.cs rename to tests/Fallout.Utilities.Specs/Collections/EnumerableExtensionsSpec.cs index ac15f80ce..92f675da8 100644 --- a/tests/Fallout.Utilities.Tests/Collections/EnumerableExtensionsTest.cs +++ b/tests/Fallout.Utilities.Specs/Collections/EnumerableExtensionsSpec.cs @@ -1,12 +1,12 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.Utilities.Collections; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class EnumerableExtensionsTest +public class EnumerableExtensionsSpec { [Fact] public void SingleOrDefaultOrError_ThrowsExceptionWithMessage() diff --git a/tests/Fallout.Utilities.Tests/Collections/LookupTableTest.cs b/tests/Fallout.Utilities.Specs/Collections/LookupTableSpec.cs similarity index 94% rename from tests/Fallout.Utilities.Tests/Collections/LookupTableTest.cs rename to tests/Fallout.Utilities.Specs/Collections/LookupTableSpec.cs index c5db832b7..f124c2e01 100644 --- a/tests/Fallout.Utilities.Tests/Collections/LookupTableTest.cs +++ b/tests/Fallout.Utilities.Specs/Collections/LookupTableSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.Utilities.Collections; @@ -6,9 +6,9 @@ // ReSharper disable ArgumentsStyleLiteral -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class LookupTableTest +public class LookupTableSpec { [Fact] public void Test() diff --git a/tests/Fallout.Utilities.Tests/EncryptionUtilityTest.cs b/tests/Fallout.Utilities.Specs/EncryptionUtilitySpec.cs similarity index 98% rename from tests/Fallout.Utilities.Tests/EncryptionUtilityTest.cs rename to tests/Fallout.Utilities.Specs/EncryptionUtilitySpec.cs index 54897de9d..a9f96d3b3 100644 --- a/tests/Fallout.Utilities.Tests/EncryptionUtilityTest.cs +++ b/tests/Fallout.Utilities.Specs/EncryptionUtilitySpec.cs @@ -3,9 +3,9 @@ using FluentAssertions; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class EncryptionUtilityTest +public class EncryptionUtilitySpec { [Fact] public void V2_RoundTrip() diff --git a/tests/Fallout.Utilities.Tests/EnvironmentInfoTest.cs b/tests/Fallout.Utilities.Specs/EnvironmentInfoSpec.cs similarity index 78% rename from tests/Fallout.Utilities.Tests/EnvironmentInfoTest.cs rename to tests/Fallout.Utilities.Specs/EnvironmentInfoSpec.cs index 106d678fa..d773f8c8b 100644 --- a/tests/Fallout.Utilities.Tests/EnvironmentInfoTest.cs +++ b/tests/Fallout.Utilities.Specs/EnvironmentInfoSpec.cs @@ -1,12 +1,12 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.IO; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class EnvironmentInfoTest +public class EnvironmentInfoSpec { [Fact] public void TestPaths() diff --git a/tests/Fallout.Utilities.Tests/Fallout.Utilities.Tests.csproj b/tests/Fallout.Utilities.Specs/Fallout.Utilities.Specs.csproj similarity index 100% rename from tests/Fallout.Utilities.Tests/Fallout.Utilities.Tests.csproj rename to tests/Fallout.Utilities.Specs/Fallout.Utilities.Specs.csproj diff --git a/tests/Fallout.Utilities.Tests/IO/CompressionTasksTest.cs b/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpec.cs similarity index 88% rename from tests/Fallout.Utilities.Tests/IO/CompressionTasksTest.cs rename to tests/Fallout.Utilities.Specs/IO/CompressionTasksSpec.cs index 067a5d673..e7527eec2 100644 --- a/tests/Fallout.Utilities.Tests/IO/CompressionTasksTest.cs +++ b/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpec.cs @@ -6,14 +6,14 @@ using Xunit; using Xunit.Abstractions; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class CompressionTasksTest : FileSystemDependentTest +public class CompressionTasksSpec : FileSystemDependentSpec { private AbsolutePath RootFile => TestTempDirectory / "root-file"; private AbsolutePath NestedFile => TestTempDirectory / "a" / "b" / "c" / "nested-file"; - public CompressionTasksTest(ITestOutputHelper testOutputHelper) + public CompressionTasksSpec(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } diff --git a/tests/Fallout.Utilities.Tests/IO/FileSystemDependentTest.cs b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpec.cs similarity index 89% rename from tests/Fallout.Utilities.Tests/IO/FileSystemDependentTest.cs rename to tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpec.cs index 45574baa9..8ed93b896 100644 --- a/tests/Fallout.Utilities.Tests/IO/FileSystemDependentTest.cs +++ b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpec.cs @@ -6,9 +6,9 @@ using Fallout.Common.IO; using Xunit.Abstractions; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public abstract class FileSystemDependentTest +public abstract class FileSystemDependentSpec { public ITestOutputHelper TestOutputHelper { get; } public string TestName { get; } @@ -17,7 +17,7 @@ public abstract class FileSystemDependentTest public AbsolutePath RootDirectory { get; } public AbsolutePath TestTempDirectory { get; } - protected FileSystemDependentTest(ITestOutputHelper testOutputHelper) + protected FileSystemDependentSpec(ITestOutputHelper testOutputHelper) { TestOutputHelper = testOutputHelper; diff --git a/tests/Fallout.Utilities.Tests/IO/MoveCopyTest.cs b/tests/Fallout.Utilities.Specs/IO/MoveCopySpec.cs similarity index 96% rename from tests/Fallout.Utilities.Tests/IO/MoveCopyTest.cs rename to tests/Fallout.Utilities.Specs/IO/MoveCopySpec.cs index c09230be5..50c25de3f 100644 --- a/tests/Fallout.Utilities.Tests/IO/MoveCopyTest.cs +++ b/tests/Fallout.Utilities.Specs/IO/MoveCopySpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.IO; @@ -6,11 +6,11 @@ using Xunit; using Xunit.Abstractions; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class MoveCopyTest : FileSystemDependentTest +public class MoveCopySpec : FileSystemDependentSpec { - public MoveCopyTest(ITestOutputHelper testOutputHelper) : base(testOutputHelper) + public MoveCopySpec(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { AbsolutePathExtensions.DefaultEofLineBreak = false; } diff --git a/tests/Fallout.Utilities.Tests/IO/PathConstructionTest.cs b/tests/Fallout.Utilities.Specs/IO/PathConstructionSpec.cs similarity index 99% rename from tests/Fallout.Utilities.Tests/IO/PathConstructionTest.cs rename to tests/Fallout.Utilities.Specs/IO/PathConstructionSpec.cs index b70d78a88..fd62c33b1 100644 --- a/tests/Fallout.Utilities.Tests/IO/PathConstructionTest.cs +++ b/tests/Fallout.Utilities.Specs/IO/PathConstructionSpec.cs @@ -5,9 +5,9 @@ using Xunit; using static Fallout.Common.IO.PathConstruction; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class PathConstructionTest +public class PathConstructionSpec { [Theory] [InlineData("C:\\A\\B", "C:\\A")] diff --git a/tests/Fallout.Utilities.Tests/Reflection/ReflectionUtilityTest.cs b/tests/Fallout.Utilities.Specs/Reflection/ReflectionUtilitySpec.cs similarity index 93% rename from tests/Fallout.Utilities.Tests/Reflection/ReflectionUtilityTest.cs rename to tests/Fallout.Utilities.Specs/Reflection/ReflectionUtilitySpec.cs index 7f77235a6..39c56e1a7 100644 --- a/tests/Fallout.Utilities.Tests/Reflection/ReflectionUtilityTest.cs +++ b/tests/Fallout.Utilities.Specs/Reflection/ReflectionUtilitySpec.cs @@ -6,9 +6,9 @@ using Fallout.Common.Utilities; using Xunit; -namespace Fallout.Common.Tests.Execution; +namespace Fallout.Common.Specs.Execution; -public class ReflectionUtilityTest +public class ReflectionUtilitySpec { [Theory] [InlineData(typeof(string), true)] @@ -17,7 +17,7 @@ public class ReflectionUtilityTest [InlineData(typeof(object), true)] [InlineData(typeof(bool), false)] [InlineData(typeof(bool[]), true)] - [InlineData(typeof(ReflectionUtilityTest), true)] + [InlineData(typeof(ReflectionUtilitySpec), true)] public void TestIsNullableType(Type type, bool expected) { type.IsNullableType().Should().Be(expected); @@ -28,7 +28,7 @@ public void TestIsNullableType(Type type, bool expected) [InlineData(typeof(bool?), typeof(bool?))] [InlineData(typeof(string), typeof(string))] [InlineData(typeof(object[]), typeof(object[]))] - [InlineData(typeof(ReflectionUtilityTest), typeof(ReflectionUtilityTest))] + [InlineData(typeof(ReflectionUtilitySpec), typeof(ReflectionUtilitySpec))] public void TestGetNullableType(Type type, Type expected) { type.GetNullableType().Should().Be(expected); diff --git a/tests/Fallout.Utilities.Tests/Text/SerializationTest.cs b/tests/Fallout.Utilities.Specs/Text/SerializationSpec.cs similarity index 90% rename from tests/Fallout.Utilities.Tests/Text/SerializationTest.cs rename to tests/Fallout.Utilities.Specs/Text/SerializationSpec.cs index d0e621a51..9920bfdee 100644 --- a/tests/Fallout.Utilities.Tests/Text/SerializationTest.cs +++ b/tests/Fallout.Utilities.Specs/Text/SerializationSpec.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using FluentAssertions; @@ -7,12 +7,12 @@ using Fallout.Utilities.Text.Yaml; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class SerializationTest +public class SerializationSpec { [Fact] - public void JsonTest() + public void JsonSpec() { var data = CreateData("Json"); #pragma warning disable CS0618 // Test pins Newtonsoft round-trip semantics; STJ equivalents will get their own test cases in v11. @@ -24,7 +24,7 @@ public void JsonTest() } [Fact] - public void YamlTest() + public void YamlSpec() { var data = CreateData("Yaml"); var content = data.ToYaml(); @@ -34,7 +34,7 @@ public void YamlTest() } [Fact] - public void XmlTest() + public void XmlSpec() { var data = CreateData("Xml"); var content = data.ToXml(); diff --git a/tests/Fallout.Utilities.Tests/Text/StringExtensionsTest.cs b/tests/Fallout.Utilities.Specs/Text/StringExtensionsSpec.cs similarity index 95% rename from tests/Fallout.Utilities.Tests/Text/StringExtensionsTest.cs rename to tests/Fallout.Utilities.Specs/Text/StringExtensionsSpec.cs index ee79563bb..08c77441b 100644 --- a/tests/Fallout.Utilities.Tests/Text/StringExtensionsTest.cs +++ b/tests/Fallout.Utilities.Specs/Text/StringExtensionsSpec.cs @@ -1,12 +1,12 @@ -using System; +using System; using System.Linq; using FluentAssertions; using Fallout.Common.Utilities; using Xunit; -namespace Fallout.Common.Tests; +namespace Fallout.Common.Specs; -public class StringExtensionsTest +public class StringExtensionsSpec { [Theory] [InlineData("a b c", "\"a b c\"")] diff --git a/tests/Nuke.Common.Shim.Tests/Nuke.Common.Shim.Tests.csproj b/tests/Nuke.Common.Shim.Specs/Nuke.Common.Shim.Specs.csproj similarity index 100% rename from tests/Nuke.Common.Shim.Tests/Nuke.Common.Shim.Tests.csproj rename to tests/Nuke.Common.Shim.Specs/Nuke.Common.Shim.Specs.csproj diff --git a/tests/Nuke.Common.Shim.Tests/SampleConsumerBuild.cs b/tests/Nuke.Common.Shim.Specs/SampleConsumerBuild.cs similarity index 97% rename from tests/Nuke.Common.Shim.Tests/SampleConsumerBuild.cs rename to tests/Nuke.Common.Shim.Specs/SampleConsumerBuild.cs index 32dcad3af..943dd3a7a 100644 --- a/tests/Nuke.Common.Shim.Tests/SampleConsumerBuild.cs +++ b/tests/Nuke.Common.Shim.Specs/SampleConsumerBuild.cs @@ -16,7 +16,7 @@ using Nuke.Common.ProjectModel; using Nuke.Common.Utilities; -namespace Nuke.Common.Shim.Tests; +namespace Nuke.Common.Shim.Specs; // Consumer's typical Build.cs entry-point — inherits the shim's NukeBuild, // uses the canonical Fallout types via `Fallout.Common.Target` (shim doesn't @@ -26,7 +26,7 @@ namespace Nuke.Common.Shim.Tests; public abstract class SampleConsumerBuild : NukeBuild, INukeBuild { [Parameter("Configuration to build")] readonly string Configuration; - [Parameter] readonly bool RunTests; + [Parameter] readonly bool RunSpecs; [Secret] readonly string NuGetApiKey; [Solution] readonly Fallout.Solutions.Solution Solution; [Solution("path/to/explicit.slnx")] readonly Fallout.Solutions.Solution ExplicitSolution; diff --git a/tests/Nuke.Common.Shim.Tests/ShimCompilesTests.cs b/tests/Nuke.Common.Shim.Specs/ShimCompilesSpecs.cs similarity index 93% rename from tests/Nuke.Common.Shim.Tests/ShimCompilesTests.cs rename to tests/Nuke.Common.Shim.Specs/ShimCompilesSpecs.cs index 29551342d..5ff31ebbe 100644 --- a/tests/Nuke.Common.Shim.Tests/ShimCompilesTests.cs +++ b/tests/Nuke.Common.Shim.Specs/ShimCompilesSpecs.cs @@ -1,6 +1,6 @@ using Xunit; -namespace Nuke.Common.Shim.Tests; +namespace Nuke.Common.Shim.Specs; // The whole point of this project is to verify that SampleConsumerBuild.cs // compiles against the Nuke.* shim — the build IS the test. But xUnit's @@ -12,7 +12,7 @@ namespace Nuke.Common.Shim.Tests; // This trivial test makes discovery succeed on all platforms and explicitly // encodes the project's contract: if you can build it, the shim covers the // surface SampleConsumerBuild exercises. -public class ShimCompilesTests +public class ShimCompilesSpecs { [Fact] public void Shim_Compiles_When_Test_Assembly_Loads() diff --git a/tests/Nuke.Components.Shim.Tests/Nuke.Components.Shim.Tests.csproj b/tests/Nuke.Components.Shim.Specs/Nuke.Components.Shim.Specs.csproj similarity index 100% rename from tests/Nuke.Components.Shim.Tests/Nuke.Components.Shim.Tests.csproj rename to tests/Nuke.Components.Shim.Specs/Nuke.Components.Shim.Specs.csproj diff --git a/tests/Nuke.Components.Shim.Tests/SampleConsumerBuild.cs b/tests/Nuke.Components.Shim.Specs/SampleConsumerBuild.cs similarity index 96% rename from tests/Nuke.Components.Shim.Tests/SampleConsumerBuild.cs rename to tests/Nuke.Components.Shim.Specs/SampleConsumerBuild.cs index 12a555db9..880fc9119 100644 --- a/tests/Nuke.Components.Shim.Tests/SampleConsumerBuild.cs +++ b/tests/Nuke.Components.Shim.Specs/SampleConsumerBuild.cs @@ -10,7 +10,7 @@ using Nuke.Common; using Nuke.Components; -namespace Nuke.Components.Shim.Tests; +namespace Nuke.Components.Shim.Specs; // Exercises every IHaz* alias in one type. Abstract so we don't have to // satisfy any concrete-build requirements — declaration alone proves the diff --git a/tests/Nuke.Components.Shim.Tests/ShimCompilesTests.cs b/tests/Nuke.Components.Shim.Specs/ShimCompilesSpecs.cs similarity index 88% rename from tests/Nuke.Components.Shim.Tests/ShimCompilesTests.cs rename to tests/Nuke.Components.Shim.Specs/ShimCompilesSpecs.cs index 3d2ddabd1..7cbe98c1a 100644 --- a/tests/Nuke.Components.Shim.Tests/ShimCompilesTests.cs +++ b/tests/Nuke.Components.Shim.Specs/ShimCompilesSpecs.cs @@ -1,6 +1,6 @@ using Xunit; -namespace Nuke.Components.Shim.Tests; +namespace Nuke.Components.Shim.Specs; // The whole point of this project is to verify that SampleConsumerBuild.cs // compiles against the Nuke.Components shim — the build IS the test. But @@ -8,7 +8,7 @@ namespace Nuke.Components.Shim.Tests; // discoverable tests as an error on Windows (exit code 1) while emitting only // a warning on Linux/macOS. This trivial test makes discovery succeed on all // platforms. -public class ShimCompilesTests +public class ShimCompilesSpecs { [Fact] public void Shim_Compiles_When_Test_Assembly_Loads()