Which assertion wou...
 
Notifications
Clear all

Which assertion would be used in a negative test case?

1 Posts
1 Users
0 Likes
22 Views
Rocky
(@goyrocky)
Noble Member
Joined: 7 months ago
Posts: 371
Topic starter  

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'))

Show Answer Hide Answer

Suggested Answer: C

   
Quote
Share: