diff options
author | kingces95 <kingces95@users.noreply.github.com> | 2016-04-18 23:57:22 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-04-18 23:57:22 -0700 |
commit | d51b17aece6bb5db839090616bc61fc6aac76b40 (patch) | |
tree | ccf8f4abdddbc1b2cdc0aa7dea4c1b8d7a0d71e3 /Xamarin.Forms.Controls.Issues | |
parent | 279e4b01a329f59798e7a688e8501814c37e1385 (diff) | |
download | xamarin-forms-d51b17aece6bb5db839090616bc61fc6aac76b40.tar.gz xamarin-forms-d51b17aece6bb5db839090616bc61fc6aac76b40.tar.bz2 xamarin-forms-d51b17aece6bb5db839090616bc61fc6aac76b40.zip |
Whitespace fixes (#110)
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CarouselViewGallery.cs | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CarouselViewGallery.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CarouselViewGallery.cs index 6288caa8..7c53b399 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CarouselViewGallery.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CarouselViewGallery.cs @@ -12,8 +12,8 @@ using NUnit.Framework; namespace Xamarin.Forms.Controls { - [Preserve (AllMembers = true)] - [Issue (IssueTracker.Github, 900000, "CarouselView General Tests")] + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Github, 900000, "CarouselView General Tests")] public class CarouselViewGalleryTests { #if UITEST @@ -24,7 +24,10 @@ namespace Xamarin.Forms.Controls } public interface IGalleryPage : IUIProxy { - string Name { get; } + string Name + { + get; + } } public class Gallery @@ -98,7 +101,8 @@ namespace Xamarin.Forms.Controls Queue<string> _expectedEvents; int _eventId; - public CarouselViewGallery() { + public CarouselViewGallery() + { _itemIds = Enumerable.Range(0, InitialItems).ToList(); _currentPosition = InitialItemId; _currentItem = _itemIds[_currentPosition]; @@ -184,8 +188,8 @@ namespace Xamarin.Forms.Controls expectedPosition = 0; // handle swipe past last - else if (expectedPosition == Count && _currentPosition == Count -1) - expectedPosition = Count -1; + else if (expectedPosition == Count && _currentPosition == Count - 1) + expectedPosition = Count - 1; // anticipate events ExpectMovementEvents(expectedPosition); @@ -250,7 +254,8 @@ namespace Xamarin.Forms.Controls { var gallery = Gallery.Launch(); - try { + try + { var carousel = gallery.NaviateToGallery<CarouselViewGallery>(); // start at something other than 0 @@ -280,11 +285,12 @@ namespace Xamarin.Forms.Controls gallery.Screenshot("End"); } - catch (Exception e) { + catch (Exception e) + { gallery.Screenshot("End"); throw e; } } #endif - } + } } |