Browse Source

Added tests for the changes in the renaming pass.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/76/head
Dimitar Dobrev 12 years ago
parent
commit
8a61ee71d9
  1. 4
      tests/VTables/VTables.Tests.cs
  2. 4
      tests/VTables/VTables.h

4
tests/VTables/VTables.Tests.cs

@ -4,7 +4,7 @@ using VTables; @@ -4,7 +4,7 @@ using VTables;
public class FooDerived : Foo
{
public override int Vfoo()
public override int vfoo()
{
Console.WriteLine("Hello from FooDerived");
return 10;
@ -18,7 +18,7 @@ public class VTablesTests @@ -18,7 +18,7 @@ public class VTablesTests
public void TestFoo()
{
var foo = new Foo();
Assert.That(foo.Vfoo(), Is.EqualTo(5));
Assert.That(foo.vfoo(), Is.EqualTo(5));
Assert.That(foo.Vbar(), Is.EqualTo(3));
Assert.That(foo.CallFoo(), Is.EqualTo(7));

4
tests/VTables/VTables.h

@ -7,6 +7,10 @@ @@ -7,6 +7,10 @@
class DLL_API Foo
{
public:
class Vfoo
{
};
Foo();
virtual int vfoo();

Loading…
Cancel
Save