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
Notify of
guest
0 Comments