Example #1
0
        public void TwentyFourTest3()
        {
            Title TwentyFour = new TV(204);
            TwentyFour.name = "24";
            TwentyFour.rating = 4;
            string TwentyFourInfo;
            TwentyFourInfo = TwentyFour.ToString();
            Console.WriteLine(TwentyFourInfo);

            Assert.AreEqual("24", TwentyFour.name);
        }
Example #2
0
        public void TwentyFourTest()
        {
            Title TwentyFour = new TV(204);
            TwentyFour.name = "24";
            TwentyFour.rating = 4;
            string TwentyFourInfo;
            TwentyFourInfo = TwentyFour.ToString();
            Console.WriteLine(TwentyFourInfo);

            Assert.AreEqual("24: 204 episodes and the Average Episode Rating is 4", TwentyFourInfo);
        }
Example #3
0
 public void IASIP()
 {
     Title IASIP = new TV(141);
     IASIP.name = "It's Always Sunny in Philadelphia";
     IASIP.rating = 4;
     string IASIPinfo;
     IASIPinfo = IASIP.ToString();
     Console.WriteLine(IASIPinfo);
 }
Example #4
0
 public void Buffy()
 {
     Title Buffy = new TV(144);
     Buffy.name = "Buffy the Vampire Slayer";
     Buffy.rating = 2;
     string BuffyInfo;
     BuffyInfo = Buffy.ToString();
     Console.WriteLine(BuffyInfo);
 }
Example #5
0
 public void HIMYM()
 {
     Title HIMYM = new TV(208);
     HIMYM.name = "How I Met Your Mother";
     HIMYM.rating = 2;
     string HIMYMinfo;
     HIMYMinfo = HIMYM.ToString();
     Console.WriteLine(HIMYMinfo);
 }
Example #6
0
 public void GossipGirl()
 {
     Title GossipGirl = new TV(121);
     GossipGirl.name = "Gossip Girl";
     GossipGirl.rating = 1;
     string GossipGirlInfo;
     GossipGirlInfo = GossipGirl.ToString();
     Console.WriteLine(GossipGirlInfo);
 }
Example #7
0
 public void Greys()
 {
     Title Greys = new TV(255);
     Greys.name = "Grey's Anatomy";
     Greys.rating = 1;
     string GreysInfo;
     GreysInfo = Greys.ToString();
     Console.WriteLine(GreysInfo);
 }
Example #8
0
 public void Chuck()
 {
     Title Chuck = new TV(91);
     Chuck.name = "Chuck";
     Chuck.rating = 1;
     string ChuckInfo;
     ChuckInfo = Chuck.ToString();
     Console.WriteLine(ChuckInfo);
 }
Example #9
0
 public void Seinfeld()
 {
     Title Seinfeld = new TV(180);
     Seinfeld.name = "Seinfeld";
     Seinfeld.rating = 3;
     string SeinfeldInfo;
     SeinfeldInfo = Seinfeld.ToString();
     Console.WriteLine(SeinfeldInfo);
 }
Example #10
0
 public void TwentyFour()
 {
     Title TwentyFour = new TV(204);
     TwentyFour.name = "24";
     TwentyFour.rating = 4;
     string TwentyFourInfo;
     TwentyFourInfo = TwentyFour.ToString();
     Console.WriteLine(TwentyFourInfo);
 }
Example #11
0
        public void TwentyFourTest9()
        {
            Title TwentyFour = new TV(204);
            TV tv = new TV(204);
            TwentyFour.name = "24";
            TwentyFour.rating = 4;
            string TwentyFourInfo;
            TwentyFourInfo = TwentyFour.ToString();
            Console.WriteLine(TwentyFourInfo);

            Assert.IsInstanceOfType(TwentyFour, typeof(TV));
        }
Example #12
0
        public void TwentyFourTest6()
        {
            Title TwentyFour = new TV(204);
            TV tv = new TV(204);
            TwentyFour.name = "24";
            TwentyFour.rating = 4;
            string TwentyFourInfo;
            TwentyFourInfo = TwentyFour.ToString();
            Console.WriteLine(TwentyFourInfo);

            Assert.IsNotNull(tv.episodes);
        }