Пример #1
0
 public void AppendNewAttendeesToMeeting_When_AttendeeList_Is_Null()
 {
     Assert.DoesNotThrow(() =>
     {
         _meetingCalendar.AddAttendees(null);
         _meetingCalendar.AppendAttendees(new List <IAttendee>
         {
             new Attendee("Person3", new List <IMeetingInfo>
             {
                 new MeetingInfo(DateTime.Now.AddMinutes(5), DateTime.Now.AddMinutes(7)),
                 new MeetingInfo(DateTime.Now.AddMinutes(12), DateTime.Now.AddMinutes(18))
             })
         });
     });
     Assert.That(_meetingCalendar.Attendees.Count, Is.EqualTo(1));
 }