Exemplo n.º 1
0
        public void BBlocked_WhenDeleteValidated_ReturnsTrue()
        {
            //Arrange: A user_profile is created
            BUser_Profile user_profile = new BUser_Profile();

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

            //Assert: the user_profile is valid for updating.
            Assert.AreEqual(true, valid);
        }
Exemplo n.º 2
0
        public void BUser_ProfileWithValidMembers_WhenUpdateValidated_ReturnsTrue()
        {
            //Arrange: A user_profile with all valid members is created.
            BUser_Profile user_profile = new BUser_Profile{
                Long_Alias = "Long",
                Short_Alias = "S",
                username="******"
            };

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

            //Assert: the user_profile is valid for updating.
            Assert.AreEqual(true, valid);
        }
Exemplo n.º 3
0
        public void BUser_ProfileWithInvalidMembers_WhenUpdateValidated_ReturnsFalse()
        {
            //Arrange: A user_profile with all invalid members is created.
            BUser_Profile user_profile = new BUser_Profile{
                Long_Alias = "1234567890123456789012345678901234567890",
                Short_Alias = "1234567890",
                username=null
            };

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

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

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

            //Assert: the user_profile is valid for updating.
            Assert.AreEqual(false, equals);
        }