X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Configuration%2FTest%2FSystem.Configuration%2FStringValidatorTest.cs;h=79b70ba222d7e04892cc601f2053178cdf2bd9e5;hb=746650d1b93114b60feb155c2ee778a9e16ccb6d;hp=a79472dd58efb66d1dfb138bfbe263f95835a4d1;hpb=096265478e6e4145c90250a5bf78c0c179ee50af;p=mono.git diff --git a/mcs/class/System.Configuration/Test/System.Configuration/StringValidatorTest.cs b/mcs/class/System.Configuration/Test/System.Configuration/StringValidatorTest.cs index a79472dd58e..79b70ba222d 100644 --- a/mcs/class/System.Configuration/Test/System.Configuration/StringValidatorTest.cs +++ b/mcs/class/System.Configuration/Test/System.Configuration/StringValidatorTest.cs @@ -27,7 +27,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 using System; using System.Configuration; @@ -47,6 +46,14 @@ namespace MonoTests.System.Configuration { Assert.IsFalse (v.CanValidate (typeof (object))); } + [Test] + public void NullZero () + { + StringValidator v = new StringValidator (0); + + v.Validate (null); + } + [Test] [ExpectedException (typeof (ArgumentException))] public void Null () @@ -131,4 +138,3 @@ namespace MonoTests.System.Configuration { } } -#endif