Browse Source

Fixed simple mistake in the EnumOut tests.

pull/268/head
Tom Spilman 12 years ago
parent
commit
ba8c29c1ac
  1. 10
      tests/Basic/Basic.Tests.cs

10
tests/Basic/Basic.Tests.cs

@ -101,10 +101,9 @@ public class BasicTests : GeneratorTestFixture @@ -101,10 +101,9 @@ public class BasicTests : GeneratorTestFixture
{
var hello = new Hello();
int value = (int)Enum.C;
Enum e;
hello.EnumOut(value, out e);
Assert.That(e, Is.EqualTo(value));
hello.EnumOut((int)Enum.C, out e);
Assert.That(e, Is.EqualTo(Enum.C));
}
[Test]
@ -112,10 +111,9 @@ public class BasicTests : GeneratorTestFixture @@ -112,10 +111,9 @@ public class BasicTests : GeneratorTestFixture
{
var hello = new Hello();
int value = (int)Enum.C;
Enum e;
hello.EnumOutRef(value, out e);
Assert.That(e, Is.EqualTo(value));
hello.EnumOutRef((int)Enum.C, out e);
Assert.That(e, Is.EqualTo(Enum.C));
}
[Test]

Loading…
Cancel
Save