Ejemplo n.º 1
0
        public void ActivityDTO_CanRemove_FieldNameNullAndFieldValueHasValue_False()
        {
            //------------Setup for test--------------------------
            var activityDTO = new ActivityDTO {
                FieldName = null, FieldValue = "FieldValue"
            };
            //------------Execute Test---------------------------
            var canRemove = activityDTO.CanRemove();

            //------------Assert Results-------------------------
            Assert.IsFalse(canRemove);
        }
Ejemplo n.º 2
0
        public void ActivityDTO_CanRemove_FieldNameAndFieldValueEmpty_True()
        {
            //------------Setup for test--------------------------
            var activityDTO = new ActivityDTO {
                FieldName = "", FieldValue = ""
            };
            //------------Execute Test---------------------------
            var canRemove = activityDTO.CanRemove();

            //------------Assert Results-------------------------
            Assert.IsTrue(canRemove);
        }
Ejemplo n.º 3
0
 public void ActivityDTO_CanRemove_FieldNameNullAndFieldValueHasValue_False()
 {
     //------------Setup for test--------------------------
     var activityDTO = new ActivityDTO { FieldName = null, FieldValue = "FieldValue" };
     //------------Execute Test---------------------------
     var canRemove = activityDTO.CanRemove();
     //------------Assert Results-------------------------
     Assert.IsFalse(canRemove);
 }
Ejemplo n.º 4
0
 public void ActivityDTO_CanRemove_FieldNameAndFieldValueEmpty_True()
 {
     //------------Setup for test--------------------------
     var activityDTO = new ActivityDTO { FieldName = "", FieldValue = "" };
     //------------Execute Test---------------------------
     var canRemove = activityDTO.CanRemove();
     //------------Assert Results-------------------------
     Assert.IsTrue(canRemove);
 }