Beispiel #1
0
        public void loading_pipes_module_executes_function()
        {
            bool handlerWasCalled = false;

            var handler = new Func <string, string>(ahkMessage => {
                handlerWasCalled = true;
                System.Threading.Thread.Sleep(1000);
                return("OK");
            });

            ahk.InitalizePipesModule(handler);
            ahk.ExecRaw("serverResult := SendPipeMessage(\"testing\")");
            Assert.True(handlerWasCalled);
        }