public void SpawnSimpleProcess()
{
AutoResetEvent handle = new AutoResetEvent(false);
int count = 0;
IFunction func = new SpawnFunction();
IFunction lambda = new LambdaFunction(() => { count = 1; return handle.Set(); });
var result = func.Apply(null, new object[] { lambda });
Assert.IsNotNull(result);
Assert.IsInstanceOfType(result, typeof(Process));
handle.WaitOne();
Assert.AreEqual(1, count);
}