From 880e109a2d9e5b1a760f1c04445348de03d75d68 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Mon, 20 Oct 2014 00:16:32 +0300 Subject: [PATCH] Fixed incompilable code caused by VS failing to run all pre-build events. Signed-off-by: Dimitar Dobrev --- tests/CSharpTemp/CSharpTemp.Tests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CSharpTemp/CSharpTemp.Tests.cs b/tests/CSharpTemp/CSharpTemp.Tests.cs index 78b98e51..9288feb2 100644 --- a/tests/CSharpTemp/CSharpTemp.Tests.cs +++ b/tests/CSharpTemp/CSharpTemp.Tests.cs @@ -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])); }