xamarin-macios/tests/monotouch-test/GameKit/SessionTest.cs

43 строки
763 B
C#

//
// Unit tests for GKSession
//
// Authors:
// Rolf Bjarne Kvinge <rolf@xamarin.com>
//
// Copyright 2012 Xamarin Inc. All rights reserved.
//
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
using System;
using System.IO;
using System.Threading;
#if XAMCORE_2_0
using Foundation;
using GameKit;
#else
using MonoTouch.Foundation;
using MonoTouch.GameKit;
#endif
using NUnit.Framework;
namespace MonoTouchFixtures.GameKit {
[TestFixture]
[Preserve (AllMembers = true)]
public class SessionTest {
[Test]
public void NullAllowed ()
{
using (var session = new GKSession (null, "displayName", GKSessionMode.Client)) {
}
using (var session = new GKSession ("sessionID", null, GKSessionMode.Peer)) {
}
}
}
}
#endif // !__TVOS__ && !__WATCHOS__