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=6007a012aeeb57e10e6fe7c8afd7eba2ce32daef;hpb=38f320d19a29a3e7d6a92cdb0b3ebec149d7c1a7;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 6007a012aee..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,23 @@ 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 () + { + StringValidator v = new StringValidator (1); + + v.Validate (null); + } + [Test] public void MinLenth () { @@ -122,4 +138,3 @@ namespace MonoTests.System.Configuration { } } -#endif