public void weekpicker_correctly_formats_date_value() { var value = new DateTime(2011, 1, 3); var element = new WeekPicker("test").Value(value); element.ValueAttributeShouldEqual("2011-W02"); }
public void weekpicker_correctly_formats_date_value_using_custom_rules() { var value = new DateTime(2011, 1, 2); var element = new WeekPicker("test") .Evaluation(CalendarWeekRule.FirstFullWeek, DayOfWeek.Sunday) .Value(value); element.ValueAttributeShouldEqual("2011-W01"); }
public void weekpicker_correctly_formats_date_value_using_custom_rules() { var value = new DateTime(2011, 1, 2); var element = new WeekPicker("test") .Evaluation(CalendarWeekRule.FirstFullWeek, DayOfWeek.Sunday) .Value(value); element.ValueAttributeShouldEqual("2011-W01"); }
public void weekpicker_correctly_formats_date_value() { var value = new DateTime(2011, 1, 3); var element = new WeekPicker("test").Value(value); element.ValueAttributeShouldEqual("2011-W02"); }