[Tests] Do not assume order of returned interfaces
commit9a183f2c833a54e10fdcb09a3300d86e89ee85ae
authorRadek Doulik <rodo@xamarin.com>
Wed, 17 Jan 2018 15:30:29 +0000 (17 16:30 +0100)
committerMarek Safar <marek.safar@gmail.com>
Wed, 17 Jan 2018 19:44:25 +0000 (17 20:44 +0100)
tree171371065db5a0931f2eefadb503316f1b6bae36
parentf162931e25c4cc1ad3d1a21117bb085089f168cd
[Tests] Do not assume order of returned interfaces

Updated the System.Reflection.Emit/SaveTest to not depend on order of
interfaces returned from the System.Type::GetInterfaces method, as the
order is not guaranted. As described in the [documentation][0].

Also see github [issue][1] for more information and reasoning.

[0]: https://msdn.microsoft.com/en-us/library/system.type.getinterfaces(v=vs.110).aspx#Anchor_2
[1]: https://github.com/xamarin/xamarin-android/issues/1186
mcs/class/corlib/Test/System.Reflection.Emit/SaveTest.cs