public void CanFindSuitableTrackForShortTalk() { var conferenceSchedule = new ConferenceSchedule(); var talks = new List<Talk>(); talks.Add(new Talk{ Minutes = 1}); conferenceSchedule.AllocateTalks(talks); Assert.IsTrue(conferenceSchedule.Tracks.Count > 0); }
public void ShouldCreateTwoTracks() { var conferenceSchedule = new ConferenceSchedule(); var talks = CreateTwoDaysSampleTalks(); conferenceSchedule.AllocateTalks(talks); Assert.AreEqual(conferenceSchedule.Tracks.Count, 2); }
public void ShouldLoadTalksAndExportSchedule() { var conferenceSchedule = new ConferenceSchedule(); var talks = LoadTalks.LoadFile("../../SampleData/Talks.txt"); conferenceSchedule.AllocateTalks(talks); var lines = SaveSchedule.ExportFile(conferenceSchedule, "../../SampleData/EndToEndSchedule.txt"); Assert.IsNotNull(lines); }