1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using ICSharpCode.PackageManagement.Scripting;
8
namespace PackageManagement.Tests.Helpers
10
public class FakePackageScriptSession : IPackageScriptSession
12
public string EnvironmentPath = String.Empty;
14
public void SetEnvironmentPath(string path)
16
EnvironmentPath = path;
19
public string GetEnvironmentPath()
21
return EnvironmentPath;
24
public Dictionary<string, object> VariablesAdded = new Dictionary<string, object>();
26
public void AddVariable(string name, object value)
28
VariablesAdded.Add(name, value);
31
public List<string> VariablesRemoved = new List<string>();
33
public void RemoveVariable(string name)
35
VariablesRemoved.Add(name);
38
public bool IsScriptExecuted;
39
public string ScriptPassedToInvokeScript;
41
public void InvokeScript(string script)
43
IsScriptExecuted = true;
44
ScriptPassedToInvokeScript = script;