You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.8 KiB
50 lines
1.8 KiB
//// 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.SharpDevelop.Dom; |
|
//using Rhino.Mocks; |
|
// |
|
//namespace PackageManagement.Tests.Helpers |
|
//{ |
|
// public class CompilationUnitHelper |
|
// { |
|
// public ICompilationUnit CompilationUnit; |
|
// public FakeCodeGenerator FakeCodeGenerator = new FakeCodeGenerator(); |
|
// public List<IClass> Classes = new List<IClass>(); |
|
// public UsingScopeHelper UsingScopeHelper = new UsingScopeHelper(); |
|
// public ProjectContentHelper ProjectContentHelper = new ProjectContentHelper(); |
|
// |
|
// public CompilationUnitHelper() |
|
// { |
|
// CompilationUnit = MockRepository.GenerateStub<ICompilationUnit>(); |
|
// LanguageProperties language = MockRepository.GenerateStub<LanguageProperties>(StringComparer.InvariantCultureIgnoreCase); |
|
// language.Stub(lang => lang.CodeGenerator).Return(FakeCodeGenerator); |
|
// CompilationUnit.Stub(unit => unit.Language).Return(language); |
|
// CompilationUnit.Stub(unit => unit.Classes).Return(Classes); |
|
// CompilationUnit.Stub(unit => unit.UsingScope).Return(UsingScopeHelper.UsingScope); |
|
// CompilationUnit.Stub(unit => unit.ProjectContent).Return(ProjectContentHelper.ProjectContent); |
|
// } |
|
// |
|
// public void SetFileName(string fileName) |
|
// { |
|
// CompilationUnit.FileName = fileName; |
|
// } |
|
// |
|
// public void AddClass(IClass c) |
|
// { |
|
// Classes.Add(c); |
|
// } |
|
// |
|
// public void AddNamespace(string name) |
|
// { |
|
// UsingScopeHelper.AddNamespace(name); |
|
// } |
|
// |
|
// public void AddNamespaceAlias(string alias, string namespaceName) |
|
// { |
|
// UsingScopeHelper.AddNamespaceAlias(alias, namespaceName); |
|
// } |
|
// } |
|
//}
|
|
|