コード例 #1
0
 public void It_should_call_callback_on_EndAsyncProcess()
 {
     var apc = new ApcTest();
     var wasCalled = false;
     apc.EndAsyncProcess(new RemoraOperation(), new ComponentDefinition(), () => { wasCalled = true; });
     Assert.That(wasCalled);
 }
コード例 #2
0
 public void It_should_call_callback_with_true_on_BeginAsyncProcess()
 {
     var apc = new ApcTest();
     var wasCalled = false;
     apc.BeginAsyncProcess(new RemoraOperation(), new ComponentDefinition(), (b) =>
                                                                                 {
                                                                                     Assert.That(b);
                                                                                     wasCalled = true;
                                                                                 });
     Assert.That(wasCalled);
 }