Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:48:02+00:00 2026-06-13T03:48:02+00:00

I am using VS2012 Fakes and MSTEST framework to do unit test. I have

  • 0

I am using VS2012 Fakes and MSTEST framework to do unit test. I have a third party dll and I need to fake it. However there is a method (getItemAt(int)) in the dll that seems to conflict with a method that exits in Fakes.

The error message I get during compile is:

Error 2 The type ‘MyObject.Fakes.ShimList’ already contains a
definition for ‘get_ItemAtInt32’
[D:\Dev\Test\obj\Debug\Fakes\o\f.csproj] D:\Dev\Teste\f.cs 6933 111 Test

Any solution to pass by this error to continue work with Fakes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:48:03+00:00Added an answer on June 13, 2026 at 3:48 am

    It appears that the Fakes code generator breaks when trying to generate a shim for MyObject.List class in this third-party library. Could you submit this at http://connect.microsoft.com/VisualStudio? In the meantime, you can use the approach described here to generate only those stubs and shims you actually plan to use. Hopefully, that does not include the MyObject.List class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TFS 2012 project that I built using VS2012 RC and the
we've been looking into using the new Fakes framework to help us increase the
I'm trying to use the g2log logging library inside my DLL project using VS2012.
I am using VS2012 and having some troubles publishing an mvc4 website. None of
Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
I'm using VS2010 Beta 2, I have a Complex Type called Address with the
Using Visual Studio 2012 to generate stubs with Add Fakes Assembly, everything works as
I'm using VS2012 and SQL Server Express 2008. I've boiled down my connection/query to
I'm using VS2012 with TFS2010 (which may or may not matter). I cannot seem
I've created a simple Windows Form Application using VS2012 and I'm trying to install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.