You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2022/08/22 12:14:38 UTC
[ignite] branch master updated: IGNITE-17559 .NET: Fix TestCopyToInvalidArguments on Windows (#10206)
This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 83efcfb7f8f IGNITE-17559 .NET: Fix TestCopyToInvalidArguments on Windows (#10206)
83efcfb7f8f is described below
commit 83efcfb7f8fed055ba685d44702fa89bfb17b3b4
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Mon Aug 22 15:14:25 2022 +0300
IGNITE-17559 .NET: Fix TestCopyToInvalidArguments on Windows (#10206)
Use StringAssert.StartsWith because the full message differs on various platforms.
---
.../Client/DataStructures/IgniteSetClientTests.cs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/DataStructures/IgniteSetClientTests.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/DataStructures/IgniteSetClientTests.cs
index 7fb15658a91..eab1a426c20 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/DataStructures/IgniteSetClientTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/DataStructures/IgniteSetClientTests.cs
@@ -216,16 +216,15 @@ namespace Apache.Ignite.Core.Tests.Client.DataStructures
var target1 = new int[3];
var ex1 = Assert.Throws<ArgumentOutOfRangeException>(() => set.CopyTo(target1, -1));
- Assert.AreEqual("Non-negative number required. (Parameter 'arrayIndex')\nActual value was -1.",
- ex1.Message);
+ StringAssert.StartsWith("Non-negative number required.", ex1.Message);
var ex2 = Assert.Throws<ArgumentException>(() => set.CopyTo(target1, 1));
- Assert.AreEqual("Destination array is not long enough to copy all the items in the collection. " +
- "Check array index and length. (Parameter 'array')", ex2.Message);
+ StringAssert.StartsWith("Destination array is not long enough to copy all the items in the collection",
+ ex2.Message);
var ex3 = Assert.Throws<ArgumentException>(() => set.CopyTo(target1, 3));
- Assert.AreEqual("Destination array is not long enough to copy all the items in the collection. " +
- "Check array index and length. (Parameter 'array')", ex3.Message);
+ StringAssert.StartsWith("Destination array is not long enough to copy all the items in the collection",
+ ex3.Message);
}
[Test]