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
445 B
21 lines
445 B
using System.Reflection; |
|
using NUnit.Framework; |
|
using Foo = CSharpTemp.Foo; |
|
|
|
[TestFixture] |
|
public class CSharpTempTests |
|
{ |
|
[Test] |
|
public void TestIndexer() |
|
{ |
|
var foo = new Foo(); |
|
Assert.That(foo[0], Is.EqualTo(5)); |
|
} |
|
|
|
[Test] |
|
public void TestPropertyAccessModifier() |
|
{ |
|
Assert.That(typeof(Foo).GetProperty("P", |
|
BindingFlags.Instance | BindingFlags.NonPublic), Is.Not.Null); |
|
} |
|
} |