forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cake-buildGH-694) Added tests for ILRepack
- Loading branch information
Showing
4 changed files
with
576 additions
and
0 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
28 changes: 28 additions & 0 deletions
28
src/Cake.Common.Tests/Fixtures/Tools/ILRepackRunnerFixture.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,28 @@ | ||
using System.Collections.Generic; | ||
using Cake.Common.Tools.ILRepack; | ||
using Cake.Core.IO; | ||
using Cake.Testing.Fixtures; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Tools | ||
{ | ||
internal sealed class ILRepackRunnerFixture : ToolFixture<ILRepackSettings> | ||
{ | ||
public FilePath OutputAssemblyPath { get; set; } | ||
public FilePath PrimaryAssemblyPath { get; set; } | ||
public List<FilePath> AssemblyPaths { get; set; } | ||
|
||
public ILRepackRunnerFixture() | ||
: base("ILRepack.exe") | ||
{ | ||
OutputAssemblyPath = "output.exe"; | ||
PrimaryAssemblyPath = "input.exe"; | ||
AssemblyPaths = new List<FilePath>(); | ||
} | ||
|
||
protected override void RunTool() | ||
{ | ||
var runner = new ILRepackRunner(FileSystem, Environment, Globber, ProcessRunner); | ||
runner.Merge(OutputAssemblyPath, PrimaryAssemblyPath, AssemblyPaths, Settings); | ||
} | ||
} | ||
} |
Oops, something went wrong.