CanRemove() public method

public CanRemove ( ) : bool
return bool
コード例 #1
0
 public void DataSplitDTO_CanRemove_WithNoInputVarAndNoAt_ReturnTrue()
 {
     //------------Setup for test--------------------------
     //------------Execute Test---------------------------
     var dataSplitDTO = new DataSplitDTO(string.Empty, null, null, 1);
     //------------Assert Results-------------------------
     Assert.IsTrue(dataSplitDTO.CanRemove());
 }
コード例 #2
0
 public void DataSplitDTO_CanRemove_WithNewLineInputTypeAndVar_ReturnFalse()
 {
     //------------Setup for test--------------------------
     //------------Execute Test---------------------------
     var dataSplitDTO = new DataSplitDTO("s", "NewLine", null, 1);
     //------------Assert Results-------------------------
     Assert.IsFalse(dataSplitDTO.CanRemove());
 }
コード例 #3
0
 public void DataSplitDTO_CanRemove_WithNoInputVarButValueForAt_ReturnFalse()
 {
     //------------Setup for test--------------------------
     //------------Execute Test---------------------------
     var dataSplitDTO = new DataSplitDTO(string.Empty, null, "|", 1);
     //------------Assert Results-------------------------
     Assert.IsFalse(dataSplitDTO.CanRemove());
 }