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.
71 lines
2.5 KiB
71 lines
2.5 KiB
#warning |
|
//// 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 ICSharpCode.SharpDevelop; |
|
//using SD = ICSharpCode.SharpDevelop.Gui; |
|
//using ICSharpCode.SharpDevelop.Project; |
|
//using NUnit.Framework; |
|
//using System; |
|
//using System.IO; |
|
//using System.Collections.Generic; |
|
//using System.Web.Services.Description; |
|
//using System.Web.Services.Discovery; |
|
// |
|
//namespace ICSharpCode.SharpDevelop.Tests.WebReferences |
|
//{ |
|
// /// <summary> |
|
// /// Tests that a new web reference does not generate a WebReferencesProjectItem |
|
// /// if the project already contains a web reference folder. |
|
// /// </summary> |
|
// [TestFixture] |
|
// public class ProjectHasExistingWebRefFolderTest |
|
// { |
|
// SD.WebReference webReference; |
|
// DiscoveryClientProtocol protocol; |
|
// ProjectItem webReferencesProjectItem; |
|
// MSBuildBasedProject project; |
|
// |
|
// string name = "localhost"; |
|
// string proxyNamespace = "WebReferenceNamespace"; |
|
// string updateFromUrl = "http://localhost/test.asmx"; |
|
// |
|
// [TestFixtureSetUp] |
|
// public void SetUpFixture() |
|
// { |
|
// project = WebReferenceTestHelper.CreateTestProject("C#"); |
|
// WebReferencesProjectItem item = new WebReferencesProjectItem(project); |
|
// item.Include = "Web References\\"; |
|
// ProjectService.AddProjectItem(project, item); |
|
// |
|
// protocol = new DiscoveryClientProtocol(); |
|
// DiscoveryDocumentReference discoveryRef = new DiscoveryDocumentReference(); |
|
// discoveryRef.Url = updateFromUrl; |
|
// protocol.References.Add(discoveryRef); |
|
// |
|
// ContractReference contractRef = new ContractReference(); |
|
// contractRef.Url = "http://localhost/test.asmx?wsdl"; |
|
// contractRef.ClientProtocol = new DiscoveryClientProtocol(); |
|
// ServiceDescription desc = new ServiceDescription(); |
|
// contractRef.ClientProtocol.Documents.Add(contractRef.Url, desc); |
|
// protocol.References.Add(contractRef); |
|
// |
|
// WebReferenceTestHelper.InitializeProjectBindings(); |
|
// |
|
// webReference = new SD.WebReference(project, updateFromUrl, name, proxyNamespace, protocol); |
|
// webReferencesProjectItem = WebReferenceTestHelper.GetProjectItem(webReference.Items, "Web References\\", ItemType.WebReferences); |
|
// } |
|
// |
|
// [Test] |
|
// public void ProjectItemContainsWebReferencesFolder() |
|
// { |
|
// Assert.IsTrue(SD.WebReference.ProjectContainsWebReferencesFolder(project)); |
|
// } |
|
// |
|
// [Test] |
|
// public void WebReferencesProjectItemDoesNotExist() |
|
// { |
|
// Assert.IsNull(webReferencesProjectItem); |
|
// } |
|
// } |
|
//}
|
|
|