DMocks-revived icon indicating copy to clipboard operation
DMocks-revived copied to clipboard

A mocking framework for the D programming language

Results 2 DMocks-revived issues
Sort by recently updated
recently updated
newest added

When a function to be mocked has an argument for which the comparison with `==` does not work, you have to switch to `ignoreArgs` and to `action`. In the action...

``` interface Dependency { int foo() out(result) { assert(result != int.init); } } unittest { auto mocker = new Mocker; auto dependency = mocker.mock!Dependency; mocker.expect(dependency.foo).returns(42); mocker.replay; assert(dependency.foo == 42); }...