Exemplo n.º 1
0
        public void BAvatar_WhenCheckedForEquivilance_AlwaysIsFalse()
        {
            //Arrange: A avatar is created
            BAvatar avatar = new BAvatar();

            //Act: the avatar is checked to be equivilant to itself.
            bool equals = false;// avatar.Equivilant(avatar);

            //Assert: the avatar is valid for updating.
            Assert.AreEqual(false, equals);
        }
Exemplo n.º 2
0
        public void BAvatarWithValidMembers_WhenUpdateValidated_ReturnsTrue()
        {
            //Arrange: A avatar with all valid members is created.
            BAvatar avatar = new BAvatar{
                Url = "Url",
                Title = "Name"
            };

            //Act: the avatar is checked if it is update valid.
            bool valid = avatar.UpdateValid();

            //Assert: the avatar is valid for updating.
            Assert.AreEqual(true, valid);
        }
Exemplo n.º 3
0
        public void BAvatarWithInvalidMembers_WhenUpdateValidated_ReturnsFalse()
        {
            //Arrange: A avatar with all invalid members is created.
            BAvatar avatar = new BAvatar{
                Url = null,
                Title = "1234567890123456789012345678901234567890"
            };

            //Act: the avatar is checked if it is update valid.
            bool valid = avatar.UpdateValid();

            //Assert: the avatar is not valid for updating.
            Assert.AreEqual(false, valid);
        }
Exemplo n.º 4
0
        public void BBlocked_WhenDeleteValidated_ReturnsTrue()
        {
            //Arrange: A avatar is created
            BAvatar avatar = new BAvatar();

            //Act: the avatar is checked if it is update valid.
            bool valid = avatar.DeleteValid();

            //Assert: the avatar is valid for updating.
            Assert.AreEqual(true, valid);
        }