-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
### Introduction
BDD Frameworks like cucumber are usually designed to work well with frontends but not with mocked backend tests. For this it's necessary to share the State of the test between the te…
BeWut updated
5 years ago
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
Instead of mocking stuff, there are Test... classes. Would be nice to get rid of these.
Current weapon of choice is FakeItEasy
-
I have managed to successfully mock a query using:
```
var conn = new Apps72.Dev.Data.DbMocker.MockDbConnection();
conn.Mocks
.When(cmd => cmd.CommandText.StartsWith("S…
-
Add functions to mock user input.