Ejemplo n.º 1
0
        public void FormatNonDate()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

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

            fmt.Format("not a date");
        }
Ejemplo n.º 3
0
        public void FormatNullValue()
        {
            DateTimeFormatter fmt = new DateTimeFormatter("d");

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

            fmt.Format(null);
        }