Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
596 B

using CppSharp.Utils;
using NUnit.Framework;
using CLITemp;
public class CLITests : GeneratorTestFixture
{
[Test]
public void TestTypes()
{
// Attributed types
var sum = new Types().AttributedSum(3, 4);
Assert.That(sum, Is.EqualTo(7));
}
[Test]
public void TestToStringOverride()
{
var date = new Date(24, 12, 1924);
var s = date.ToString();
Assert.AreEqual("24/12/1924", s);
}
[Test]
public void TestStdString()
{
Assert.AreEqual("test_test", new Date(0, 0, 0).testStdString("test"));
}
}