Browse Source

Merge pull request #257 from tomba/fix-test

fix CSharpTemp.TestDestructors
pull/261/head
João Matos 12 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
[Test] [Test]
public void TestDestructors() public void TestDestructors()
{ {
CSharpTemp.TestDestructors.InitMarker();
Assert.AreEqual(0, CSharpTemp.TestDestructors.Marker); Assert.AreEqual(0, CSharpTemp.TestDestructors.Marker);
var dtors = new TestDestructors(); var dtors = new TestDestructors();

1
tests/CSharpTemp/CSharpTemp.h

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

Loading…
Cancel
Save