To make it easier/more intuitive to mock a InvokeVoidAsync call, the MockJsRuntimeInvocationHandler should have a SetupVoid method in addition to the Setup methods.
This means there should probably also be SetCompleted method in JsRuntimePlannedInvocation, or at least a SetResult without parameters.
To make it easier/more intuitive to mock a
InvokeVoidAsynccall, the MockJsRuntimeInvocationHandler should have aSetupVoidmethod in addition to theSetupmethods.This means there should probably also be
SetCompletedmethod inJsRuntimePlannedInvocation, or at least aSetResultwithout parameters.