Assert service outcomes
A test needs an expected value to compare with the real result.
Your task
Finish verify so the test fails whenever the service label is not the expected one.
@IsTest
public class AS_A666623FE257_PriorityTests {
public static String verify(Integer score, String expected) {
String actual = AS_A666623FE257_Priority.label(score);
return null;
}
@IsTest
static void urgentScore() {
verify(80, 'Urgent');
}
}Requirements
- verifiesUrgentEdge should pass
- verifiesStandardScore should pass
- verifiesNullScore should pass
- catchesWrongUrgentLabel should pass
- catchesWrongStandardLabel should pass