CanAdd() public method

public CanAdd ( ) : bool
return bool
Ejemplo n.º 1
0
 public void FindRecordsTO_CanAdd_SearchTypeWithData_ReturnTrue()
 {
     //------------Setup for test--------------------------
     var findRecordsTO = new FindRecordsTO { SearchType = "Contains" };
     //------------Execute Test---------------------------
     Assert.IsTrue(findRecordsTO.CanAdd());
     //------------Assert Results-------------------------
 }
Ejemplo n.º 2
0
 public void FindRecordsTO_CanAdd_SearchTypeEmpty_ReturnFalse()
 {
     //------------Setup for test--------------------------
     var findRecordsTO = new FindRecordsTO { SearchType = string.Empty };
     //------------Execute Test---------------------------
     Assert.IsFalse(findRecordsTO.CanAdd());
     //------------Assert Results-------------------------
 }