// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !MONOMAC
using System;
using System.Net;
using System.Runtime.Serialization;
using System.Text;
using NUnit.Framework;
+using MonoTests.Helpers;
+
namespace MonoTests.System.ServiceModel.Description
{
public class MyHostFactory : WebScriptServiceHostFactory
[Test]
public void ScriptGenerator ()
{
- var url = "http://localhost:37564";
+ var url = "http://localhost:" + NetworkHelpers.FindFreePort ();
var host = new MyHostFactory ().CreateServiceHost (typeof (HogeService));
var binding = new WebHttpBinding ();
host.AddServiceEndpoint (typeof (IHogeService), binding, url);