title: how to test setter and getter?
body: <p>how to test setters and getters?</p>
  
  <pre><code>function someClass(){
     var data;
  
     this.setData = function(value){
         // some complex logic
     }
  
     this.getData = function(){
        // some complex logic
     }
  }
  </code></pre>
  
  <p>is it right way for execute setData and getData for test it bouts in one test case? </p>