title: test class for inserting contacts through the following class
body: <p>I have one apex class which inserts the contacts.i wrote one test class for that where its is passing but the code coverage is zero.can somebody suggest what i missed?
  test class:
      @isTest
      public class TestReferalAccessclass
      {
        static testMethod void ReferalAccessclassMethod()
          {
        Test.StartTest();
        Contact c=new Contact(FirstName='fname',LastName = 'lname',Email =    'email@gmail.com',Phone = '9743800309');
        insert c;
        System.AssertNotEquals(Null, c.Id);
        Test.StopTest();</p>
  
  <pre><code> }    
  
  }
  apex class:
      public without sharing class ReferalAccessclass {
      public String inputID{get; set;}
      public String firstName{get; set;}
      public String lastName{get; set;}
      public String email{get; set;}
      public String phone{get; set;}
      public Decimal exp{get; set;}
      public String location{get; set;}
      public contact con{get;set;}
  
      Public attachment objAttachment{get; set;}
  
      public ReferalAccessclass(ApexPages.StandardController controller) 
        { 
  
      objAttachment = new Attachment();
  
      }
  
    public void saveInformation()
  {
  try{
      IF(inputID != 'NULL'){
      con = [SELECT ID,Name,FirstName,LastName,Email,Phone,Years_of_Experience__c,Location__c FROM Contact where ID =: inputID ];
  
      con.FirstName = firstName;
      con.LastName = lastName;
      con.Email = email;
      con.Phone = phone; 
      }
      update con;
      objAttachment.ParentId = con.id;
      Insert objAttachment;
  
     }
    catch(exception e){} 
    ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL, 'Thank you for your valuable response');
  </code></pre>
  
  <p>//return null; </p>
  
  <pre><code>}
  
  }
  </code></pre>