diff Implab.Test/RunnableComponentTests.cs @ 194:d45bdf510514 v2

working on diagnostics
author cin
date Mon, 25 Apr 2016 15:18:56 +0300
parents 3071220371f8
children 4d9830a9bbb8
line wrap: on
line diff
--- a/Implab.Test/RunnableComponentTests.cs	Fri Apr 22 13:09:57 2016 +0300
+++ b/Implab.Test/RunnableComponentTests.cs	Mon Apr 25 15:18:56 2016 +0300
@@ -132,7 +132,7 @@
             ShouldThrow(() => p.Join(1000));
             Assert.AreEqual(ExecutionState.Failed, comp.State);
 
-            Assert.IsInstanceOfType(comp.LastError, typeof(OperationCanceledException));
+            Assert.IsTrue(comp.LastError is OperationCanceledException);
 
             comp.Dispose();
         }
@@ -185,7 +185,7 @@
             p.Cancel();
             ShouldThrow(() => p.Join(1000));
             Assert.AreEqual(ExecutionState.Failed, comp.State);
-            Assert.IsInstanceOfType(comp.LastError, typeof(OperationCanceledException));
+            Assert.IsTrue(comp.LastError is OperationCanceledException);
 
             comp.Dispose();
         }