I have this method in ContractClass
:
public UserModel GetUser(string groupName, string login) {
Contract.Requires(groupName != null);
Contract.Requires(groupName != string.Empty);
Contract.Requires(login != null);
Contract.Requires(login != string.Empty);
return default(UserModel);
}
How would you test this? Do you test all combinations of all possible scenarios when contract fails (ex: groupName
is empty and login
is null ... and so on)?