pex-and-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 分类:问答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 分类:问答Can't create Mole for System.Environment class
I want to replace behavior of Environment.GetFo开发者_开发百科lderPath in my unittest, but after generation moles for System assembly, System.Moles assembly does not contain definition of type MEnviro[详细]
2023-03-28 14:06 分类:问答Can't Create Mole Type for System.Diagnostics.EventLog
I am building (yet another) Windows Service, using TDD and Moles.This projec开发者_运维问答t includes extensions to System.Dagnostics.EventLog, tot include details of the input parameter Exception obj[详细]
2023-03-27 11:14 分类:问答Moles does not show new Method Signatures after Changes in Class
I had class Voo { private static AnotherClass Doo(int id) { //do some stuff with id then return object of AnotherClass[详细]
2023-03-27 07:31 分类:问答How to call delegate only once / one time with moles?
How is it possible to call a delegated Method only once / one time with moles? MyClass.AllInstances.ResultateGet = delegate { return new ResultatInfoColle开发者_如何学Pythonction(); };[详细]
2023-03-26 00:37 分类:问答Pex and F# in Visual Studio 2010 Ultimate
I have been trying using Pex in a F# project but I have faced several issues on which I would appreciate some help:[详细]
2023-03-25 21:30 分类:问答Hooking methods in another process with Moles
I have a C# application compiled with visual studio. I want 开发者_开发技巧to intercept and log calls and serialized method parameters to some specific methods in that app. Is it possible to intercept[详细]
2023-03-25 09:41 分类:问答Pex not satisfying code contract
I\'m trying to wrote a pex test, and I noticed that it always was feeding a false value as one of the params that I wanted. My test looked like this (simplified: there are/were more params, but otherw[详细]
2023-03-23 09:49 分类:问答