mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
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.
38 lines
847 B
38 lines
847 B
using CppSharp.Utils; |
|
using NUnit.Framework; |
|
using CLI; |
|
|
|
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 TestStdString() |
|
{ |
|
Assert.AreEqual("test_test", new Date(0, 0, 0).TestStdString("test")); |
|
} |
|
|
|
[Test] |
|
public void TestByRefEnumParam() |
|
{ |
|
using (var byRefEnumParam = new TestByRefEnumParam()) |
|
{ |
|
Assert.AreEqual(EnumParam.E1, byRefEnumParam.GetPassedEnumParam(EnumParam.E1)); |
|
} |
|
} |
|
|
|
[Test] |
|
public void GetEmployeeNameFromOrgTest() |
|
{ |
|
using (EmployeeOrg org = new EmployeeOrg()) |
|
{ |
|
Assert.AreEqual("Employee", org.Employee.Name); |
|
} |
|
} |
|
} |