title: Assert.AreEqual to not fail when comparing an enum and an int
body: <p>I'm not sure if this is doable, but I will just give a shot.</p>
  
  <p>I am calling Assert.AreEqual() method.
  For the parameters, I'm passing...</p>
  
  <ol>
  <li>an enum value which has Int32 as the underlying type because I didn't specify the base type<br/></li>
  <li>an int (Int32) value</li>
  </ol>
  
  <p><strong>Assert fails because it sees that the enum is not int</strong> (which is definitely correct).<br/>
  However, is there a way to make this Assert pass when the enum has the correct int value as the 2nd parameter? <br/></p>
  
  <p><strong>I can cast the enum to int and have it a quick fix, but it's really ugly.</strong><br/>
  I was expecting some kind of overriding a method that Assert uses to compare 2 different objects and implicitly make that enum type look like an int. However, I wasn't successful at finding any hint/answer around that so far.<br/>
  <br/>
  Someone suggested to <a href="http://msdn.microsoft.com/en-us/library/ayybcxe5.aspx" rel="nofollow noreferrer">create a type converter</a> and use the <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.typeconverterattribute.aspx" rel="nofollow noreferrer">TypeConverterAttribute</a> to get around. If this works for sure and is the only way to do it, I would; however, it does seem a lot of unnecessary work.</p>