public bool CanRemove()
{
if (string.IsNullOrEmpty(SearchCriteria) && string.IsNullOrEmpty(SearchType))
{
return true;
}
return false;
}
public void FindRecordsTO_CanRemove_SearchTypeEmptyAndSearchTypeWithData_ReturnFalse() { //------------Setup for test-------------------------- var findRecordsTO = new FindRecordsTO { SearchType = string.Empty, SearchCriteria = "Data" }; //------------Execute Test--------------------------- Assert.IsFalse(findRecordsTO.CanRemove()); //------------Assert Results------------------------- }