This repository has been archived by the owner on Apr 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from osoykan/dev
dev to master
- Loading branch information
Showing
6 changed files
with
139 additions
and
74 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
40 changes: 40 additions & 0 deletions
40
test/Cake.OctoVariapus.Tests/CakeOctoVariableImportAliasFixture.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,40 @@ | ||
using System; | ||
|
||
using Cake.Core; | ||
using Cake.Core.IO; | ||
|
||
using FakeItEasy; | ||
|
||
namespace Cake.OctoVariapus.Tests | ||
{ | ||
public class CakeOctoVariableImportAliasFixture | ||
{ | ||
public CakeOctoVariableImportAliasFixture(int exitCode) | ||
{ | ||
GetDirectoryPath = Guid.NewGuid().ToString(); | ||
|
||
A.CallTo(() => CakeContext.ProcessRunner).Returns(ProcessRunner); | ||
A.CallTo(() => CakeContext.FileSystem).Returns(FileSystem); | ||
A.CallTo(() => CakeContext.Log).Returns(GetCakeLog); | ||
A.CallTo(() => ProcessRunner.Start(A<FilePath>._, A<ProcessSettings>._)).Returns(Process); | ||
A.CallTo(() => Process.GetExitCode()).Returns(exitCode); | ||
} | ||
|
||
public CakeOctoVariableImportAliasFixture() | ||
: this(0) | ||
{ | ||
} | ||
|
||
public ICakeContext CakeContext { get; } = A.Fake<ICakeContext>(); | ||
|
||
public IFileSystem FileSystem { get; } = A.Fake<IFileSystem>(); | ||
|
||
public DirectoryPath GetDirectoryPath { get; } | ||
|
||
public IProcess Process { get; } = A.Fake<IProcess>(); | ||
|
||
public IProcessRunner ProcessRunner { get; } = A.Fake<IProcessRunner>(); | ||
|
||
public CakeLogFixture GetCakeLog { get; } = new CakeLogFixture(); | ||
} | ||
} |
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