17 changed files with 111 additions and 51 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.PackageManagement.Scripting |
||||
{ |
||||
public interface IPackageScriptRunner |
||||
{ |
||||
void Run(IPackageScript script); |
||||
} |
||||
} |
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using ICSharpCode.PackageManagement.Scripting; |
||||
|
||||
namespace PackageManagement.Tests.Helpers |
||||
{ |
||||
public class FakePackageScriptRunner : IPackageScriptRunner |
||||
{ |
||||
List<IPackageScript> ScriptsRun = new List<IPackageScript>(); |
||||
|
||||
public IPackageScript FirstScriptRun { |
||||
get { return ScriptsRun[0]; } |
||||
} |
||||
|
||||
public void Run(IPackageScript script) |
||||
{ |
||||
ScriptsRun.Add(script); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue