title: Nunit testing while using object as parameter
body: <p>I have a class "patientinfo" which include variable e.g., firstname, lastname, age, weight, height, gender .... Each of these variables have get and set methods too. 
  Another class "program has following method</p>
  
  <pre><code>       public double weightCalc(patientinfo p3)
         {
          if (p3.getGender() == "male" || (p3.getGender() == "MALE")
              { 
                  //Calculate ideal body weight
                  idealWeight = (50 + (2.3 * (p3.getheight() - 60)));
              }
              else
              {
                  //Calculate ideal body weight
                  idealWeight = (45.5 + (2.3 * (p3.getheight() - 60)));
              }
          return idealWeight;
  </code></pre>
  
  <p>I have to prepare a test case for NUnit for this method. As I m a basic learner, expecting the ideas on how to pass the value of height or getheight in test class please</p>