# HG changeset patch
# User cin
# Date 1461319171 -10800
# Node ID 3071220371f85d95cdddb10c18c794e87b0651db
# Parent dd4a3590f9c6d2a1e6380715b508399592b5ca55
Updated VS project
diff -r dd4a3590f9c6 -r 3071220371f8 .hgignore
--- a/.hgignore Tue Apr 19 17:35:20 2016 +0300
+++ b/.hgignore Fri Apr 22 12:59:31 2016 +0300
@@ -17,3 +17,4 @@
MonoPlay/obj/
Implab.Test/Implab.Format.Test/bin/
Implab.Test/Implab.Format.Test/obj/
+*.suo
diff -r dd4a3590f9c6 -r 3071220371f8 Implab.Test/Implab.Test.csproj
--- a/Implab.Test/Implab.Test.csproj Tue Apr 19 17:35:20 2016 +0300
+++ b/Implab.Test/Implab.Test.csproj Fri Apr 22 12:59:31 2016 +0300
@@ -62,8 +62,10 @@
+
+
diff -r dd4a3590f9c6 -r 3071220371f8 Implab.Test/RunnableComponentTests.cs
--- a/Implab.Test/RunnableComponentTests.cs Tue Apr 19 17:35:20 2016 +0300
+++ b/Implab.Test/RunnableComponentTests.cs Fri Apr 22 12:59:31 2016 +0300
@@ -9,7 +9,7 @@
using NUnit.Framework;
using TestClassAttribute = NUnit.Framework.TestFixtureAttribute;
using TestMethodAttribute = NUnit.Framework.TestAttribute;
-
+using AssertFailedException = NUnit.Framework.AssertionException;
#else
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -23,8 +23,8 @@
static void ShouldThrow(Action action) {
try {
action();
- Assert.Fail();
- } catch(AssertionException) {
+ Assert.Fail();
+ } catch (AssertFailedException) {
throw;
} catch {
}
@@ -131,7 +131,8 @@
p.Cancel();
ShouldThrow(() => p.Join(1000));
Assert.AreEqual(ExecutionState.Failed, comp.State);
- Assert.IsInstanceOfType(typeof(OperationCanceledException), comp.LastError);
+
+ Assert.IsInstanceOfType(comp.LastError, typeof(OperationCanceledException));
comp.Dispose();
}
@@ -183,8 +184,8 @@
Assert.AreEqual(ExecutionState.Stopping, comp.State);
p.Cancel();
ShouldThrow(() => p.Join(1000));
- Assert.AreEqual(ExecutionState.Failed, comp.State);
- Assert.IsInstanceOfType(typeof(OperationCanceledException), comp.LastError);
+ Assert.AreEqual(ExecutionState.Failed, comp.State);
+ Assert.IsInstanceOfType(comp.LastError, typeof(OperationCanceledException));
comp.Dispose();
}