Browse Source

Simplify the tests Main method.

pull/86/head
triton 12 years ago
parent
commit
07c5f7339f
  1. 12
      tests/Basic/Basic.cs
  2. 7
      tests/CSharpTemp/CSharpTemp.cs
  3. 7
      tests/UTF16/UTF16.cs
  4. 9
      tests/VTables/VTables.cs

12
tests/Basic/Basic.cs

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
using System;
using System.IO;
using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Utils;
@ -19,13 +21,11 @@ namespace CppSharp.Tests @@ -19,13 +21,11 @@ namespace CppSharp.Tests
lib.SetMethodParameterUsage("Hello", "TestPrimitiveOutRef", 1, ParameterUsage.Out);
}
static class Program
public static void Main(string[] args)
{
public static void Main(string[] args)
{
ConsoleDriver.Run(new Basic(GeneratorKind.CLI));
ConsoleDriver.Run(new Basic(GeneratorKind.CSharp));
}
Console.WriteLine(Directory.GetCurrentDirectory());
ConsoleDriver.Run(new Basic(GeneratorKind.CLI));
ConsoleDriver.Run(new Basic(GeneratorKind.CSharp));
}
}
}

7
tests/CSharpTemp/CSharpTemp.cs

@ -16,12 +16,9 @@ namespace CppSharp.Tests @@ -16,12 +16,9 @@ namespace CppSharp.Tests
driver.Options.GenerateProperties = true;
}
static class Program
public static void Main(string[] args)
{
public static void Main(string[] args)
{
ConsoleDriver.Run(new CSharpTempTests(GeneratorKind.CSharp));
}
ConsoleDriver.Run(new CSharpTempTests(GeneratorKind.CSharp));
}
}
}

7
tests/UTF16/UTF16.cs

@ -22,12 +22,9 @@ namespace CppSharp.Tests @@ -22,12 +22,9 @@ namespace CppSharp.Tests
}
static class Program
public static void Main(string[] args)
{
public static void Main(string[] args)
{
ConsoleDriver.Run(new UTF16Tests(GeneratorKind.CSharp));
}
ConsoleDriver.Run(new UTF16Tests(GeneratorKind.CSharp));
}
}
}

9
tests/VTables/VTables.cs

@ -24,13 +24,10 @@ namespace CppSharp.Tests @@ -24,13 +24,10 @@ namespace CppSharp.Tests
}
static class Program
public static void Main(string[] args)
{
public static void Main(string[] args)
{
ConsoleDriver.Run(new VTableTests(GeneratorKind.CLI));
ConsoleDriver.Run(new VTableTests(GeneratorKind.CSharp));
}
ConsoleDriver.Run(new VTableTests(GeneratorKind.CLI));
ConsoleDriver.Run(new VTableTests(GeneratorKind.CSharp));
}
}
}

Loading…
Cancel
Save