Hiện tại, Microsoft Fakes không hoạt động trong VS 2010. Dự án sẽ biên dịch tuy nhiên các thử nghiệm sử dụng Fakes ném NotSupportedException với theo dõi ngăn xếp sau.
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.InvokeEvent(T value, Action`1 eh)
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.OnAttachedUnsupportedMethod(MethodBase method)
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.CheckInstrumentation(MethodBase method)
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.InternalAttachDetour(Object optionalReceiver, MethodBase method, Delegate detourDelegate)
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.AttachDetour(Object optionalReceiver, MethodBase method, Delegate detourDelegate)
Tôi khuyên bạn nên sử dụng Moles, phiên bản trước của Microsoft Fakes. Đây là tuyệt vời article về di chuyển từ nốt ruồi sang hàng giả.
Giả thuyết của tôi là nó sẽ hoạt động vào năm 2010 nếu tất cả các tham chiếu phụ thuộc được đưa vào dự án, nhưng năm 2010 sẽ không có bất kỳ Giao diện người dùng hoặc Intellisense nào cho Khung thực thi, yêu cầu VS 2012 Premium trở lên. –
Hàng giả thậm chí yêu cầu VS.Net 2012 Ultimate, theo http://www.microsoft.com/visualstudio/eng/products/compare –