Exemple #1
0
        public void ActivityDTO_ClearRow_Executed_SetsFieldNameFieldValueToEmptyString()
        {
            //------------Setup for test--------------------------
            var activityDTO = new ActivityDTO();

            //------------Precondition----------------------------
            Assert.IsFalse(string.IsNullOrEmpty(activityDTO.FieldName));
            Assert.IsFalse(string.IsNullOrEmpty(activityDTO.FieldValue));
            //------------Execute Test---------------------------
            activityDTO.ClearRow();
            //------------Assert Results-------------------------
            Assert.AreEqual(string.Empty, activityDTO.FieldName);
            Assert.AreEqual(string.Empty, activityDTO.FieldValue);
        }
Exemple #2
0
 public void ActivityDTO_ClearRow_Executed_SetsFieldNameFieldValueToEmptyString()
 {
     //------------Setup for test--------------------------
     var activityDTO = new ActivityDTO();
     //------------Precondition----------------------------
     Assert.IsFalse(string.IsNullOrEmpty(activityDTO.FieldName));
     Assert.IsFalse(string.IsNullOrEmpty(activityDTO.FieldValue));
     //------------Execute Test---------------------------
     activityDTO.ClearRow();
     //------------Assert Results-------------------------
     Assert.AreEqual(string.Empty, activityDTO.FieldName);
     Assert.AreEqual(string.Empty, activityDTO.FieldValue);
 }