public void CopyConstructor() { var source = new Curfew { Break = TimeSpan.FromMinutes(20), Time = TimeSpan.FromHours(2), WeekDay = "1,2,6,0", Id = 123, }; var cg = source.ToGui(); Assert.AreEqual(source.Time, cg.Value.Time); Assert.AreEqual(source.Break, cg.Value.Break); Assert.AreEqual(source.WeekDay, cg.Value.WeekDay); Assert.AreEqual(source.Id, cg.Value.Id); }
public void DayOfWeekGetNone() { var source = new Curfew { Break = TimeSpan.FromMinutes(20), Time = TimeSpan.FromHours(2) }; var cg = source.ToGui(); Assert.IsFalse(cg.Monday.DaySet); Assert.IsFalse(cg.Tuesday.DaySet); Assert.IsFalse(cg.Saturday.DaySet); Assert.IsFalse(cg.Sunday.DaySet); Assert.IsFalse(cg.Wednesday.DaySet); Assert.IsFalse(cg.Thursday.DaySet); Assert.IsFalse(cg.Friday.DaySet); }