moles
How to tell Pex not to stub an abstract class that has concrete implementations
I\'m trying to use Pex to test some code. I have an abstract class with four concrete implementations.I have created factory methods for each of the four concrete types. I had also created one for the[详细]
2023-04-06 07:23 分类:问答Receiving Events at Compile-Time?
How do you execute custom code at compile time? Is there an attribute you can use to markup a static method which is then executed on each build?[详细]
2023-04-05 09:48 分类:问答The selected type is not visible and cannot be run by Pex
I\'m running Pex 1.4.40602.0.When I try to run Pex on an internal\" type I get a \"The selected type is not visible and cannot be run by Pex.\" error dialog.I have tried to place the following command[详细]
2023-04-04 13:47 分类:问答Moles and Stubs on build server
I\'m trying to get our team to use Moles and Stubs primarily to Mole out static classes.One thing I need to find out is do I have to install moles and stubs using the installation program on my build[详细]
2023-04-04 10:18 分类:问答How do you use Moles to mole DbContext from querying the database in EntityFramework 4.1?
I am using Entity Framework 4.1 for database access and would like to Unit Test the following code: // Get all the entities including children[详细]
2023-04-01 22:16 分类:问答Mole redirect not working
I am using Moles in a unit test to redirect calls to a logging application block (a wrapped version of the EntLib), and its working for some methods but not all.[详细]
2023-04-01 19:10 分类:问答xunit with the moles runner and xml output
Has anyone got this working? I\'m having trouble using the moles runner with the xunit console and getting the XML output to a file. I\'m using the following:[详细]
2023-03-30 07:59 分类:问答Microsoft Moles not creating moles for several methods
I am having a problem getting a couple of the static methods in my class to be moled, as well as getting the Diagnostics attribute in the .moles file to be recognized.[详细]
2023-03-29 00:25 分类:问答unit testing legacy code: limits of "extract and override" vs JustMock/TypeMock/moles?
Given the following conditions: a very old, big, C# legacy code base with no testcoverage whatsoever (almost) every class derives from some interface[详细]
2023-03-28 23:43 分类:问答Am I the only one getting "Assembly Not Available in the Currently Targeted Framework"?
I have had a persistent problem with Visual Studio 2010 and any framework version reporting this error, after adding a test project:[详细]
2023-03-28 23:41 分类:问答