Exemple #1
0
        public async Task Test002()
        {
            var identifier = "test";
            var handler    = new MockJsRuntimeInvokeHandler();
            await handler.ToJsRuntime().InvokeVoidAsync(identifier);

            Should.Throw <JsInvokeCountExpectedException>(() => handler.VerifyNotInvoke(identifier));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void Test004()
        {
            var handler = new MockJsRuntimeInvokeHandler();

            handler.VerifyNotInvoke("FOOBAR");
        }