Пример #1
0
 static void AssertMovie (Movie movie, MovieOptions options)
 {
     AssertVideoItem (movie, options);
     Assert.AreEqual (movie.StorageMedium, options.StorageMedium);
     Assert.AreEqual (movie.DvdRegionCode, options.DvdRegionCode);
     Assert.AreEqual (movie.ChannelName, options.ChannelName);
     Assert.IsTrue (movie.ScheduledStartTimes.IsReadOnly);
     Assert.IsTrue (movie.ScheduledEndTimes.IsReadOnly);
     CollectionAssert.AreEqual (movie.ScheduledStartTimes, options.ScheduledStartTimes);
     CollectionAssert.AreEqual (movie.ScheduledEndTimes, options.ScheduledEndTimes);
 }
Пример #2
0
 public void MovieInstantiation ()
 {
     var options = new MovieOptions ();
     SetMovieOptions (options);
     var movie = new Movie ("-1", "-1", options);
     AssertMovie (movie, options);
     AssertMovie (movie, movie.GetOptions ());
 }