Пример #1
0
        public void FormatNonDate()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            Assert.Throws <ArgumentException>(() => fmt.Format("not a date"));
        }
Пример #2
0
        public void FormatNonDate()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            fmt.Format("not a date");
        }
Пример #3
0
        public void FormatNullValue()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            Assert.Throws <ArgumentNullException>(() => fmt.Format(null));
        }
Пример #4
0
        public void FormatNullValue()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

            fmt.Format(null);
        }