Skip to content

Commit

Permalink
(#3693) Remove 'Core' suffix of some settings classes
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Nov 14, 2021
1 parent 34f522f commit cd2b601
Show file tree
Hide file tree
Showing 50 changed files with 772 additions and 137 deletions.
2 changes: 2 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ Task("Run-Integration-Tests")
.AppendSwitchQuoted("--multipleargs", "=", "b")
.AppendSwitchQuoted("--testAssemblyDirectoryPath", "=", cakeAssembly.GetDirectory().FullPath)
.AppendSwitchQuoted("--testAssemblyFilePath", "=", cakeAssembly.FullPath)
.AppendSwitchQuoted("--testDotNetCoreVerbosity", "=", "Diagnostic")
.AppendSwitchQuoted("--testDotNetRollForward", "=", "LatestMajor")
});
}
catch(Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Cake.Common.Tools.DotNet.Build;
using Cake.Common.Tools.DotNetCore.Build;

namespace Cake.Common.Tests.Fixtures.Tools.DotNetCore.Build
{
internal sealed class DotNetCoreBuilderFixture : DotNetCoreFixture<DotNetCoreBuildSettings>
internal sealed class DotNetCoreBuilderFixture : DotNetCoreFixture<DotNetBuildSettings>
{
public string Project { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Cake.Common.Tools.DotNet.BuildServer;
using Cake.Common.Tools.DotNetCore.BuildServer;

namespace Cake.Common.Tests.Fixtures.Tools.DotNetCore.Build
{
internal sealed class DotNetCoreBuildServerFixture : DotNetCoreFixture<DotNetCoreBuildServerSettings>
internal sealed class DotNetCoreBuildServerFixture : DotNetCoreFixture<DotNetBuildServerShutdownSettings>
{
protected override void RunTool()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Cake.Common.Tools.DotNet.Clean;
using Cake.Common.Tools.DotNetCore.Clean;

namespace Cake.Common.Tests.Fixtures.Tools.DotNetCore.Clean
{
internal sealed class DotNetCoreCleanerFixture : DotNetCoreFixture<DotNetCoreCleanSettings>
internal sealed class DotNetCoreCleanerFixture : DotNetCoreFixture<DotNetCleanSettings>
{
public string Project { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Cake.Common.Tools.DotNetCore;
using Cake.Common.Tools.DotNet;
using Cake.Core.IO;
using Cake.Testing.Fixtures;

namespace Cake.Common.Tests.Fixtures.Tools.DotNetCore
{
internal abstract class DotNetCoreFixture<TSettings> : ToolFixture<TSettings, ToolFixtureResult>
where TSettings : DotNetCoreSettings, new()
where TSettings : DotNetSettings, new()
{
protected DotNetCoreFixture()
: base("dotnet.exe")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -72,7 +72,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -54,7 +54,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -73,7 +73,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -61,7 +61,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using Cake.Common.Tests.Fixtures.Tools.DotNetCore.MSBuild;
using Cake.Common.Tools.DotNet;
using Cake.Common.Tools.DotNetCore;
using Cake.Common.Tools.DotNetCore.MSBuild;
using Cake.Common.Tools.MSBuild;
Expand Down Expand Up @@ -64,7 +65,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -81,7 +82,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -1013,12 +1014,12 @@ public void Should_Append_DisableMultiprocessorLogging_If_Specified()
}

[Theory]
[InlineData(DotNetCoreVerbosity.Quiet)]
[InlineData(DotNetCoreVerbosity.Minimal)]
[InlineData(DotNetCoreVerbosity.Normal)]
[InlineData(DotNetCoreVerbosity.Detailed)]
[InlineData(DotNetCoreVerbosity.Diagnostic)]
public void Should_Append_Verbosity_If_Specified(DotNetCoreVerbosity verbosity)
[InlineData(DotNetVerbosity.Quiet)]
[InlineData(DotNetVerbosity.Minimal)]
[InlineData(DotNetVerbosity.Normal)]
[InlineData(DotNetVerbosity.Detailed)]
[InlineData(DotNetVerbosity.Diagnostic)]
public void Should_Append_Verbosity_If_Specified(DotNetVerbosity verbosity)
{
// Given
var fixture = new DotNetCoreMSBuildBuilderFixture();
Expand Down Expand Up @@ -1270,12 +1271,12 @@ public void Should_Append_DisableMultiprocessorLogging_If_Specified()
}

[Theory]
[InlineData(DotNetCoreVerbosity.Quiet)]
[InlineData(DotNetCoreVerbosity.Minimal)]
[InlineData(DotNetCoreVerbosity.Normal)]
[InlineData(DotNetCoreVerbosity.Detailed)]
[InlineData(DotNetCoreVerbosity.Diagnostic)]
public void Should_Append_Verbosity_If_Specified(DotNetCoreVerbosity verbosity)
[InlineData(DotNetVerbosity.Quiet)]
[InlineData(DotNetVerbosity.Minimal)]
[InlineData(DotNetVerbosity.Normal)]
[InlineData(DotNetVerbosity.Detailed)]
[InlineData(DotNetVerbosity.Diagnostic)]
public void Should_Append_Verbosity_If_Specified(DotNetVerbosity verbosity)
{
// Given
var fixture = new DotNetCoreMSBuildBuilderFixture();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -90,7 +90,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -73,7 +73,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -88,7 +88,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -185,7 +185,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -199,7 +199,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -274,7 +274,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -288,7 +288,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -363,7 +363,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -377,7 +377,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -459,7 +459,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -473,7 +473,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -562,7 +562,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -576,7 +576,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down Expand Up @@ -651,7 +651,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -665,7 +665,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Should_Throw_If_Process_Was_Not_Started()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process was not started.");
AssertEx.IsCakeException(result, ".NET CLI: Process was not started.");
}

[Fact]
Expand All @@ -53,7 +53,7 @@ public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
var result = Record.Exception(() => fixture.Run());

// Then
AssertEx.IsCakeException(result, ".NET Core CLI: Process returned an error (exit code 1).");
AssertEx.IsCakeException(result, ".NET CLI: Process returned an error (exit code 1).");
}

[Fact]
Expand Down
Loading

0 comments on commit cd2b601

Please sign in to comment.