Merge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / class / corlib / Test / System / TimeSpanTest.cs
index 02d7e715107a07d09706995d03d965e8200a65c4..101cad48a9240a15f3cb2b15d7b1fe71dc6976a0 100644 (file)
@@ -1322,6 +1322,8 @@ public class TimeSpanTest {
                TryParseExactHelper ("10:12", new string [0], true, "dontcare");
                TryParseExactHelper ("10:12", new string [] { String.Empty }, true, "dontcare");
                TryParseExactHelper ("10:12", new string [] { null }, true, "dontcare");
+
+               TryParseExactHelper (null, new string [] { null }, true, "dontcare");
        }
 
        void TryParseExactHelper (string input, string [] formats, bool error, string expected, IFormatProvider formatProvider = null,
@@ -1424,6 +1426,10 @@ public class TimeSpanTest {
                Assert.AreEqual ("1", ts.ToString ("%h"), "#E0");
                Assert.AreEqual ("3", ts.ToString ("%m"), "#E1");
                Assert.AreEqual ("5", ts.ToString ("%s"), "#E2");
+
+               ts = new TimeSpan (123456789);
+               Assert.AreEqual ("12.3", ts.ToString ("s\\.f"), "#F0");
+               Assert.AreEqual ("12.3", ts.ToString ("s\\.F"), "#F1");
        }
 
        [Test]