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); }
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); }