-
-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-1089) Add additional context information to Teardown
- Loading branch information
Showing
19 changed files
with
311 additions
and
44 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
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
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,15 @@ | ||
// 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 Xunit; | ||
|
||
namespace Cake.Core.Tests.Unit | ||
{ | ||
public sealed class TeardownContextTests | ||
{ | ||
public sealed class TheConstructor | ||
{ | ||
// TODO: Put tests here | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// 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 Cake.Core.Diagnostics; | ||
using Cake.Core.IO; | ||
using Cake.Core.Tooling; | ||
|
||
namespace Cake.Core | ||
{ | ||
public abstract class CakeContextAdapter | ||
{ | ||
private readonly ICakeContext _cakeContext; | ||
|
||
public CakeContextAdapter(ICakeContext cakeContext) | ||
{ | ||
_cakeContext = cakeContext; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the file system. | ||
/// </summary> | ||
/// <value> | ||
/// The file system. | ||
/// </value> | ||
public IFileSystem FileSystem | ||
{ | ||
get { return _cakeContext.FileSystem; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the environment. | ||
/// </summary> | ||
/// <value> | ||
/// The environment. | ||
/// </value> | ||
public ICakeEnvironment Environment | ||
{ | ||
get { return _cakeContext.Environment; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the globber. | ||
/// </summary> | ||
/// <value> | ||
/// The globber. | ||
/// </value> | ||
public IGlobber Globber | ||
{ | ||
get { return _cakeContext.Globber; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the log. | ||
/// </summary> | ||
/// <value> | ||
/// The log. | ||
/// </value> | ||
public ICakeLog Log { get { return _cakeContext.Log; } } | ||
|
||
/// <summary> | ||
/// Gets the arguments. | ||
/// </summary> | ||
/// <value> | ||
/// The arguments. | ||
/// </value> | ||
public ICakeArguments Arguments | ||
{ | ||
get { return _cakeContext.Arguments; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the process runner. | ||
/// </summary> | ||
/// <value> | ||
/// The process runner. | ||
/// </value> | ||
public IProcessRunner ProcessRunner | ||
{ | ||
get { return _cakeContext.ProcessRunner; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the registry. | ||
/// </summary> | ||
/// <value> | ||
/// The registry. | ||
/// </value> | ||
public IRegistry Registry | ||
{ | ||
get { return _cakeContext.Registry; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the tool locator. | ||
/// </summary> | ||
/// <value> | ||
/// The tool locator. | ||
/// </value> | ||
public IToolLocator Tools | ||
{ | ||
get { return _cakeContext.Tools; } | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.