public async Task Test002() { var identifier = "test"; var handler = new MockJsRuntimeInvokeHandler(); await handler.ToJsRuntime().InvokeVoidAsync(identifier); Should.Throw <JsInvokeCountExpectedException>(() => handler.VerifyNotInvoke(identifier)); }
public async Task Test003() { var identifier = "test"; var errMsg = "HELLO WORLD"; var handler = new MockJsRuntimeInvokeHandler(); await handler.ToJsRuntime().InvokeVoidAsync(identifier); Should.Throw <JsInvokeCountExpectedException>(() => handler.VerifyNotInvoke(identifier, errMsg)) .Message.ShouldContain(errMsg); }
public void Test004() { var handler = new MockJsRuntimeInvokeHandler(); handler.VerifyNotInvoke("FOOBAR"); }