title: Best Practice for Unit Testing Enum Translator
body: <p>What is the best practice for unit testing these kind of methods?</p>
  
  <pre><code>public VerificationResultCode Translate(int value)
      {
          VerificationResultCode result;
  
          if (Enum.IsDefined(typeof(VerificationResultCode), (int)value))
              result = (VerificationResultCode)((int)value);
          else
              throw new UnknownResultReturnFromGatewayException();
  
          return result;
      }
  </code></pre>
  
  <p>VerificationResultCode is Enum Type like:</p>
  
  <pre><code>public enum VerificationResultCode 
  {
          BankingNetworkError = 100,
          NotEqual =101,
          InputFormatError = 102,
          MerchantAuthenticationFailed = 103,
  
  ...
  }
  </code></pre>
  
  <p>Should we write a single test method for each of Enum Members or just write <strong>one</strong> test method with lots of Assertions?</p>