Browse Source

Renamed Hello tests to Basic.

pull/28/head
triton 12 years ago
parent
commit
d9eb2f5b3e
  1. 6
      tests/Basic/Basic.Tests.cs
  2. 2
      tests/Basic/Basic.cpp
  3. 10
      tests/Basic/Basic.cs
  4. 2
      tests/Basic/Basic.h
  5. 2
      tests/Basic/premake4.lua
  6. 2
      tests/Hello/premake4.lua

6
tests/Hello/Hello.Tests.cs → tests/Basic/Basic.Tests.cs

@ -1,7 +1,8 @@
using NUnit.Framework; using NUnit.Framework;
using Basic;
[TestFixture] [TestFixture]
public class HelloTests public class BasicTests
{ {
[Test] [Test]
public void TestHello() public void TestHello()
@ -42,8 +43,7 @@ public class HelloTests
static void Main(string[] args) static void Main(string[] args)
{ {
var hello = new Hello(); var hello = new Hello();
hello.RetFoo(7, 2.0f);
Assert.That(hello.RetEnum(Enum.A), Is.EqualTo(0));
} }
} }

2
tests/Hello/Hello.cpp → tests/Basic/Basic.cpp

@ -1,4 +1,4 @@
#include "Hello.h" #include "Basic.h"
Foo::Foo() Foo::Foo()
{ {

10
tests/Hello/Hello.cs → tests/Basic/Basic.cs

@ -4,10 +4,10 @@ using CppSharp.Utils;
namespace CppSharp.Tests namespace CppSharp.Tests
{ {
public class Hello : LibraryTest public class Basic : LibraryTest
{ {
public Hello(LanguageGeneratorKind kind) public Basic(LanguageGeneratorKind kind)
: base("Hello", kind) : base("Basic", kind)
{ {
} }
@ -21,8 +21,8 @@ namespace CppSharp.Tests
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
ConsoleDriver.Run(new Hello(LanguageGeneratorKind.CPlusPlusCLI)); ConsoleDriver.Run(new Basic(LanguageGeneratorKind.CPlusPlusCLI));
ConsoleDriver.Run(new Hello(LanguageGeneratorKind.CSharp)); ConsoleDriver.Run(new Basic(LanguageGeneratorKind.CSharp));
} }
} }
} }

2
tests/Hello/Hello.h → tests/Basic/Basic.h

@ -1,5 +1,3 @@
//#include <string>
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define CppSharp_API __declspec(dllexport) #define CppSharp_API __declspec(dllexport)
#else #else

2
tests/Basic/premake4.lua

@ -0,0 +1,2 @@
group "Tests/Basic"
SetupTestProject("Basic")

2
tests/Hello/premake4.lua

@ -1,2 +0,0 @@
group "Tests/Hello"
SetupTestProject("Hello")
Loading…
Cancel
Save