xamarin-macios/tests/monotouch-test/Foundation/NSThread.cs

27 строки
457 B
C#

#if __MACOS__
using System;
using System.Threading.Tasks;
using NUnit.Framework;
using AppKit;
using ObjCRuntime;
using Foundation;
using CoreGraphics;
namespace Xamarin.Mac.Tests
{
[TestFixture]
[Preserve (AllMembers = true)]
public class NSThreadTests
{
[Test]
public void NSThread_CallStack_Test()
{
string [] stack = NSThread.NativeCallStack;
Assert.IsNotNull (stack);
Assert.IsTrue (stack.Length > 0);
}
}
}
#endif // __MACOS__