title: Unit test failure in C# Prime Factors Kata
body: <p>Longtime programmer, new to C#. Just started on the Prime Factors Kata using VS2012 and the built-in test framework. On the first test, the expected and actual match, yet it's flagged as a failure. Can anyone explain why, and more importantly what the work-around is? </p>
  
  <pre><code>using System.Collections.Generic;
  using Microsoft.VisualStudio.TestTools.UnitTesting;
  
  namespace PrimeFactorsKata
  {
      [TestClass]
      public class UnitTest1
      {
          private static List&lt;int&gt; ExpectedList()
          {
              return new List&lt;int&gt;();
          }
  
          [TestMethod]
          public void TestOne()
          {
              Assert.AreEqual(ExpectedList(), PrimeFactorGenerator.Generate(1));
          }
      }
  
      class PrimeFactorGenerator
      {
          public static List&lt;int&gt; Generate(int n)
          {
              return new List&lt;int&gt;();
          }
      }
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Assert.AreEqual failed. 
  Expected:&lt;System.Collections.Generic.List`1[System.Int32]&gt;. 
  Actual:&lt;System.Collections.Generic.List`1[System.Int32]&gt;. 
  
     at PrimeFactorsTest.UnitTest1.TestOne() in UnitTest1.cs: line 17
  </code></pre>