.NET: Fix ServicesTest.TestDuckTyping

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/255b3a3e
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/255b3a3e
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/255b3a3e

Branch: refs/heads/master
Commit: 255b3a3e199b19757a511d4340f184a9de7afddc
Parents: f664751
Author: Pavel Tupitsyn <[email protected]>
Authored: Mon Oct 24 14:52:21 2016 +0300
Committer: Pavel Tupitsyn <[email protected]>
Committed: Mon Oct 24 14:53:15 2016 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/255b3a3e/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
----------------------------------------------------------------------
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
index f2a5fed..0558d11 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
@@ -322,8 +322,7 @@ namespace Apache.Ignite.Core.Tests.Services
             // .. but setter does not
             var ex = Assert.Throws<ServiceInvocationException>(() => { 
prx.TestProperty = new object(); });
             Assert.IsNotNull(ex.InnerException);
-            Assert.AreEqual("Object of type 'System.Object' cannot be 
converted to type 'System.Int32'.",
-                ex.InnerException.Message);
+            Assert.AreEqual("Specified cast is not valid.", 
ex.InnerException.Message);
         }
 
         /// <summary>
@@ -438,6 +437,7 @@ namespace Apache.Ignite.Core.Tests.Services
 
             var ex = Assert.Throws<IgniteException>(() => 
Services.DeployMultiple(SvcName, svc, Grids.Length, 1));
             Assert.AreEqual("Expected exception", ex.Message);
+            Assert.IsNotNull(ex.InnerException);
             
Assert.IsTrue(ex.InnerException.Message.Contains("PlatformCallbackUtils.serviceInit(Native
 Method)"));
 
             var svc0 = 
Services.GetService<TestIgniteServiceSerializable>(SvcName);

Reply via email to