public void TestAddTalks() { ISession session5 = Factory.Instance.GetNewSession(SessionTypes.Afternoon, DateTime.Now); ITalk talkA = Factory.Instance.GetNewTalk("Talk A", 60); ITalk talkB = Factory.Instance.GetNewTalk("Talk B", 60); ITalk talkC = Factory.Instance.GetNewTalk("Talk C", 60); var unscheduledTalks = new List <ITalk> { talkA, talkB, talkC }; var scheduledTalks = new List <ITalk> { talkA, talkB, talkC }; session5.AddTalks(scheduledTalks, unscheduledTalks); Assert.True(session5.RemainingDuration == 0 && session5.Talks[1].StartTime == DateTime.Today.AddHours(14) && //start time check session5.Talks.Count == scheduledTalks.Count && unscheduledTalks.Count == 0); }