~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Misc/PackageManagement/Test/Src/Helpers/FakePackageScript.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using ICSharpCode.PackageManagement;
 
6
using ICSharpCode.PackageManagement.Scripting;
 
7
using NuGet;
 
8
 
 
9
namespace PackageManagement.Tests.Helpers
 
10
{
 
11
        public class FakePackageScript : IPackageScript
 
12
        {
 
13
                public IPackageManagementProject Project { get; set; }
 
14
                public IPackage Package { get; set; }
 
15
                
 
16
                public bool IsRun;              
 
17
                public IPackageScriptSession SessionPassedToRun;
 
18
                
 
19
                public void Run(IPackageScriptSession session)
 
20
                {
 
21
                        IsRun = true;
 
22
                        SessionPassedToRun = session;
 
23
                }
 
24
                
 
25
                public bool ExistsReturnValue = true;
 
26
                
 
27
                public bool Exists()
 
28
                {
 
29
                        return ExistsReturnValue;
 
30
                }       
 
31
        }
 
32
}