mardi 30 août 2016

how to test setter and getter?

how to test setters and getters?

function someClass(){
   var data;

   this.setData = function(value){
       // some complex logic
   }

   this.getData = function(){
      // some complex logic
   }
}

is it right way for execute setData and getData for test it bouts in one test case?

Aucun commentaire:

Enregistrer un commentaire