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 Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments