Пример #1
0
        public void Movie_Rating_Update_Test()
        {
            var testmovie = new Movie("Hallo", 1.3);

            testmovie.UpdateRating(10);

            Assert.IsTrue(testmovie.Rating <= 10 && testmovie.Rating > 0);
        }
Пример #2
0
        public void Seen_Check_Test()
        {
            var testmovie = new Movie("hallo", 1.3);
            var testserie = new Serie("Hallo", 0, 10);

            testmovie.UpdateRating(9);
            testserie.UpdateRating(8);
            Assert.IsTrue(testmovie.Seen == true && testserie.Seen == true);
        }