I am working on an MVVM project that parses records out of encrypted data files, on demand. There is no real data source for this project, for Entity Framework 4.1 to reference. Every time I build the model assembly, I get a huge pile of warnings for Error 11007 and 11008.
Because I am a savvy developer (and slightly obsessive-compulsive), I don't want to see any compiler warnings after a build. Because I know these are non-issue warnings, I can safely disable them. Here's how to disable EF warnings in your projects:
28 February 2012
15 December 2011
Pex and Moles to be Visual Studio 11 Feature Set
at
14:16
In true, "I will neither confirm nor deny" Microsoft fashion, a little bird in Redmond informed me that Pex and Moles will have no further releases, because they are being "productized". Another, larger bird stated, "dependency isolation will be taken care of, in Visual Studio 2012," when I asked if Moles and Pex will be rolled into VS 2012.
The Visual Studio 2012 community technical preview (CTP) is available for download to anybody. However, the Moles and Pex products are not yet integrated into the application. There are several points of integration the need to be perfected, before adding it.
Note, this VS11 download is a BETA version, and is incomplete. Many more features are still cooking. Stability is OK, but use it at your own risk! Visual Studio 2012 Beta will (should) receive updates from Microsoft Update, to keep it current with the newest release.
(This post is extracted from the Testing with Microsoft Pex and Moles page of this blog. I felt this information was worth putting in its own post, after sitting in a sidebar, since May 2011.)
UPDATE: Changed the link and name to reflect the Beta release.
The Visual Studio 2012 community technical preview (CTP) is available for download to anybody. However, the Moles and Pex products are not yet integrated into the application. There are several points of integration the need to be perfected, before adding it.
Note, this VS11 download is a BETA version, and is incomplete. Many more features are still cooking. Stability is OK, but use it at your own risk! Visual Studio 2012 Beta will (should) receive updates from Microsoft Update, to keep it current with the newest release.
(This post is extracted from the Testing with Microsoft Pex and Moles page of this blog. I felt this information was worth putting in its own post, after sitting in a sidebar, since May 2011.)
UPDATE: Changed the link and name to reflect the Beta release.
How To Mole the System Assembly
at
13:56
The System namespace may be moled, in addition to any other child namespace. For instance, you may want to detour calls away from System.StringComparer, which is a member of the System assembly. To mole members of the .NET Framework "System" namespace, follow these four steps:
22 November 2011
How To Detour a Static Constructor
at
13:37
Static constructors pose a challenge. Naturally, one can not call the constructor of a static class. This also means that the Moles Framework does not provide an accessor to detour the constructor of a static class. However, Moles provides a way to erase static constructors, to prevent them from executing. Simply add the MolesDisableStaticConstructor assembly attribute to the test class:
[assembly: MolesEraseStaticConstructor(typeof(MyStatic))]
Subscribe to:
Posts (Atom)