Exemplo n.º 1
0
        public void TestgetDateFormatStr01()
        {
            DateTimeFormatter dateTimeFormatter = DateTimeFormatterFactory.CreateDateTimeFormatter01();
            string            formatStr         = "DD-MM-YY";

            dateTimeFormatter.setDateFormatStr(formatStr);
            //Test Procedure Call
            string str = dateTimeFormatter.getDateFormatStr();
            //Post condition Check
            Accessor dateTimeFormatteraccessor = ReflectionAccessor.Wrap(dateTimeFormatter);

            Assert.AreEqual(formatStr, dateTimeFormatteraccessor.GetField("m_DateFormatStr"));
        }