Skip to content

Commit fd15ab6

Browse files
committed
Make a test localization-independent of the IDE
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 22cc438 commit fd15ab6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/CSharp/CSharp.Tests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,9 @@ public void TestFixedArrayRefType()
553553
foosMore[1] = new Foo();
554554
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => bar.Foos = foosMore);
555555
Assert.AreEqual("value", ex.ParamName);
556-
Assert.AreEqual("The dimensions of the provided array don't match the required size." + Environment.NewLine + "Parameter name: value", ex.Message);
556+
string[] message = ex.Message.Split(
557+
Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
558+
Assert.AreEqual("The dimensions of the provided array don't match the required size.", message[0]);
557559

558560
foreach (Foo foo in foosMore)
559561
{

0 commit comments

Comments
 (0)