Browse Source

Make a test localization-independent of the IDE

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
mono-ubuntu-20.04
Dimitar Dobrev 6 years ago
parent
commit
fd15ab6632
  1. 4
      tests/CSharp/CSharp.Tests.cs

4
tests/CSharp/CSharp.Tests.cs

@ -553,7 +553,9 @@ public unsafe class CSharpTests : GeneratorTestFixture
foosMore[1] = new Foo(); foosMore[1] = new Foo();
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => bar.Foos = foosMore); var ex = Assert.Throws<ArgumentOutOfRangeException>(() => bar.Foos = foosMore);
Assert.AreEqual("value", ex.ParamName); Assert.AreEqual("value", ex.ParamName);
Assert.AreEqual("The dimensions of the provided array don't match the required size." + Environment.NewLine + "Parameter name: value", ex.Message); string[] message = ex.Message.Split(
Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
Assert.AreEqual("The dimensions of the provided array don't match the required size.", message[0]);
foreach (Foo foo in foosMore) foreach (Foo foo in foosMore)
{ {

Loading…
Cancel
Save