SignalR/SignalR — pull request #512 by akoeplinger (2012-07-05 10:56:03+00:00)
Title: Fixed failing tests on non-English OS (#338)

This PR fixes #338. Instead of checking against the string, this checks if the exception type is correct.

There is however a small gotcha here, as you can't really check against the exception type that was thrown inside a hub method, because only the exception message is returned back to the client (see [HubDispatcher.cs#L243](https://github.com/akoeplinger/SignalR/blob/5cabbcbc63d4bb68f1acdb7cfaab77e86db596ba/SignalR/Hubs/HubDispatcher.cs#L243)). The message is then wrapped into a `InvalidOperationException` in [HubProxy.cs#L94](https://github.com/akoeplinger/SignalR/blob/5cabbcbc63d4bb68f1acdb7cfaab77e86db596ba/SignalR.Client/Hubs/HubProxy.cs#L94) if it's not null.

This means that the exception message gets localized on the server, so I now simply check if the message contains "System.Exception", which should be present in every localized message.