mirror of https://github.com/mono/CppSharp.git
Browse Source
This is admittedly a pretty unusual case but still a valid one. Also adds a new test to make sure we do not regress.pull/621/merge
6 changed files with 54 additions and 1 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
using System; |
||||
using EmptyTest; |
||||
using CppSharp.Utils; |
||||
using NUnit.Framework; |
||||
|
||||
[TestFixture] |
||||
public class EmptyTests : GeneratorTestFixture |
||||
{ |
||||
} |
||||
|
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
using CppSharp.AST; |
||||
using CppSharp.Generators; |
||||
using CppSharp.Utils; |
||||
|
||||
namespace CppSharp.Tests |
||||
{ |
||||
public class EmptyTestsGenerator : GeneratorTest |
||||
{ |
||||
public EmptyTestsGenerator(GeneratorKind kind) |
||||
: base("Empty", kind) |
||||
{ |
||||
} |
||||
|
||||
public override void Setup(Driver driver) |
||||
{ |
||||
base.Setup(driver); |
||||
driver.Options.OutputNamespace = "EmptyTest"; |
||||
} |
||||
|
||||
public override void SetupPasses(Driver driver) |
||||
{ |
||||
} |
||||
|
||||
public override void Preprocess(Driver driver, ASTContext ctx) |
||||
{ |
||||
} |
||||
|
||||
public static void Main(string[] args) |
||||
{ |
||||
ConsoleDriver.Run(new EmptyTestsGenerator(GeneratorKind.CSharp)); |
||||
ConsoleDriver.Run(new EmptyTestsGenerator(GeneratorKind.CLI)); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue