The VerifyInvoke and VerifyNotInvoked extension methods currently only target BunitJSInterop, but it would be useful if they were also available for JSRuntimeInvocationHandler, so it is possible to verify only for invocation for specific handlers.
The code will be more or less identical, since both JSRuntimeInvocationHandler and BunitJSInterop has a Invocation list that contains the same type, and is the one we are verifying against. So adding the appropriate overrides to JSRuntimeAssertExtensions should be all thats needed.
The
VerifyInvokeandVerifyNotInvokedextension methods currently only target BunitJSInterop, but it would be useful if they were also available forJSRuntimeInvocationHandler, so it is possible to verify only for invocation for specific handlers.The code will be more or less identical, since both
JSRuntimeInvocationHandlerandBunitJSInterophas aInvocationlist that contains the same type, and is the one we are verifying against. So adding the appropriate overrides toJSRuntimeAssertExtensionsshould be all thats needed.