summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs')
-rw-r--r--Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs b/Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs
new file mode 100644
index 00000000..553d67ce
--- /dev/null
+++ b/Xamarin.Forms.Core.UnitTests/CarouselPageTests.cs
@@ -0,0 +1,29 @@
+´╗┐using NUnit.Framework;
+
+namespace Xamarin.Forms.Core.UnitTests
+{
+ public class CarouselPageTests : MultiPageTests<ContentPage>
+ {
+ protected override MultiPage<ContentPage> CreateMultiPage()
+ {
+ return new CarouselPage();
+ }
+
+ protected override ContentPage CreateContainedPage()
+ {
+ return new ContentPage { Content = new View() };
+ }
+
+ protected override int GetIndex (ContentPage page)
+ {
+ return CarouselPage.GetIndex (page);
+ }
+
+ [Test]
+ public void TestConstructor()
+ {
+ var page = new CarouselPage();
+ Assert.That (page.Children, Is.Empty);
+ }
+ }
+}