- Right-click the test project References node, in Solution Explorer
- Select the "Add moles assembly for mscorlib"
- Compile the solution
You are now able to add using declarations for any .NET Framework type. Do so by adding ".Moles" to the end of the desired namespace. For example:
using System.IO.Moles; using System.Net.NetworkInformation.Moles;
No comments:
Post a Comment
Please provide details, when posting technical comments. If you find an error in sample code or have found bad information/misinformation in a post, please e-mail me details, so I can make corrections as quickly as possible.