Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 8
0
 public void Chuck()
 {
     Title Chuck = new TV(91);
     Chuck.name = "Chuck";
     Chuck.rating = 1;
     string ChuckInfo;
     ChuckInfo = Chuck.ToString();
     Console.WriteLine(ChuckInfo);
 }
Exemplo n.º 9
0
 public void Seinfeld()
 {
     Title Seinfeld = new TV(180);
     Seinfeld.name = "Seinfeld";
     Seinfeld.rating = 3;
     string SeinfeldInfo;
     SeinfeldInfo = Seinfeld.ToString();
     Console.WriteLine(SeinfeldInfo);
 }
Exemplo n.º 10
0
 public void TwentyFour()
 {
     Title TwentyFour = new TV(204);
     TwentyFour.name = "24";
     TwentyFour.rating = 4;
     string TwentyFourInfo;
     TwentyFourInfo = TwentyFour.ToString();
     Console.WriteLine(TwentyFourInfo);
 }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }