|
|
|
@ -5,6 +5,7 @@ |
|
|
|
// <version>$Revision$</version>
|
|
|
|
// <version>$Revision$</version>
|
|
|
|
// </file>
|
|
|
|
// </file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
@ -14,10 +15,24 @@ namespace ICSharpCode.SharpDevelop.Tests.WebReferences |
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Helper methods used when testing web references
|
|
|
|
/// Helper methods used when testing web references
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class WebReferenceTestHelper |
|
|
|
public static class WebReferenceTestHelper |
|
|
|
{ |
|
|
|
{ |
|
|
|
WebReferenceTestHelper() |
|
|
|
public static void InitializeLanguageBindings() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
Properties prop = new Properties(); |
|
|
|
|
|
|
|
prop["id"] = "C#"; |
|
|
|
|
|
|
|
prop["supportedextensions"] = ".cs"; |
|
|
|
|
|
|
|
prop["projectfileextension"] = ".csproj"; |
|
|
|
|
|
|
|
Codon codon1 = new Codon(null, "LanguageBinding", prop, new Condition[0]); |
|
|
|
|
|
|
|
prop = new Properties(); |
|
|
|
|
|
|
|
prop["id"] = "VBNet"; |
|
|
|
|
|
|
|
prop["supportedextensions"] = ".vb"; |
|
|
|
|
|
|
|
prop["projectfileextension"] = ".vbproj"; |
|
|
|
|
|
|
|
Codon codon2 = new Codon(null, "LanguageBinding", prop, new Condition[0]); |
|
|
|
|
|
|
|
LanguageBindingService.SetBindings(new LanguageBindingDescriptor[] { |
|
|
|
|
|
|
|
new LanguageBindingDescriptor(codon1), |
|
|
|
|
|
|
|
new LanguageBindingDescriptor(codon2) |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static ProjectItem GetProjectItem(List<ProjectItem> items, string include, ItemType itemType) { |
|
|
|
public static ProjectItem GetProjectItem(List<ProjectItem> items, string include, ItemType itemType) { |
|
|
|
|