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

38 строки
681 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;
using Foundation;
using GameKit;
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__