-
```
I have a clas with the following constructor
public Struct(NameValue[] nameValueArray)
{
_nvs = nameValueArray;
}
that I want to mock. Problem is that I get Unexpected const…
-
```
I have a clas with the following constructor
public Struct(NameValue[] nameValueArray)
{
_nvs = nameValueArray;
}
that I want to mock. Problem is that I get Unexpected const…
-
```
What steps will reproduce the problem?
1. Create interface with virtual operator (e.g. operator==())
2. Create mock class implementing interface
3. Create instance of mock class
What is the expec…
-
```
What steps will reproduce the problem?
1. Create interface with virtual operator (e.g. operator==())
2. Create mock class implementing interface
3. Create instance of mock class
What is the expec…
-
I would like to be able to mock a method that doesn't exist.
-
```
I know this isn't exactly a recommended practice, but for the sake of
consistency, here's what I came across:
1 - Put this code in the same assembly (heck, put it in the same file already)
publi…
-
```
What steps will reproduce the problem?
I have something like the following code:
public interface IStore
{
T GetBy(Func criteria);
}
public class UserFinder
{
private IStore _store;
…
-
```
What steps will reproduce the problem?
1. Create interface with virtual operator (e.g. operator==())
2. Create mock class implementing interface
3. Create instance of mock class
What is the expec…
-
```
I was wondering whether JsTestDriver supports mocking AJAX/jQuery calls?
I'm currently testing against an environment which I cannot get access to,
so the only way to do so is to mock up the AJA…
-
```
When I attempt to run a spec that mocks java.io.PrintStream I get an
IllegalArgumentException thrown:
class PrintSpec extends Specification {
private PrintStream printStream = Mock()
}
spoc…