diff Implab.Test/Mock/MockRunnableComponent.cs @ 208:7d07503621fe v2

RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool) IRunnable is now disposable Code cleanups, suppressed some CodeAnalysis warnings
author cin
date Sun, 13 Nov 2016 18:28:17 +0300
parents 8200ab154c8a
children
line wrap: on
line diff
--- a/Implab.Test/Mock/MockRunnableComponent.cs	Wed Nov 09 12:03:22 2016 +0300
+++ b/Implab.Test/Mock/MockRunnableComponent.cs	Sun Nov 13 18:28:17 2016 +0300
@@ -24,7 +24,7 @@
             set;
         }
 
-        public Action<bool, Exception> MockDispose {
+        public Action<bool> MockDispose {
             get;
             set;
         }
@@ -42,10 +42,10 @@
                 MockInit();
         }
 
-        protected override void Dispose(bool disposing, Exception lastError) {
+        protected override void Dispose(bool disposing) {
             if (MockDispose != null)
-                MockDispose(disposing, lastError);
-            base.Dispose(disposing, lastError);
+                MockDispose(disposing);
+            base.Dispose(disposing);
         }
     }
 }