Browse Source

Fixed incompilable code caused by VS failing to run all pre-build events.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/349/head
Dimitar Dobrev 11 years ago
parent
commit
880e109a2d
  1. 6
      tests/CSharpTemp/CSharpTemp.Tests.cs

6
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -101,10 +101,10 @@ public class CSharpTempTests : GeneratorTestFixture @@ -101,10 +101,10 @@ public class CSharpTempTests : GeneratorTestFixture
[Test]
public unsafe void TestArrayOfPointersToPrimitives()
{
Bar bar = new Bar();
void*[] array = new void*[1];
var bar = new Bar();
var array = new IntPtr[1];
int i = 5;
array[0] = &i;
array[0] = new IntPtr(&i);
bar.ArrayOfPrimitivePointers = array;
Assert.That(i, Is.EqualTo(*(int*) bar.ArrayOfPrimitivePointers[0]));
}

Loading…
Cancel
Save