xamarin-macios/tests/bindings-test2/BindingTest.cs

32 строки
598 B
C#

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Linq;
#if __UNIFIED__
using Foundation;
using ObjCRuntime;
#else
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
#endif
using NUnit.Framework;
using Bindings.Test2;
namespace Xamarin.BindingTests2
{
[TestFixture]
[Preserve (AllMembers = true)]
public class BindingTest
{
[Test]
public void Test ()
{
Assert.AreEqual (42, CFunctions.getIntOfChocolate (), "chocolate");
Assert.AreEqual (42, Bindings.Test.CFunctions.theUltimateAnswer (), "theUltimateAnswer");
}
}
}