xamarin-macios/tests/monotouch-test/UIKit/TableViewControllerTest.cs

42 строки
839 B
C#
Исходник Обычный вид История

//
2016-05-26 16:06:52 +03:00
// Unit tests for UITableViewController
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2014 Xamarin Inc. All rights reserved.
//
#if !__WATCHOS__ && !MONOMAC
2016-05-26 16:06:52 +03:00
using System;
using System.Drawing;
using Foundation;
using UIKit;
using NUnit.Framework;
namespace MonoTouchFixtures.UIKit {
[TestFixture]
[Preserve (AllMembers = true)]
public class TableViewControllerTest {
#if !__TVOS__
[Test]
public void RefreshControl_18744 ()
{
using (var rc = new UIRefreshControl ())
using (var tvc = new UITableViewController ()) {
Assert.Null (tvc.RefreshControl, "default");
tvc.RefreshControl = rc;
Assert.AreSame (tvc.RefreshControl, rc, "same");
tvc.RefreshControl = null;
Assert.Null (tvc.RefreshControl, "nullable");
}
}
#endif // !__TVOS__
}
}
#endif // !__WATCHOS__