function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nishad BashaNishad Basha 

negative test class in salesforce

bob_buzzardbob_buzzard
Care to give us any more clues, or was this just a general statement?
Nishad BashaNishad Basha
give the examples of above scenario
bob_buzzardbob_buzzard
The developer's guide is a good place to start:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_example.htm#negative_test_case