diff Implab.Test/PollingComponentTests.cs @ 205:8200ab154c8a v2

Added ResetState to RunnableComponent to reset in case of failure Added StateChanged event to IRunnable Renamed Promise.SUCCESS -> Promise.Success Added Promise.FromException Renamed Bundle -> PromiseAll in PromiseExtensions
author cin
date Tue, 25 Oct 2016 17:40:33 +0300
parents 4d9830a9bbb8
children
line wrap: on
line diff
--- a/Implab.Test/PollingComponentTests.cs	Tue Oct 18 17:49:54 2016 +0300
+++ b/Implab.Test/PollingComponentTests.cs	Tue Oct 25 17:40:33 2016 +0300
@@ -36,7 +36,7 @@
 
             Assert.AreEqual(ExecutionState.Created, comp.State);
 
-            comp.Init();
+            comp.Initialize();
 
             Assert.AreEqual(ExecutionState.Ready, comp.State);
 
@@ -57,7 +57,7 @@
             var comp = new MockPollingComponent(TimeSpan.FromMilliseconds(1), null, true);
             comp.MockTick = ct => {
                 signal.Set();
-                return Promise.SUCCESS;
+                return Promise.Success;
             };
 
             comp.Start().Join(1000);