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