예제 #1
0
        public void ActivityDTO_CanAdd_FieldNameNullAndFieldValueHasValue_True()
        {
            //------------Setup for test--------------------------
            var activityDTO = new ActivityDTO {
                FieldName = null, FieldValue = "FieldValue"
            };
            //------------Execute Test---------------------------
            var canRemove = activityDTO.CanAdd();

            //------------Assert Results-------------------------
            Assert.IsTrue(canRemove);
        }
예제 #2
0
        public void ActivityDTO_CanAdd_FieldNameAndFieldValueEmpty_False()
        {
            //------------Setup for test--------------------------
            var activityDTO = new ActivityDTO {
                FieldName = "", FieldValue = ""
            };
            //------------Execute Test---------------------------
            var canRemove = activityDTO.CanAdd();

            //------------Assert Results-------------------------
            Assert.IsFalse(canRemove);
        }
예제 #3
0
 public void ActivityDTO_CanAdd_FieldNameNullAndFieldValueHasValue_True()
 {
     //------------Setup for test--------------------------
     var activityDTO = new ActivityDTO { FieldName = null, FieldValue = "FieldValue" };
     //------------Execute Test---------------------------
     var canRemove = activityDTO.CanAdd();
     //------------Assert Results-------------------------
     Assert.IsTrue(canRemove);
 }
예제 #4
0
 public void ActivityDTO_CanAdd_FieldNameAndFieldValueEmpty_False()
 {
     //------------Setup for test--------------------------
     var activityDTO = new ActivityDTO { FieldName = "", FieldValue = "" };
     //------------Execute Test---------------------------
     var canRemove = activityDTO.CanAdd();
     //------------Assert Results-------------------------
     Assert.IsFalse(canRemove);
 }