[tests][System][ios] Avoid reflection usage when testing for Xamarin.iOS. Fixes ...
authorSebastien Pouliot <sebastien@xamarin.com>
Mon, 25 Jan 2016 18:45:11 +0000 (13:45 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Mon, 25 Jan 2016 18:45:11 +0000 (13:45 -0500)
commit8d275a6388a2c05bdf7702d4cad6a176c9dfe0ae
tree221270a65c9e21d5c34e990f62b7c114e74b5c97
parent79870dabf8e07d480188f0b945eff2eeee456c3d
[tests][System][ios] Avoid reflection usage when testing for Xamarin.iOS. Fixes #34133

When the linker is enabled (default for device builds) unused methods
are removed and cannot be reflected.

In this case we do not need reflection as the answer to port reuse is
always true.

https://bugzilla.xamarin.com/show_bug.cgi?id=34133
mcs/class/System/Test/System.Net.Sockets/SocketTest.cs