Browse Source

Merge pull request #257 from tomba/fix-test

fix CSharpTemp.TestDestructors
pull/261/head
João Matos 11 years ago
parent
commit
fee0f18ee0
  1. 1
      tests/CSharpTemp/CSharpTemp.Tests.cs
  2. 1
      tests/CSharpTemp/CSharpTemp.h

1
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -89,6 +89,7 @@ public class CSharpTempTests : GeneratorTestFixture @@ -89,6 +89,7 @@ public class CSharpTempTests : GeneratorTestFixture
[Test]
public void TestDestructors()
{
CSharpTemp.TestDestructors.InitMarker();
Assert.AreEqual(0, CSharpTemp.TestDestructors.Marker);
var dtors = new TestDestructors();

1
tests/CSharpTemp/CSharpTemp.h

@ -138,6 +138,7 @@ private: @@ -138,6 +138,7 @@ private:
// Tests destructors
struct DLL_API TestDestructors
{
static void InitMarker() { Marker = 0; }
static int Marker;
TestDestructors();

Loading…
Cancel
Save