public void TestCalendarCell_HasCorrectSettings() { //---------------Set up test pack------------------- //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- CalendarCell calendarCell = new CalendarCell(); //---------------Test Result ----------------------- Assert.AreEqual("d", calendarCell.Style.Format); Assert.AreEqual(typeof(CalendarEditingControl), calendarCell.EditType); Assert.AreEqual(typeof(DateTime), calendarCell.ValueType); Assert.IsInstanceOf(typeof(DateTime), calendarCell.DefaultNewRowValue); DateTime newRowValue = (DateTime)calendarCell.DefaultNewRowValue; Assert.IsTrue(DateTimeUtilities.CloseToDateTimeNow(newRowValue, 10)); }