Ejemplo n.º 1
0
 public void GetAllPossibleSessionsTest(Cinema cinema, List <CinemaHallSessions> expected) // все возможные сеансы
 {
     try
     {
         List <CinemaHallSessions> actual = cinema.AllPossibleSessions;
         CollectionAssert.AreEqual(expected, actual);
     }
     catch (ArgumentOutOfRangeException)
     {
         Assert.Throws <ArgumentOutOfRangeException>(() =>
         {
             cinema.CinemaHallException();
             cinema.NodeException();
         });
     }
 }