コード例 #1
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 public void MovieInstantiation ()
 {
     var options = new MovieOptions ();
     SetMovieOptions (options);
     var movie = new Movie ("-1", "-1", options);
     AssertMovie (movie, options);
     AssertMovie (movie, movie.GetOptions ());
 }