Created
June 15, 2023 18:25
-
-
Save Mycoola/b44b30d09a7ecaac80a06cc68bd31f12 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
public class TaskUtilityTest | |
{ | |
@isTest static void testGetTaskPriority() | |
{ | |
String priority=TaskUtility.getTaskPriority('AU'); | |
System.assertEquals('Normal', priority); | |
} | |
@isTest static void testTaskHighPriority() | |
{ | |
String priority=TaskUtility.getTaskPriority('US'); | |
System.assertEquals('High', priority); | |
} | |
@isTest static void testTaskPriorityInvalid() | |
{ | |
String priority=TaskUtility.getTaskPriority('idfdf'); | |
System.assertEquals(null, priority); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment