Mercurial > pub > ImplabNet
diff Implab.Test/RunnableComponentTests.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/RunnableComponentTests.cs Wed Nov 09 12:03:22 2016 +0300 +++ b/Implab.Test/RunnableComponentTests.cs Sun Nov 13 18:28:17 2016 +0300 @@ -95,7 +95,7 @@ var comp = new MockRunnableComponent(true); bool disposed = false; - comp.MockDispose = (disposing, error) => { + comp.MockDispose = (disposing) => { disposed = true; }; @@ -115,7 +115,7 @@ var comp = new MockRunnableComponent(true, true); bool disposed = false; - comp.MockDispose = (disposing, error) => { + comp.MockDispose = (disposing) => { disposed = true; }; @@ -131,10 +131,8 @@ var comp = new MockRunnableComponent(true, true); bool disposed = false; - Exception lastError = null; - comp.MockDispose = (disposing, error) => { + comp.MockDispose = (disposing) => { disposed = true; - lastError = error; }; comp.Start().Join(1000);