{"ScriptPreparationCode":"const value = \u0027Cancelled\u0027;\r\nconst obj = { Rejected: true, Cancelled: true }","TestCases":[{"Name":"ifTest1","Code":"function ifTest1()\r\n{\r\n\tif(value === \u0027Rejected\u0027 || value === \u0027Cancelled\u0027){\r\n \treturn true;\r\n }\r\n}","IsDeferred":false},{"Name":"ifTest2","Code":"function ifTest2()\r\n{\r\n\tif(value === \u0027Blue\u0027 || value === \u0027Red\u0027) {\r\n \treturn false;\r\n }\r\n \r\n\tif(value === \u0027Rejected\u0027 || value === \u0027Cancelled\u0027){\r\n \treturn true;\r\n }\r\n}","IsDeferred":false},{"Name":"ifTest3","Code":"function ifTest3()\r\n{\r\n\tif(value === \u0027Rejected\u0027 || value === \u0027Cancelled\u0027){\r\n \treturn true;\r\n }\r\n \r\n if(value === \u0027Blue\u0027 || value === \u0027Red\u0027) {\r\n \treturn false;\r\n }\r\n}\r\n","IsDeferred":false},{"Name":"switchTest1","Code":"function switchTest1()\r\n{\r\n\tswitch(value) {\r\n \tcase \u0027Rejected\u0027: return true;\r\n case \u0027Cancelled\u0027: return true;\r\n }\r\n}","IsDeferred":false},{"Name":"switchTest2","Code":"function switchTest2()\r\n{\r\n\tswitch(value) {\r\n \tcase \u0027Rejected\u0027: return true;\r\n case \u0027Cancelled\u0027: return true;\r\n default: return false;\r\n }\r\n}\r\n","IsDeferred":false},{"Name":"switchTest3","Code":"function switchTest3()\r\n{\r\n\tswitch(value) {\r\n \tcase \u0027Rejected\u0027: return true;\r\n case \u0027Blue\u0027: return false;\r\n case \u0027Red\u0027: return false;\r\n case \u0027Cancelled\u0027: return true; \r\n default: return false;\r\n }\r\n}","IsDeferred":false},{"Name":"Object keys","Code":"function objectKeys() {\r\n return value in obj;\r\n}","IsDeferred":false}]}