Esempio n. 1
0
 public void EqualsTest7()
 {
     TvShow show1 = new TvShow(GenreList.Horror, "American Horror Story", 7.4, new List<Episode>(new[] { new Episode(101, 7.4) }));
     TvShow show2 = new TvShow(GenreList.Horror, "American Horror Story", 0, new List<Episode>(new[] { new Episode(101, 7.4) }));
     Assert.AreEqual(show1, show2);
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Genre comedy = new Genre();
            Genre romance = new Genre();
            TvShow tvShow = new TvShow();
            Episode episode = new Episode();
            
            List<string> Comedy = new List<string>();
            Comedy.Add("Anchorman");
            Comedy.Add("The Animal");

            List<string> Romance = new List<string>();
            Romance.Add("Trainwreck");
            Romance.Add("Titanic");

            
            Movie Anchorman = new Movie();
            Anchorman.name = "Anchorman";
            Anchorman.rating = 4;
            Anchorman.duration = 94;

            Movie TheAnimal = new Movie();
            TheAnimal.name = "The Animal";
            TheAnimal.rating = 2;
            TheAnimal.duration = 83;

            Movie Trainwreck = new Movie();
            Trainwreck.name = "Trainwreck";
            Trainwreck.rating = 3;
            Trainwreck.duration = 125;

            Movie Titanic = new Movie();
            Titanic.name = "Titanic";
            Titanic.rating = 5;
            Titanic.duration = 194;


            tvShow.name = "Walking Dead Season 1";
            tvShow.numberOfEpisodes = 6;
            List<string> Episodes = new List<string>();
            Episodes.Add("Days Gone By");
            Episodes.Add("Guts");
            Episodes.Add("Tell it to the frogs");
            Episodes.Add("Vatos");
            Episodes.Add("Wildfire");
            Episodes.Add("TS -19");
            Episode DaysGoneBy = new Episode();
            DaysGoneBy.rating = 5;
            
            Episode Guts = new Episode();
            Guts.rating = 5;
            Episode TellItToTheFrogs = new Episode();
            TellItToTheFrogs.rating = 4;
            Episode Vatos = new Episode();
            Vatos.rating = null;
            Episode Wildfire = new Episode();
            Wildfire.rating = 3;
            Episode TS19 = new Episode();
            TS19.rating = 4;
            






            

            


        }