37 строки
829 B
C#
37 строки
829 B
C#
//
|
|
// Unit tests for NSFileProviderPage
|
|
//
|
|
// Authors:
|
|
// Alex Soto <alexsoto@microsoft.com>
|
|
//
|
|
//
|
|
// Copyright 2017 Xamarin Inc. All rights reserved.
|
|
//
|
|
|
|
#if __IOS__
|
|
|
|
using System;
|
|
using FileProvider;
|
|
using Foundation;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTouchFixtures.FileProvider {
|
|
|
|
[TestFixture]
|
|
[Preserve (AllMembers = true)]
|
|
public class NSFileProviderPageTests {
|
|
|
|
[Test]
|
|
public void CompressionSessionCreateTest ()
|
|
{
|
|
// The FileProvider's NSData constants are only available running on device.
|
|
TestRuntime.AssertDevice ();
|
|
TestRuntime.AssertXcodeVersion (9,0);
|
|
|
|
Assert.IsNotNull (NSFileProviderPage.InitialPageSortedByDate, "InitialPageSortedByDate should not be null");
|
|
Assert.IsNotNull (NSFileProviderPage.InitialPageSortedByName, "InitialPageSortedByName should not be null");
|
|
}
|
|
}
|
|
}
|
|
#endif
|