public void InvokeParametersTest() { int value = 0; DispatcherOperation operation0 = new DispatcherOperation(() => value = 1); operation0.Invoke(); Assert.AreEqual(1, value); }
public void InvokeResultTest() { DispatcherOperation operation0 = new DispatcherOperation(() => "operation-result"); operation0.Invoke(); Assert.AreEqual("operation-result", operation0.Result); }