-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into rmarusyk/3817-3
- Loading branch information
Showing
18 changed files
with
1,052 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"src" | ||
], | ||
"sdk": { | ||
"version": "9.0.100-rc.2.24474.11", | ||
"version": "9.0.100", | ||
"rollForward": "latestFeature" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Cake.Common.Tests/Fixtures/Tools/DotNet/Sln/Add/DotNetSlnAdderFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.Generic; | ||
using Cake.Common.Tools.DotNet.Sln.Add; | ||
using Cake.Core.IO; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Tools.DotNet.Sln.Add | ||
{ | ||
internal sealed class DotNetSlnAdderFixture : DotNetFixture<DotNetSlnAddSettings> | ||
{ | ||
public FilePath Solution { get; set; } | ||
|
||
public IEnumerable<FilePath> ProjectPath { get; set; } | ||
|
||
protected override void RunTool() | ||
{ | ||
var tool = new DotNetSlnAdder(FileSystem, Environment, ProcessRunner, Tools); | ||
tool.Add(Solution, ProjectPath, Settings); | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/Cake.Common.Tests/Fixtures/Tools/DotNet/Sln/List/DotNetSlnListerFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.Generic; | ||
using Cake.Common.Tools.DotNet.Sln.List; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Tools.DotNet.Sln.List | ||
{ | ||
internal sealed class DotNetSlnListerFixture : DotNetFixture<DotNetSlnListSettings> | ||
{ | ||
public string Solution { get; set; } | ||
|
||
public string StandardError { get; set; } | ||
|
||
public IEnumerable<string> Projects { get; private set; } | ||
|
||
public void GivenProjectsResult() | ||
{ | ||
ProcessRunner.Process.SetStandardOutput(new string[] | ||
{ | ||
"Project(s)", | ||
"--------------------", | ||
"Common\\Common.AspNetCore\\Common.AspNetCore.csproj", | ||
"Common\\Common.Messaging\\Common.Messaging.csproj", | ||
"Common\\Common.Utilities\\Common.Utilities.csproj" | ||
}); | ||
} | ||
|
||
public void GivenErrorResult() | ||
{ | ||
ProcessRunner.Process.SetStandardError(new string[] | ||
{ | ||
StandardError | ||
}); | ||
} | ||
|
||
protected override void RunTool() | ||
{ | ||
var tool = new DotNetSlnLister(FileSystem, Environment, ProcessRunner, Tools); | ||
Projects = tool.List(Solution, Settings); | ||
} | ||
} | ||
} |
Oops, something went wrong.