New test.
[mono.git] / mcs / class / corlib / Test / System / BitConverterTest.cs
old mode 100755 (executable)
new mode 100644 (file)
index 126abd9..d059d2e
@@ -560,6 +560,16 @@ public class BitConverterTest : Assertion {
                BitConverter.ToInt32 (array, Int32.MinValue);
        }
 
+       [Test]
+#if !NET_2_0
+       [ExpectedException (typeof (ArgumentOutOfRangeException))]
+#endif
+       public void ToString_Empty ()
+       {
+               byte[] empty = new byte [0];
+               AssertEquals ("Empty", String.Empty, BitConverter.ToString (empty));
+       }
+
        [Test]
        public void ToBoolean () 
        {