public void DirectorCommentExtremeLatest() { DirectorComment NewDirectorComment = new DirectorComment(); Boolean valid = false; int DirectorCommentId = 1; string username = new string('A', DirectorComment.textMidLength); DateTime datePosted = DateTime.Today.AddDays(+1000); string comment = new string('A', DirectorComment.textMidLength); valid = NewDirectorComment.Valid(DirectorCommentId, username, datePosted, comment); }
public void DirectorCommentExtremeEarliestDate() { DirectorComment NewDirectorComment = new DirectorComment(); Boolean valid = false; int DirectorCommentId = 1; string username = new string('A', DirectorComment.textMidLength); DateTime datePosted = DirectorComment.earliestDate; string comment = new string('A', DirectorComment.textMidLength); valid = NewDirectorComment.Valid(DirectorCommentId, username, datePosted, comment); }
public void DirectorCommentUsernameMinimumPlusOne() { DirectorComment NewDirectorComment = new DirectorComment(); Boolean valid = false; int DirectorCommentId = 1; string username = new string('A', DirectorComment.textMinimumLength + 1); DateTime datePosted = DateTime.Today; string comment = new string('A', DirectorComment.textMidLength); valid = NewDirectorComment.Valid(DirectorCommentId, username, datePosted, comment); Assert.IsTrue(valid); }
public void DirectorCommentUsernameMinimumMinus1() { DirectorComment NewDirectorComment = new DirectorComment(); Boolean valid = false; int DirectorCommentId = 1; string username = new string('A', DirectorComment.textMinimumLength - 1); DateTime datePosted = DateTime.Today; string Comment = new string('A', DirectorComment.textMidLength); valid = NewDirectorComment.Valid(DirectorCommentId, username, datePosted, Comment); }
public void DirectorCommentUsernameExtremeMaximum() { DirectorComment NewDirectorComment = new DirectorComment(); Boolean valid = false; int DirectorCommentId = 1; string username = new string('A', DirectorComment.textExtremeMax); DateTime datePosted = DateTime.Today; string comment = new string('A', DirectorComment.textMidLength); valid = NewDirectorComment.Valid(DirectorCommentId, username, datePosted, comment); }