public void FalseTalkStartTime() { IEvent talk = new Talk("Writing Fast Tests Against Enterprise Rails 60min"); bool result = false; result |= talk.SetStartTime(new TimeSpan(8, 0, 0)); result |= talk.SetStartTime(new TimeSpan(12, 30, 0)); result |= talk.SetStartTime(new TimeSpan(18, 0, 0)); Assert.IsFalse(result); }
public void SetTalkStart() { IEvent talk = new Talk("Writing Fast Tests Against Enterprise Rails 60min"); talk.SetStartTime(new TimeSpan(10, 0, 0)); Assert.AreEqual(talk.StartTime, new TimeSpan(10, 0, 0)); Assert.AreEqual(talk.EndTime, new TimeSpan(11, 0, 0)); }