Which assertion would be used in a negative test case?
A developer is writing unit tests for the following method:
![]()
Which assertion would be used in a negative test case?
A . System.assertEquals(true, isFreezing(null))
B . System.assertEquals (true, isFreezing(‘O’)
C . System.assertEquals(null, isFreezing(‘asdf))
D . System.assertEquals(true, isFreezingClOO’))
Answer: C
Latest PDII Practice Questions with 280 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments