title: How to use [SetUp] method to arrange for a unit test. How about parameters?
body: <pre><code>public class CoffeeStrengthEstimator
  {
      /// &lt;summary&gt;
      ///     Estimates the strength of the coffee (how many beans to use) depending on the button pressed
      /// &lt;/summary&gt;
      /// &lt;param name="buttonPressed"&gt; The numeral position of the button pressed&lt;/param&gt;
      /// &lt;returns&gt;An enum value indicating the estimated coffee strength&lt;/returns&gt;
      public CoffeeStrength EstimateCoffeeStrength(int buttonPressed)
      {
          if (buttonPressed == 1)
          {
              return CoffeeStrength.Light;
          }
          else if (buttonPressed == 2)
          {
              return CoffeeStrength.Medium;
          }
          else if (buttonPressed == 3)
          {
              return CoffeeStrength.Strong;
          }
          else
          {
              throw new ArgumentException ("Invalid Button press, please try again");
          }
      }
  }
  
  public enum CoffeeStrength
  {
      Light,
      Medium,
      Strong
  }
  </code></pre>
  
  <p>===> Is it ok to write a unit test to test the above method; and create a new object of class CoffeeMaker and object of Coffee class with a method that takes only 2 parameters? </p>