I installed Visual Studio 2012 Ultimate 30 days trial version. To get started with Microsoft Fakes I am following this tutorial . But when I added Fakes assembly for System.dll(In Unit test project .NET version 4/4.5/4.6 etc) It encountered into errors. Hence added workaround as per this post.
mscorlib.fakes xml filters:
<Fakes xmlns="http://schemas.microsoft.com/fakes/2011/">
<Assembly Name="mscorlib" Version="4.0.0.0"/>
<StubGeneration>
<Clear/>
<Remove FullName="System.Diagnostics.Tracing!"/>
<Remove FullName="System.Text.Encoding!"/>
<Remove FullName="System.Security.Cryptography!" />
<Remove FullName="System.Security.Cryptography.Certificates!" />
</StubGeneration>
<ShimGeneration>
<Clear />
<Add FullName="System.DateTime!" />
</ShimGeneration>
</Fakes>
The errors are resolved, but now it is giving me error
The name 'ShimDateTime' does not exist in the current context.
- Can you please tell me why this error? And how to resolve it?
FYI: As stated into this post, errors are resolved into VS 2015 Enterprise edition.
- That means do I need to purchase VS 2015 Enterprise Edition(Or higher)?