Пример #1
0
 public void Heat()
 {
     Title Heat = new Movie(171);
     Heat.name = "Heat";
     Heat.rating = 3;
     string HeatInfo;
     HeatInfo = Heat.ToString();
     Console.WriteLine(HeatInfo);
 }
Пример #2
0
 public void DieHard()
 {
     Title DieHard = new Movie(131);
     DieHard.name = "Die Hard";
     DieHard.rating = 4;
     string DieHardInfo;
     DieHardInfo = DieHard.ToString();
     Console.WriteLine(DieHardInfo);           
 }
Пример #3
0
        public void MadMax()
        {
            Title MadMax= new Movie(88);
            MadMax.name = "Mad Max";
            MadMax.rating = 2;
            string MadMaxInfo;
            MadMaxInfo = MadMax.ToString();
            Console.WriteLine(MadMaxInfo);

        }
Пример #4
0
        public void RushHour()
        {
            Title RushHour = new Movie(97);
            RushHour.name = "Rush Hour";
            RushHour.rating = 2;
            string RushHourInfo;
            RushHourInfo = RushHour.ToString();
            Console.WriteLine(RushHourInfo);

        }
Пример #5
0
        public void HotFuzz()
        {
            Title HotFuzz= new Movie(121);
            HotFuzz.name = "Hot Fuzz";
            HotFuzz.rating = 3;
            string HotFuzzInfo;
            HotFuzzInfo = HotFuzz.ToString();
            Console.WriteLine(HotFuzzInfo);

        }
Пример #6
0
        public void MrMrsSmith()
        {
            Title MrMrsSmith= new Movie(123);
            MrMrsSmith.name = "Mr and Mrs Smith";
            MrMrsSmith.rating = 2;
            string MrMrsSmithInfo;
            MrMrsSmithInfo = MrMrsSmith.ToString();
            Console.WriteLine(MrMrsSmithInfo);

        }
Пример #7
0
        public void KnockedUp()
        {
            Title KnockedUp= new Movie(129);
            KnockedUp.name = "Knocked Up";
            KnockedUp.rating = 2;
            string KnockedUpInfo;
            KnockedUpInfo = KnockedUp.ToString();
            Console.WriteLine(KnockedUpInfo);

        }
Пример #8
0
        public void DieHardTest3()
        {
            Title DieHard = new Movie(131);
            Movie movie = new Movie(131);
            DieHard.name = "Die Hard";
            DieHard.rating = 4;
            string DieHardInfo;
            DieHardInfo = DieHard.ToString();
            Console.WriteLine(DieHardInfo);

            Assert.AreEqual(4, DieHard.rating);
        }
Пример #9
0
        public void DieHardTest2()
        {
            Title DieHard = new Movie(131);
            Movie movie = new Movie(131);
            DieHard.name = "Die Hard";
            DieHard.rating = 4;
            string DieHardInfo;
            DieHardInfo = DieHard.ToString();
            Console.WriteLine(DieHardInfo);

            Assert.AreEqual("Die Hard: 131 minutes long and 4 thumbs up!", DieHardInfo);
        }
Пример #10
0
        public void NotebookTest3()
        {
            Title Notebook = new Movie(121);
            Notebook.name = "The Notebook";
            Notebook.rating = 0;
            string NotebookInfo;
            NotebookInfo = Notebook.ToString();
            Console.WriteLine(NotebookInfo);

            Assert.ReferenceEquals(Notebook.name, Notebook.rating);
        }
Пример #11
0
        public void SLP()
        {
            Title SLP = new Movie(122);
            SLP.name = "Silver Linings Playbook";
            SLP.rating = 1;
            string SLPInfo;
            SLPInfo = SLP.ToString();
            Console.WriteLine(SLPInfo);

        }
Пример #12
0
        public void Titanic()
        {
            Title Titanic = new Movie(194);
            Titanic.name = "Titanic";
            Titanic.rating = 1;
            string TitanicInfo;
            TitanicInfo = Titanic.ToString();
            Console.WriteLine(TitanicInfo);

        }
Пример #13
0
        public void Zoolander()
        {
            Title Zoolander= new Movie(89);
            Zoolander.name = "Zoolander";
            Zoolander.rating = 2;
            string ZoolanderInfo;
            ZoolanderInfo = Zoolander.ToString();
            Console.WriteLine(ZoolanderInfo);

        }
Пример #14
0
        public void DieHardTest4()
        {
            Title DieHard = new Movie(131);
            Movie movie = new Movie(131);
            DieHard.name = "Die Hard";
            DieHard.rating = 4;
            string DieHardInfo;
            DieHardInfo = DieHard.ToString();
            Console.WriteLine(DieHardInfo);

            Assert.IsInstanceOfType(DieHard, typeof(Title));
        }
Пример #15
0
        public void NotebookTest4()
        {
            Title Notebook = new Movie(121);
            Notebook.name = "The Notebook";
            Notebook.rating = 0;
            string NotebookInfo;
            NotebookInfo = Notebook.ToString();
            Console.WriteLine(NotebookInfo);

            Assert.IsNotInstanceOfType(typeof(Movie),typeof(Title));
        }
Пример #16
0
        public void DirtyDancing()
        {
            Title DirtyDancing= new Movie(100);
            DirtyDancing.name = "Dirty Dancing";
            DirtyDancing.rating = 4;
            string DirtyDancingInfo;
            DirtyDancingInfo = DirtyDancing.ToString();
            Console.WriteLine(DirtyDancingInfo);

        }
Пример #17
0
 public void Notebook()
 {
     Title Notebook= new Movie(121);
     Notebook.name = "The Notebook";
     Notebook.rating = 0;
     string NotebookInfo;
     NotebookInfo = Notebook.ToString();
     Console.WriteLine(NotebookInfo);
 }
Пример #18
0
        public void PrincessBride()
        {
            Title PrincessBride= new Movie(98);
            PrincessBride.name = "The Princess Bride";
            PrincessBride.rating = 4;
            string PrincessBrideInfo;
            PrincessBrideInfo = PrincessBride.ToString();
            Console.WriteLine(PrincessBrideInfo);

        }
Пример #19
0
        public void NotebookTest2()
        {
            Title Notebook = new Movie(121);
            Notebook.name = "The Notebook";
            Notebook.rating = 0;
            string NotebookInfo;
            NotebookInfo = Notebook.ToString();
            Console.WriteLine(NotebookInfo);

            Assert.AreEqual(NotebookInfo, Notebook.ToString());
        }