The name of function mock.
The count of realization for override function.
Are return values.
If function not virtual, will throw an AssertError.
1 interface Dummy 2 { 3 int test(); 4 } 5 auto mock = new Mock!Dummy; 6 mock.returnValue!"test"(1,2); 7 assert(mock.test() == 1); 8 assert(mock.test() == 2);
Add a value to be returned by the mock.