unit testing - Why there is no `expectAsync3` in dart's unittest? -
i see there expectasync0
, expectasync1
, expectasync2
provided dart's unittest library, no expectasync3
, expectasync4
, ...
what if want test function has 3 parameters?
myadd(int x, int y, int z) { return x+y+z; }
i expect write:
var fun = expectasync3(myadd);
but can't find such method.
as günter zöchbauer said: there wasn't demand it.
in meantime can work around it:
var done = expectasync0(() {}); var fun = (x, y, z) { done(); return myadd(x, y, z); };
Comments
Post a Comment