Activity › Forums › Salesforce® Discussions › Negative Tests in Test class in Salesforce? Salesforce® Discussions Negative Tests in Test class in Salesforce? Posted by Anuj on April 17, 2020 at 11:16 AM What are Negative Tests in Test class in Salesforce? Marziya replied 6 years, 1 month ago 4 Members · 3 Replies 3 Replies Anjali Member April 17, 2020 at 1:15 PM Negative testing demonstrates that your code properly handles invalid data and exceptions. [adinserter block='9'] Ayush Member April 20, 2020 at 11:11 AM Negative testing demonstrates that your code properly handles invalid data. Marziya Member April 20, 2020 at 11:23 AM Hiii Anuj, The Pattern. Positive testing tests your code with valid inputs to demonstrate what happens when your code functions properly. Negative testing demonstrates that your code properly handles invalid data and exceptions. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me