diff --git a/src/BlazorWebView/tests/MauiDeviceTests/WebViewHelpers.Windows.cs b/src/BlazorWebView/tests/MauiDeviceTests/WebViewHelpers.Windows.cs index bc15a4bcd69f..7b9236a6729a 100644 --- a/src/BlazorWebView/tests/MauiDeviceTests/WebViewHelpers.Windows.cs +++ b/src/BlazorWebView/tests/MauiDeviceTests/WebViewHelpers.Windows.cs @@ -11,7 +11,7 @@ public static partial class WebViewHelpers public static async Task WaitForWebViewReady(WebView2 wv2) { CoreWebView2 coreWebView2 = null; - + // Ensure that the WebView2 runtime is installed and initialized and has a CoreWebView2 instance. if (wv2?.CoreWebView2 == null) { diff --git a/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.Android.cs b/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.Android.cs index fd928757641e..528afa036779 100644 --- a/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.Android.cs +++ b/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.Android.cs @@ -222,10 +222,10 @@ protected bool IsBackButtonVisible(IElementHandler handler) protected void AssertTranslationMatches(Android.Views.View nativeView, double expectedTranslationX, double expectedTranslationY) { var context = nativeView?.Context ?? throw new InvalidOperationException("Context cannot be null."); - + var expectedXInPixels = context.ToPixels(expectedTranslationX); Assert.Equal(expectedXInPixels, nativeView.TranslationX, precision: 1); - + var expectedYInPixels = context.ToPixels(expectedTranslationY); Assert.Equal(expectedYInPixels, nativeView.TranslationY, precision: 1); } diff --git a/src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Android.cs b/src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Android.cs index 933a39a4b2f9..8e8200f3aaa1 100644 --- a/src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Android.cs +++ b/src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Android.cs @@ -126,7 +126,7 @@ Task GetPlatformIsVisible(ShapeViewHandler boxViewViewHandler) return nativeView.Visibility == Android.Views.ViewStates.Visible; }); } - + //src/Compatibility/Core/tests/Android/TranslationTests.cs [Fact] [Description("The Translation property of a BoxView should match with native Translation")] diff --git a/src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.Android.cs b/src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.Android.cs index bec2ebec1491..cb9b70cd8aa6 100644 --- a/src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.Android.cs +++ b/src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.Android.cs @@ -122,7 +122,7 @@ Task GetPlatformIsVisible(CheckBoxHandler checkBoxHandler) return nativeView.Visibility == Android.Views.ViewStates.Visible; }); } - + //src/Compatibility/Core/tests/Android/TranslationTests.cs [Fact] [Description("The Translation property of a CheckBox should match with native Translation")] diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/Image/ImageViewModel.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/Image/ImageViewModel.cs index d41479f1fe3f..b7ecde8c435a 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/Image/ImageViewModel.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/Image/ImageViewModel.cs @@ -1,7 +1,7 @@ using System.ComponentModel; using System.Runtime.CompilerServices; -using Microsoft.Maui.Graphics; using Microsoft.Maui.Controls; +using Microsoft.Maui.Graphics; namespace Maui.Controls.Sample; public class ImageViewModel : INotifyPropertyChanged @@ -117,40 +117,40 @@ private void UpdateFontImageSource() } } - public bool HasShadow - { - get => _hasShadow; - set - { - if (_hasShadow != value) - { - _hasShadow = value; - ImageShadow = value - ? new Shadow - { - Radius = 10, - Opacity = 1.0f, - Brush = Colors.Black.AsPaint(), - Offset = new Point(5, 5) - } - : null; - OnPropertyChanged(nameof(HasShadow)); - } - } - } - - public Shadow ImageShadow - { - get => _imageShadow; - private set - { - if (_imageShadow != value) - { - _imageShadow = value; - OnPropertyChanged(nameof(ImageShadow)); - } - } - } + public bool HasShadow + { + get => _hasShadow; + set + { + if (_hasShadow != value) + { + _hasShadow = value; + ImageShadow = value + ? new Shadow + { + Radius = 10, + Opacity = 1.0f, + Brush = Colors.Black.AsPaint(), + Offset = new Point(5, 5) + } + : null; + OnPropertyChanged(nameof(HasShadow)); + } + } + } + + public Shadow ImageShadow + { + get => _imageShadow; + private set + { + if (_imageShadow != value) + { + _imageShadow = value; + OnPropertyChanged(nameof(ImageShadow)); + } + } + } public event PropertyChangedEventHandler PropertyChanged; diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml.cs index b9e4c2f097a2..99dcf1b751de 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml.cs @@ -35,17 +35,17 @@ private void OnImageButtonClicked(object sender, EventArgs e) { _viewModel.ClickTotal++; _viewModel.IsButtonClicked = true; - } + } private void OnImageButtonPressed(object sender, EventArgs e) { _viewModel.PressedTotal++; _viewModel.IsButtonClicked = true; - } + } private void OnImageButtonReleased(object sender, EventArgs e) { _viewModel.ReleasedTotal++; _viewModel.IsButtonClicked = true; - } + } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonOptionsPage.xaml.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonOptionsPage.xaml.cs index 3066c60b6228..529812af1e86 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonOptionsPage.xaml.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonOptionsPage.xaml.cs @@ -186,7 +186,7 @@ private void OnCornerRadiusChanged(object sender, TextChangedEventArgs e) int.TryParse(parts[2], out int bottomLeft) && int.TryParse(parts[3], out int bottomRight)) { - _viewModel.CornerRadius = topLeft; + _viewModel.CornerRadius = topLeft; } else if (parts.Length == 1 && int.TryParse(parts[0], out int uniform)) { diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonViewModel.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonViewModel.cs index 1229b9dafd49..8cd4a375e025 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonViewModel.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonViewModel.cs @@ -1,8 +1,8 @@ using System.ComponentModel; using System.Runtime.CompilerServices; -using Microsoft.Maui.Graphics; -using Microsoft.Maui.Controls; using System.Windows.Input; +using Microsoft.Maui.Controls; +using Microsoft.Maui.Graphics; namespace Maui.Controls.Sample; diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml.cs index 1db9ea0429c4..6f5a710ab9ba 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml.cs @@ -2,110 +2,110 @@ namespace Maui.Controls.Sample; public partial class ProgressBarControlPage : ContentPage { - private ProgressBarViewModel _viewModel; - private ProgressBar progressBar; + private ProgressBarViewModel _viewModel; + private ProgressBar progressBar; - public ProgressBarControlPage() - { - InitializeComponent(); - _viewModel = new ProgressBarViewModel(); - BindingContext = _viewModel; - } + public ProgressBarControlPage() + { + InitializeComponent(); + _viewModel = new ProgressBarViewModel(); + BindingContext = _viewModel; + } - private void ReinitializeProgressBar() - { - BindingContext = _viewModel = new ProgressBarViewModel(); - ProgressBarGrid.Children.Clear(); - progressBar = new ProgressBar - { - AutomationId = "ProgressBarControl", - }; + private void ReinitializeProgressBar() + { + BindingContext = _viewModel = new ProgressBarViewModel(); + ProgressBarGrid.Children.Clear(); + progressBar = new ProgressBar + { + AutomationId = "ProgressBarControl", + }; - progressBar.SetBinding(ProgressBar.BackgroundColorProperty, nameof(ProgressBarViewModel.BackgroundColor)); - progressBar.SetBinding(ProgressBar.FlowDirectionProperty, nameof(ProgressBarViewModel.FlowDirection)); - progressBar.SetBinding(ProgressBar.IsVisibleProperty, nameof(ProgressBarViewModel.IsVisible)); - progressBar.SetBinding(ProgressBar.ProgressProperty, nameof(ProgressBarViewModel.Progress)); - progressBar.SetBinding(ProgressBar.ProgressColorProperty, nameof(ProgressBarViewModel.ProgressColor)); - progressBar.SetBinding(ProgressBar.ShadowProperty, nameof(ProgressBarViewModel.Shadow)); - ProgressBarGrid.Children.Add(progressBar); - } + progressBar.SetBinding(ProgressBar.BackgroundColorProperty, nameof(ProgressBarViewModel.BackgroundColor)); + progressBar.SetBinding(ProgressBar.FlowDirectionProperty, nameof(ProgressBarViewModel.FlowDirection)); + progressBar.SetBinding(ProgressBar.IsVisibleProperty, nameof(ProgressBarViewModel.IsVisible)); + progressBar.SetBinding(ProgressBar.ProgressProperty, nameof(ProgressBarViewModel.Progress)); + progressBar.SetBinding(ProgressBar.ProgressColorProperty, nameof(ProgressBarViewModel.ProgressColor)); + progressBar.SetBinding(ProgressBar.ShadowProperty, nameof(ProgressBarViewModel.Shadow)); + ProgressBarGrid.Children.Add(progressBar); + } - private void OnProgressChanged(object sender, TextChangedEventArgs e) - { - if (double.TryParse(ProgressEntry.Text, out double progress)) - { - _viewModel.Progress = progress; - } - } + private void OnProgressChanged(object sender, TextChangedEventArgs e) + { + if (double.TryParse(ProgressEntry.Text, out double progress)) + { + _viewModel.Progress = progress; + } + } - private void ProgressColorButton_Clicked(object sender, EventArgs e) - { - var button = (Button)sender; - if (button.Text == "Green") - _viewModel.ProgressColor = Colors.Green; - else if (button.Text == "Red") - _viewModel.ProgressColor = Colors.Red; - } + private void ProgressColorButton_Clicked(object sender, EventArgs e) + { + var button = (Button)sender; + if (button.Text == "Green") + _viewModel.ProgressColor = Colors.Green; + else if (button.Text == "Red") + _viewModel.ProgressColor = Colors.Red; + } - private void BackgroundColorButton_Clicked(object sender, EventArgs e) - { - var button = (Button)sender; - if (button.Text == "Orange") - _viewModel.BackgroundColor = Colors.Orange; - else if (button.Text == "Light Blue") - _viewModel.BackgroundColor = Colors.LightBlue; - } + private void BackgroundColorButton_Clicked(object sender, EventArgs e) + { + var button = (Button)sender; + if (button.Text == "Orange") + _viewModel.BackgroundColor = Colors.Orange; + else if (button.Text == "Light Blue") + _viewModel.BackgroundColor = Colors.LightBlue; + } - private void OnIsVisibleCheckedChanged(object sender, CheckedChangedEventArgs e) - { - var radioButton = sender as RadioButton; - if (radioButton != null && radioButton.IsChecked) - { - _viewModel.IsVisible = false; - } - } + private void OnIsVisibleCheckedChanged(object sender, CheckedChangedEventArgs e) + { + var radioButton = sender as RadioButton; + if (radioButton != null && radioButton.IsChecked) + { + _viewModel.IsVisible = false; + } + } - private void OnFlowDirectionChanged(object sender, EventArgs e) - { - var radioButton = sender as RadioButton; - if (radioButton != null && radioButton.IsChecked) - { - _viewModel.FlowDirection = radioButton.Content.ToString() == "LTR" ? FlowDirection.LeftToRight : FlowDirection.RightToLeft; - } - } + private void OnFlowDirectionChanged(object sender, EventArgs e) + { + var radioButton = sender as RadioButton; + if (radioButton != null && radioButton.IsChecked) + { + _viewModel.FlowDirection = radioButton.Content.ToString() == "LTR" ? FlowDirection.LeftToRight : FlowDirection.RightToLeft; + } + } - private void OnShadowCheckedChanged(object sender, CheckedChangedEventArgs e) - { - var radioButton = (RadioButton)sender; - if (radioButton != null && radioButton.IsChecked) - { - _viewModel.Shadow = new Shadow { Brush = Colors.Violet, Radius = 20, Offset = new Point(0, 0), Opacity = 1f }; - } - } + private void OnShadowCheckedChanged(object sender, CheckedChangedEventArgs e) + { + var radioButton = (RadioButton)sender; + if (radioButton != null && radioButton.IsChecked) + { + _viewModel.Shadow = new Shadow { Brush = Colors.Violet, Radius = 20, Offset = new Point(0, 0), Opacity = 1f }; + } + } - private void ProgressToButton_Clicked(object sender, EventArgs e) - { - if (!string.IsNullOrWhiteSpace(ProgressToEntry.Text)) - { - if (progressBar == null) - { - progressBarControl.ProgressTo(double.Parse(ProgressToEntry.Text), 1000, Easing.Linear); - } - else - { - progressBar.ProgressTo(double.Parse(ProgressToEntry.Text), 1000, Easing.Linear); - } - } - } + private void ProgressToButton_Clicked(object sender, EventArgs e) + { + if (!string.IsNullOrWhiteSpace(ProgressToEntry.Text)) + { + if (progressBar == null) + { + progressBarControl.ProgressTo(double.Parse(ProgressToEntry.Text), 1000, Easing.Linear); + } + else + { + progressBar.ProgressTo(double.Parse(ProgressToEntry.Text), 1000, Easing.Linear); + } + } + } - private void ResetButton_Clicked(object sender, EventArgs e) - { - ProgressEntry.Text = "0.50"; - ProgressToEntry.Text = "0"; - IsVisibleTrueRadio.IsChecked = false; - FlowDirectionLTR.IsChecked = false; - FlowDirectionRTL.IsChecked = false; - ShadowFalseRadio.IsChecked = false; - ReinitializeProgressBar(); - } + private void ResetButton_Clicked(object sender, EventArgs e) + { + ProgressEntry.Text = "0.50"; + ProgressToEntry.Text = "0"; + IsVisibleTrueRadio.IsChecked = false; + FlowDirectionLTR.IsChecked = false; + FlowDirectionRTL.IsChecked = false; + ShadowFalseRadio.IsChecked = false; + ReinitializeProgressBar(); + } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarViewModel.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarViewModel.cs index 447a07e57e12..b8b974138398 100644 --- a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarViewModel.cs +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarViewModel.cs @@ -4,98 +4,98 @@ namespace Maui.Controls.Sample { - public class ProgressBarViewModel : INotifyPropertyChanged - { - private double _progress = 0.5; - private Color _progressColor; - private Color _backgroundColor; - private bool _isVisible = true; - private FlowDirection _flowDirection = FlowDirection.LeftToRight; - private Shadow _shadow; + public class ProgressBarViewModel : INotifyPropertyChanged + { + private double _progress = 0.5; + private Color _progressColor; + private Color _backgroundColor; + private bool _isVisible = true; + private FlowDirection _flowDirection = FlowDirection.LeftToRight; + private Shadow _shadow; - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler PropertyChanged; - public double Progress - { - get => _progress; - set - { - if (_progress != value) - { - _progress = value; - OnPropertyChanged(); - } - } - } + public double Progress + { + get => _progress; + set + { + if (_progress != value) + { + _progress = value; + OnPropertyChanged(); + } + } + } - public Color ProgressColor - { - get => _progressColor; - set - { - if (_progressColor != value) - { - _progressColor = value; - OnPropertyChanged(); - } - } - } + public Color ProgressColor + { + get => _progressColor; + set + { + if (_progressColor != value) + { + _progressColor = value; + OnPropertyChanged(); + } + } + } - public Color BackgroundColor - { - get => _backgroundColor; - set - { - if (_backgroundColor != value) - { - _backgroundColor = value; - OnPropertyChanged(); - } - } - } + public Color BackgroundColor + { + get => _backgroundColor; + set + { + if (_backgroundColor != value) + { + _backgroundColor = value; + OnPropertyChanged(); + } + } + } - public bool IsVisible - { - get => _isVisible; - set - { - if (_isVisible != value) - { - _isVisible = value; - OnPropertyChanged(); - } - } - } + public bool IsVisible + { + get => _isVisible; + set + { + if (_isVisible != value) + { + _isVisible = value; + OnPropertyChanged(); + } + } + } - public FlowDirection FlowDirection - { - get => _flowDirection; - set - { - if (_flowDirection != value) - { - _flowDirection = value; - OnPropertyChanged(); - } - } - } + public FlowDirection FlowDirection + { + get => _flowDirection; + set + { + if (_flowDirection != value) + { + _flowDirection = value; + OnPropertyChanged(); + } + } + } - public Shadow Shadow - { - get => _shadow; - set - { - if (_shadow != value) - { - _shadow = value; - OnPropertyChanged(); - } - } - } + public Shadow Shadow + { + get => _shadow; + set + { + if (_shadow != value) + { + _shadow = value; + OnPropertyChanged(); + } + } + } - protected void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); - } - } + protected void OnPropertyChanged([CallerMemberName] string propertyName = null) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); + } + } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageFeatureTests.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageFeatureTests.cs index 15b6283cca33..5d7ae1e41775 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageFeatureTests.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageFeatureTests.cs @@ -393,7 +393,7 @@ public void VerifyImageWithAnimation() App.Tap(Apply); App.WaitForElement("ImageControl"); } - + [Test] [Category(UITestCategories.Image)] public void VerifyImageWithoutAnimation() diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ProgressBarFeatureTests.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ProgressBarFeatureTests.cs index f345253912e9..678e8bf3b79c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ProgressBarFeatureTests.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ProgressBarFeatureTests.cs @@ -4,137 +4,137 @@ namespace Microsoft.Maui.TestCases.Tests { - public class ProgressBarFeatureTests : UITest - { - public ProgressBarFeatureTests(TestDevice device) - : base(device) - { - } + public class ProgressBarFeatureTests : UITest + { + public ProgressBarFeatureTests(TestDevice device) + : base(device) + { + } - protected override void FixtureSetup() - { - base.FixtureSetup(); - App.NavigateToGallery("ProgressBar Feature Matrix"); - } + protected override void FixtureSetup() + { + base.FixtureSetup(); + App.NavigateToGallery("ProgressBar Feature Matrix"); + } - [Test, Order(1)] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_ValidateDefaultProgress() - { - App.WaitForElement("ProgressValueLabel"); - Assert.That(App.FindElement("ProgressValueLabel").GetText(), Is.EqualTo("0.50")); - } + [Test, Order(1)] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_ValidateDefaultProgress() + { + App.WaitForElement("ProgressValueLabel"); + Assert.That(App.FindElement("ProgressValueLabel").GetText(), Is.EqualTo("0.50")); + } - [Test, Order(2)] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_SetProgress_VerifyLabel() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ProgressEntry"); - App.ClearText("ProgressEntry"); - App.EnterText("ProgressEntry", "0.80"); - App.PressEnter(); - App.WaitForElement("ProgressValueLabel"); - Assert.That(App.FindElement("ProgressValueLabel").GetText(), Is.EqualTo("0.80")); - } + [Test, Order(2)] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_SetProgress_VerifyLabel() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ProgressEntry"); + App.ClearText("ProgressEntry"); + App.EnterText("ProgressEntry", "0.80"); + App.PressEnter(); + App.WaitForElement("ProgressValueLabel"); + Assert.That(App.FindElement("ProgressValueLabel").GetText(), Is.EqualTo("0.80")); + } - [Test, Order(3)] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_ProgressToMethod_VerifyVisualState() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ProgressToEntry"); - App.ClearText("ProgressToEntry"); - App.EnterText("ProgressToEntry", "0.90"); - App.PressEnter(); - App.WaitForElement("ProgressToButton"); - App.Tap("ProgressToButton"); - Task.Delay(1000).Wait(); - VerifyScreenshot(); - } + [Test, Order(3)] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_ProgressToMethod_VerifyVisualState() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ProgressToEntry"); + App.ClearText("ProgressToEntry"); + App.EnterText("ProgressToEntry", "0.90"); + App.PressEnter(); + App.WaitForElement("ProgressToButton"); + App.Tap("ProgressToButton"); + Task.Delay(1000).Wait(); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_SetProgressOutOfRange() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ProgressEntry"); - App.ClearText("ProgressEntry"); - App.EnterText("ProgressEntry", "1.44"); - App.PressEnter(); - App.WaitForElement("ProgressBarControl"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_SetProgressOutOfRange() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ProgressEntry"); + App.ClearText("ProgressEntry"); + App.EnterText("ProgressEntry", "1.44"); + App.PressEnter(); + App.WaitForElement("ProgressBarControl"); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_SetProgressNegativeValue() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ProgressEntry"); - App.ClearText("ProgressEntry"); - App.EnterText("ProgressEntry", "-0.44"); - App.PressEnter(); - App.WaitForElement("ProgressBarControl"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_SetProgressNegativeValue() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ProgressEntry"); + App.ClearText("ProgressEntry"); + App.EnterText("ProgressEntry", "-0.44"); + App.PressEnter(); + App.WaitForElement("ProgressBarControl"); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_SetProgressColorAndBackgroundColor_VerifyVisualState() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ProgressEntry"); - App.ClearText("ProgressEntry"); - App.EnterText("ProgressEntry", "0.60"); - App.PressEnter(); - App.WaitForElement("ProgressColorRedButton"); - App.Tap("ProgressColorRedButton"); - App.WaitForElement("BackgroundColorLightBlueButton"); - App.Tap("BackgroundColorLightBlueButton"); - App.WaitForElement("ProgressBarControl"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_SetProgressColorAndBackgroundColor_VerifyVisualState() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ProgressEntry"); + App.ClearText("ProgressEntry"); + App.EnterText("ProgressEntry", "0.60"); + App.PressEnter(); + App.WaitForElement("ProgressColorRedButton"); + App.Tap("ProgressColorRedButton"); + App.WaitForElement("BackgroundColorLightBlueButton"); + App.Tap("BackgroundColorLightBlueButton"); + App.WaitForElement("ProgressBarControl"); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_SetIsVisibleFalse_VerifyLabel() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("IsVisibleFalseRadio"); - App.Tap("IsVisibleFalseRadio"); - App.WaitForNoElement("ProgressBarControl"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_SetIsVisibleFalse_VerifyLabel() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("IsVisibleFalseRadio"); + App.Tap("IsVisibleFalseRadio"); + App.WaitForNoElement("ProgressBarControl"); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_ChangeFlowDirection_RTL_VerifyLabel() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("FlowDirectionRTL"); - App.Tap("FlowDirectionRTL"); - App.WaitForElement("ProgressBarControl"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_ChangeFlowDirection_RTL_VerifyLabel() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("FlowDirectionRTL"); + App.Tap("FlowDirectionRTL"); + App.WaitForElement("ProgressBarControl"); + VerifyScreenshot(); + } - [Test] - [Category(UITestCategories.ProgressBar)] - public void ProgressBar_ToggleShadow_VerifyVisualState() - { - App.WaitForElement("ResetButton"); - App.Tap("ResetButton"); - App.WaitForElement("ShadowTrueRadio"); - App.Tap("ShadowTrueRadio"); - App.WaitForElement("ProgressBarControl"); - VerifyScreenshot(); - } - } + [Test] + [Category(UITestCategories.ProgressBar)] + public void ProgressBar_ToggleShadow_VerifyVisualState() + { + App.WaitForElement("ResetButton"); + App.Tap("ResetButton"); + App.WaitForElement("ShadowTrueRadio"); + App.Tap("ShadowTrueRadio"); + App.WaitForElement("ProgressBarControl"); + VerifyScreenshot(); + } + } } \ No newline at end of file