public void DataMergeDTO_ClearRow_PropertiesAreEmpty() { //------------Setup for test-------------------------- var dto = new DataMergeDTO { InputVariable = "xxx", MergeType = DataMergeDTO.MergeTypeNone, Alignment = "Right", At = "1", Padding = " " }; Assert.IsFalse(dto.IsEmpty()); //------------Execute Test--------------------------- dto.ClearRow(); //------------Assert Results------------------------- Assert.IsTrue(dto.IsEmpty()); }
public void DataMergeDTO_IsEmpty_PropertiesAreNotEmpty_False() { //------------Setup for test-------------------------- var dto = new DataMergeDTO { InputVariable = "xxx" }; //------------Execute Test--------------------------- var actual = dto.IsEmpty(); //------------Assert Results------------------------- Assert.IsFalse(actual); }
void Verify_IsEmpty(string mergeType) { //------------Setup for test-------------------------- var dto = new DataMergeDTO { MergeType = mergeType }; //------------Execute Test--------------------------- var actual = dto.IsEmpty(); //------------Assert Results------------------------- Assert.IsTrue(actual); }