public void ShouldFillSession()
        {
            var afternoon = new Afternoon();
            afternoon.Allocate(new Talk { Minutes = afternoon.AvailableMinutes });

            var isFull = afternoon.IsFull;
            Assert.AreEqual(true, isFull);
        }
Пример #2
0
 public Track()
 {
     Morning = new Morning();
     Afternoon = new Afternoon();
 }
 public void ShouldNotBeFull()
 {
     var afternoon = new Afternoon();
     var isFull = afternoon.IsFull;
     Assert.AreEqual(false, isFull);
 }
 public void ShouldHaveTalks()
 {
     var session = new Afternoon();
     Assert.IsNotNull(session.Talks);
 }
 public void ShouldHaveCorrectTotalMinutes()
 {
     var afternoon = new Afternoon();
     var minutes = afternoon.TotalMinutes;
     Assert.AreEqual(minutes, 60 * 4);
 }
 public void ShouldHaveCorrectStartTime()
 {
     var afternoon = new Afternoon();
     var time = new TimeSpan(13, 0, 0);
     Assert.AreEqual(afternoon.StartTime, time);
 }
 public void ShouldHaveAvailableMinutes()
 {
     var afternoon = new Afternoon();
     var minutes = afternoon.AvailableMinutes;
     Assert.AreEqual(minutes, 60 * 4);
 }