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.
 
 
 
 
 

20 lines
463 B

using System.Collections.Generic;
using System.Linq;
using CppSharp.Utils;
using NUnit.Framework;
public class STLTests : GeneratorTestFixture
{
[Test]
public void TestVectors()
{
var vectors = new STL.TestVectors();
var sum = vectors.SumIntVector(new List<int> { 1, 2, 3 });
Assert.AreEqual(sum, 6);
var list = vectors.GetIntVector();
Assert.True(list.SequenceEqual(new List<int> { 2, 3, 4 }));
}
}