コード例 #1
0
        public void SetDatesTest()
        {
            var slot = new Timeslot();

            slot.StartDateTime = new DateTime(2020, 09, 18, 23, 30, 00);
            slot.EndDateTime   = slot.StartDateTime.AddMinutes(30);
            bool exceptionThrown = false;

            try
            {
                slot.ValidateDates();
            }
            catch (Exception ex)
            {
                exceptionThrown = true;
            }
            Assert.IsFalse(exceptionThrown);
        }