public void SharepointSearchTo_CanRemove_FieldNameEmptyWithData_ReturnFalse() { //------------Setup for test-------------------------- var searchTo = new SharepointSearchTo { FieldName = "Contains"}; //------------Execute Test--------------------------- var canRemove = searchTo.CanRemove(); //------------Assert Results------------------------- Assert.IsFalse(canRemove); }
public void SharepointSearchTo_CanRemove_FieldNameEmpty_ReturnTrue() { //------------Setup for test-------------------------- var searchTo = new SharepointSearchTo { FieldName = string.Empty }; //------------Execute Test--------------------------- var canRemove = searchTo.CanRemove(); //------------Assert Results------------------------- Assert.IsTrue(canRemove); }