Пример #1
0
        public void ActorBornLocationExtremeMinimumLength()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int actorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = new DateTime(1990, 07, 30);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textExtremeMin);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(actorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
        }
Пример #2
0
        public void ActorLiveLocationMinimumPlusOne()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int actorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = new DateTime(1990, 07, 30);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMidLength);
            string liveLocation = new string('A', Actor.textMinimumLength + 1);

            valid = NewActor.Valid(actorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }
Пример #3
0
        public void ActorLatestDatePlusOne()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int ActorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = Actor.latestDate.AddDays(+1);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMidLength);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(ActorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
        }
Пример #4
0
        public void ActorEarliestDate()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int ActorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = Actor.earliestDate;
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMidLength);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(ActorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }