Michael Gratton
749096cd38
test/mock-object.vala: Add explicit support for mocking async calls
...
Provide async equivalents of the `blah_call` methods, implement the
given async behaviour of expected async calls.
2020-04-10 12:39:56 +10:00
Michael Gratton
02adcfa8aa
test/mock-object.vala: Allow ExpectedCall to specify async behaviour
...
Add new AsyncCallOptions enum and property to allow specifying if async
calls should continue immediately, continute when idle, or pause until
manually released.
Add properties and method to allow check for and resuming a paused
async method.
2020-04-10 12:39:56 +10:00
Michael Gratton
91caff487b
Add support for uint args in expected calls in MockObject
2019-06-13 16:31:26 +10:00
Michael Gratton
bc64cd9847
Provide a way to access actual args for an expected mock call
2019-06-13 16:30:42 +10:00
Rafael Fontenelle
2509c5c4f0
Fix misspellings
2019-05-22 20:47:08 +00:00
Michael Gratton
b80f6b0db4
Minor fix for MockObject
2019-04-17 09:06:24 +10:00
Michael James Gratton
712088061b
Add a mock object mixin that can check call expectations on mocks.
...
* test/mock-object.vala: Add initial mock object implementation.
* test/test-case.vala; Add some useful high level assertion functions.
2018-04-07 10:02:18 +10:00