コード例 #1
0
        public void ActorCommentExtremeLatest()
        {
            ActorComment NewActorComment = new ActorComment();
            Boolean valid = false;
            int ActorCommentId = 1;
            string username = new string('A', ActorComment.textMidLength);
            DateTime datePosted = DateTime.Today.AddDays(+1000);
            string comment = new string('A', ActorComment.textMidLength);

            valid = NewActorComment.Valid(ActorCommentId, username, datePosted, comment);
        }
コード例 #2
0
        public void ActorCommentExtremeEarliestDate()
        {
            ActorComment NewActorComment = new ActorComment();
            Boolean valid = false;
            int ActorCommentId = 1;
            string username = new string('A', ActorComment.textMidLength);
            DateTime datePosted = ActorComment.earliestDate;
            string comment = new string('A', ActorComment.textMidLength);

            valid = NewActorComment.Valid(ActorCommentId, username, datePosted, comment);
        }
コード例 #3
0
        public void ActorCommentommentExtremeMinimumLength()
        {
            ActorComment NewActorComment = new ActorComment();
            Boolean valid = false;
            int ActorCommentId = 1;
            string username = new string('A', ActorComment.textMidLength);
            DateTime datePosted = DateTime.Today;
            string comment = new string('A', ActorComment.textExtremeMin);

            valid = NewActorComment.Valid(ActorCommentId, username, datePosted, comment);
        }
コード例 #4
0
        public void ActorCommentUsernameMinimumPlusOne()
        {
            ActorComment NewActorComment = new ActorComment();
            Boolean valid = false;
            int ActorCommentId = 1;
            string username = new string('A', ActorComment.textMinimumLength + 1);
            DateTime datePosted = DateTime.Today;
            string comment = new string('A', ActorComment.textMidLength);

            valid = NewActorComment.Valid(ActorCommentId, username, datePosted, comment);
            Assert.IsTrue(valid);
        }