Esempio n. 1
0
        static void Main(string[] args)
        {
            //Arrange: A entry with invalid members is constructed.
            BImage image = new BImage { username = null, shapes = null, Title = "123456789123456789123456789123456789" };

            //Act: the image is checked to be create valid.
            bool valid = image.CreateValid();
            image.Format();
        }
Esempio n. 2
0
        public void BImageWithValidMembers_WhenCheckedIfUpdateValid_IsTrue()
        {
            //Arrange: A entry with valid members is constructed.
            BImage image = new BImage();
            image.Format();

            //Act: the image is checked to be update valid.
            bool valid = image.UpdateValid();

            //Assert: the image is update valid.
            Assert.AreEqual(true, valid);
        }
Esempio n. 3
0
        public void BImageWithValidMembers_WhenCheckedIfCreateValid_IsTrue()
        {
            //Arrange: A entry with valid members is constructed.
            BImage image = new BImage { username="******", Title="Title"};
            image.Format();

            //Act: the image is checked to be create valid.
            bool valid = image.CreateValid();

            //Assert: the image is create valid.
            Assert.AreEqual(true, valid);
        }