예제 #1
0
        public void MovieNameExtremeMinimumLength()
        {
            Movie NewMovie = new Movie();
            Boolean valid = false;
            int movieId = 1;
            string movieName = new string('A', Movie.movieNameExtremeMin);
            DateTime releaseDate = DateTime.Now.Date;
            Age Age = Age.Eighteen;
            int directorId = 1;
            string imgUrl = "www.test.com/1.jpg";

            valid = NewMovie.Valid(movieId, movieName, releaseDate, Age, directorId, imgUrl);
        }
예제 #2
0
        public void MovieNameMaxLength()
        {
            Movie NewMovie = new Movie();
            Boolean valid = true;
            int movieId = 1;
            string movieName = new string('A', Movie.movieNameMaximumLength);
            DateTime releaseDate = DateTime.Now.Date;
            Age Age = Age.Eighteen;
            int directorId = 1;
            string imgUrl = "www.test.com/1.jpg";

            //invoke method
            valid = NewMovie.Valid(movieId, movieName, releaseDate, Age, directorId, imgUrl);
            Assert.IsTrue(valid);
        }