Exemplo n.º 1
0
        public void Should_get_the_date()
        {
            // GIVEN
            using (var browser = new FireFox("http://jqueryui.com/demos/datepicker/"))
            {
                var datePicker = browser.Control <DatePicker>("datepicker");
                datePicker.Date = new DateTime(2009, 12, 6);

                // WHEN
                var date = datePicker.Date;

                // THEN
                Assert.AreEqual(new DateTime(2009, 12, 6), date);
            }
        }