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.
21 lines
477 B
21 lines
477 B
using System.Collections.Generic; |
|
using System.Linq; |
|
using CppSharp.Utils; |
|
using NUnit.Framework; |
|
|
|
[TestFixture] |
|
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 })); |
|
} |
|
} |
|
|