• Gopal P 5
  • NEWBIE
  • 15 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,

Pls let me know, How to pass a Date value as an argument to a method.  I am refering the following method in a test class. I tried the following ways. but it showing an error.
1...
@isTest static void check1(){
      Date chk1 = verifyDate.CheckDates('2015-03-08','2015-02-20');
    System.assertEquals('2015-02-20', chk1); }
2...
@isTest static void check1(){
      Date chk1 = verifyDate.CheckDates(2015-03-08,2015-02-20);
    System.assertEquals(2015-02-20, chk1); }