Beispiel #1
0
        public void BRatingWithValidMembers_WhenCreateValidated_ReturnsTrue()
        {
            //Arrange: a rating with all valid members is created.
            BRating rating = new BRating {
                Reasons = "Reasons"
            };

            //Act: The rating is checked if it is create valid.
            bool valid = rating.CreateValid();

            //Assert: The rating is valid for creation.
            Assert.AreEqual(true, valid);
        }
Beispiel #2
0
        public void BRatingWithInvalidMembers_WhenCreateValidated_ReturnsFalse()
        {
            //Arrange: a rating with all invalid members is created.
            BRating rating = new BRating{
                Reasons =
                    "1234567890123456789012345678901234567890123456789012345678901234567890"
            };

            //Act: The rating is checked if it is create valid.
            bool valid = rating.CreateValid();

            //Assert: The rating is not valid for creation.
            Assert.AreEqual(false, valid);
        }