hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

Avoid using hard coded values for ports. #22

Closed hibri closed 10 years ago

hibri commented 10 years ago

Get an available port

hibri commented 10 years ago

Wasn't on my own box. Changed to tabs on master

hibri commented 10 years ago

@knocte Where is the source code for System.Net.NetworkInformation.GetIPGlobalProperties ? I'm seeing a "Platform Not supported exception" in OSX. Wondering if the tests pass in NIX

knocte commented 10 years ago

It's possible that this is implemented only for Linux, not Mac; look at the sources here: https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.NetworkInformation/IPGlobalProperties.cs#L44