public void FormatNonDate()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            Assert.Throws <ArgumentException>(() => fmt.Format("not a date"));
        }
Esempio n. 2
0
        public void FormatNonDate()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            fmt.Format("not a date");
        }
        public void FormatNullValue()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            Assert.Throws <ArgumentNullException>(() => fmt.Format(null));
        }
Esempio n. 4
0
        public void FormatNullValue()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            fmt.Format(null);
        }