2021-08-11 11:06:46 +03:00
|
|
|
//
|
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.
|
|
|
|
//
|
|
|
|
|
2017-10-31 19:09:21 +03:00
|
|
|
#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__
|