[System] Fixed Diagnostics.Switch ctor behavior for null parameters
commit29abf6790dcf6158e4b9613d7307562be38ca883
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 10 Sep 2014 17:09:34 +0000 (10 19:09 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 10 Sep 2014 17:09:34 +0000 (10 19:09 +0200)
treea8899aa80e20bd1bdfc871367d4d909a73552758
parentbbbcc73bde44595e5bd3767d1afafba0fd53a099
[System] Fixed Diagnostics.Switch ctor behavior for null parameters

Passing null to the displayName or description ctor parameter on MS.NET makes them equal to an empty string.
Fixed the Mono behavior to match .NET.
mcs/class/System/System.Diagnostics/Switch.cs
mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs
mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs