From 59afc6f07c99602e51ba418b64adb2791cff21ef Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Tue, 4 Sep 2018 15:49:52 +0900 Subject: [PATCH] [XamarinForms5][Non-ACR][Removed static keyword] Change-Id: Ib0266e98c51054155ee95f227a091d9282645dca --- .../testcase/TSScrollToRequestedEventArgs.cs | 16 +++---- .../testcase/TSScrollView.cs | 24 +++++----- .../Tizen.XamarinForms5.Tests/testcase/TSSize.cs | 6 +-- .../testcase/TSSizeRequest.cs | 6 +-- .../Tizen.XamarinForms5.Tests/testcase/TSSlider.cs | 20 ++++----- .../Tizen.XamarinForms5.Tests/testcase/TSSpan.cs | 24 +++++----- .../testcase/TSStackLayout.cs | 16 +++---- .../testcase/TSStepper.cs | 20 ++++----- .../Tizen.XamarinForms5.Tests/testcase/TSStyles.cs | 4 +- .../Tizen.XamarinForms5.Tests/testcase/TSSwitch.cs | 12 ++--- .../testcase/TSTableSectionBase.cs | 2 +- .../testcase/TSTemplateExtensions.cs | 4 +- .../testcase/TSTemplatedPage.cs | 2 +- .../testcase/TSTemplatedView.cs | 10 ++--- .../testcase/TSThickness.cs | 6 +-- .../testcase/TSThicknessTypeConverter.cs | 4 +- .../testcase/TSTimePicker.cs | 20 ++++----- .../testcase/TSToolbarItem.cs | 22 +++------ .../testcase/TSTypeConverter.cs | 6 +-- .../testcase/TSTypeConverterAttribute.cs | 6 +-- .../testcase/TSUriTypeConverter.cs | 2 +- .../Tizen.XamarinForms5.Tests/testcase/TSVec2.cs | 6 +-- .../Tizen.XamarinForms5.Tests/testcase/TSView.cs | 22 ++++----- .../testcase/TSViewExtensions.cs | 20 --------- .../testcase/TSVisualElement.cs | 52 ++++++++-------------- .../testcase/TSWebView.cs | 18 ++++---- .../testcase/TSWebViewSource.cs | 2 +- .../testcase/TSWebViewSourceTypeConverter.cs | 2 +- 28 files changed, 155 insertions(+), 199 deletions(-) diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollToRequestedEventArgs.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollToRequestedEventArgs.cs index 7df2d95..7227798 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollToRequestedEventArgs.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollToRequestedEventArgs.cs @@ -25,13 +25,13 @@ namespace Xamarin.Forms.Core.UnitTests public class ScrollToRequestedEventArgsTests { [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TSScrollToRequestedEventArgs --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TSScrollToRequestedEventArgs --------------- TearDown()"); } @@ -43,7 +43,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Element_READ_ONLY() + public void Element_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -68,7 +68,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Mode_READ_ONLY() + public void Mode_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -92,7 +92,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Position_READ_ONLY() + public void Position_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -117,7 +117,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void ScrollX_READ_ONLY() + public void ScrollX_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -141,7 +141,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void ScrollY_READ_ONLY() + public void ScrollY_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -165,7 +165,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void ShouldAnimate_READ_ONLY() + public void ShouldAnimate_READ_ONLY() { /*TEST CODE*/ var scrollView = new ScrollView(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollView.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollView.cs index 1dfaffc..b7e3545 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollView.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSScrollView.cs @@ -40,8 +40,8 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class ScrollViewTests { - private static ScrollView _scrollView; - private static Boolean isScrolled; + private ScrollView _scrollView; + private Boolean isScrolled; [SetUp] public void SetUp() @@ -64,7 +64,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ScrollView_INIT() + public void ScrollView_INIT() { /*TEST CODE*/ var scrollView = new ScrollView(); @@ -79,7 +79,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Content_READ_WRITE() + public void Content_READ_WRITE() { /*TEST CODE*/ var label = new Label() @@ -100,7 +100,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ContentSize_READ_ONLY() + public void ContentSize_READ_ONLY() { /*TEST CODE*/ var getProperty = _scrollView.ContentSize; @@ -115,7 +115,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Orientation_READ_WRITE() + public void Orientation_READ_WRITE() { /*TEST CODE*/ var hor = ScrollOrientation.Horizontal; @@ -140,7 +140,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ScrollX_READ_ONLY() + public void ScrollX_READ_ONLY() { /*TEST CODE*/ var curXPosition = _scrollView.ScrollX; @@ -155,7 +155,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ScrollY_READ_ONLY() + public void ScrollY_READ_ONLY() { /*TEST CODE*/ var curYPosition = _scrollView.ScrollY; @@ -242,7 +242,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Scrolled_EVENT() + public void Scrolled_EVENT() { /* TEST CODE */ isScrolled = false; @@ -265,7 +265,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "Double, Double, bool")] - public static void ScrollToAsync_CHECK_STATUS() + public void ScrollToAsync_CHECK_STATUS() { /*TEST CODE*/ var item = new Label(); @@ -290,7 +290,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] [Property("COVPARAM", "Element, ScrollToPosition, bool")] - public static void ScrollToAsync_CHECK_STATUS_ELEMENT() + public void ScrollToAsync_CHECK_STATUS_ELEMENT() { /*TEST CODE*/ var item = new Label(); @@ -315,7 +315,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void OnSizeRequest_INVOKED_CHECK() + public void OnSizeRequest_INVOKED_CHECK() { /*TEST CODE*/ CustomScrollView customScrollListView = new CustomScrollView(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSize.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSize.cs index 3430b53..51a0904 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSize.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSize.cs @@ -26,17 +26,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.Size Tests")] public class SizeTests { - private static Size _size; + private Size _size; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("SizeTests --------------- Setup()"); _size = new Size(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("SizeTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSizeRequest.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSizeRequest.cs index 8c95da2..99d57fe 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSizeRequest.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSizeRequest.cs @@ -24,16 +24,16 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.SizeRequest Tests")] public class SizeRequestTests { - private static SizeRequest sizeRequest; + private SizeRequest sizeRequest; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("SizeRequestTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("SizeRequestTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSlider.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSlider.cs index b121749..ac9f2e2 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSlider.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSlider.cs @@ -23,8 +23,8 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class SliderTests { - private static Slider slider; - public static Boolean isValueChanged; + private Slider slider; + public Boolean isValueChanged; [SetUp] public void Setup() @@ -77,7 +77,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void MaximumProperty_CHECK_BINDABLE() + public void MaximumProperty_CHECK_BINDABLE() { /* TEST CODE */ var mFirstMaximumProperty = 2.0; @@ -100,7 +100,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void MinimumProperty_CHECK_BINDABLE() + public void MinimumProperty_CHECK_BINDABLE() { /* TEST CODE */ var mFirstMinimumProperty = 2.0; @@ -125,7 +125,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void ValueProperty_CHECK_BINDABLE() + public void ValueProperty_CHECK_BINDABLE() { /* TEST CODE */ var mFirstValueProperty = 2.0; @@ -150,7 +150,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Maximum_READ_WRITE() + public void Maximum_READ_WRITE() { /* TEST CODE */ double value = 10.0; @@ -165,7 +165,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Minimum_READ_WRITE() + public void Minimum_READ_WRITE() { /* TEST CODE */ double value = 1.0; @@ -181,7 +181,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void Value_READ_WRITE() + public void Value_READ_WRITE() { /* TEST CODE */ double value = 1.0; @@ -190,7 +190,7 @@ namespace Xamarin.Forms.Core.UnitTests Assert.IsTrue(slider.Value.Equals(value), "Set and get values are not equal"); } - public static void ValueChangedCallback(object sender, System.EventArgs e) + public void ValueChangedCallback(object sender, System.EventArgs e) { isValueChanged = true; } @@ -202,7 +202,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void ValueChanged_EVENT() + public void ValueChanged_EVENT() { /* TEST CODE */ isValueChanged = false; diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSpan.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSpan.cs index e025d9c..3351ff3 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSpan.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSpan.cs @@ -24,8 +24,8 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class SpanTests { - private static Span _span; - public static Boolean isPropertyChanged; + private Span _span; + public Boolean isPropertyChanged; [SetUp] public void SetUp() @@ -48,7 +48,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Span_INIT() + public void Span_INIT() { /* TEST CODE */ var span = new Span(); @@ -56,7 +56,7 @@ namespace Xamarin.Forms.Core.UnitTests Assert.IsInstanceOf(span); } - public static void PropertyChangedCallback(object sender, System.EventArgs e) + public void PropertyChangedCallback(object sender, System.EventArgs e) { isPropertyChanged = true; } @@ -68,7 +68,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void PropertyChanged_EVENT() + public void PropertyChanged_EVENT() { /* TEST CODE */ isPropertyChanged = false; @@ -87,7 +87,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void BackgroundColor_READ_WRITE() + public void BackgroundColor_READ_WRITE() { /* TEST CODE */ _span.BackgroundColor = Color.Pink; @@ -102,7 +102,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ForegroundColor_READ_WRITE() + public void ForegroundColor_READ_WRITE() { /* TEST CODE */ _span.ForegroundColor = Color.Pink; @@ -117,7 +117,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void FontAttributes_READ_WRITE() + public void FontAttributes_READ_WRITE() { /* TEST CODE */ _span.FontAttributes = FontAttributes.None; @@ -140,7 +140,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void FontSize_READ_WRITE() + public void FontSize_READ_WRITE() { /* TEST CODE */ const double fontSize = 12.00; @@ -156,7 +156,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void FontFamily_READ_WRITE() + public void FontFamily_READ_WRITE() { /* TEST CODE */ const string fontFamily = "Times New Roman"; @@ -172,7 +172,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Text_READ_WRITE() + public void Text_READ_WRITE() { /* TEST CODE */ const string txt = "SRBD"; @@ -188,7 +188,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Font_READ_WRITE() + public void Font_READ_WRITE() { /* TEST CODE */ var font = new Font(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStackLayout.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStackLayout.cs index 5a54891..7d2ed8d 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStackLayout.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStackLayout.cs @@ -25,7 +25,7 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class StackLayoutTests { - private static StackLayout _stackLayout; + private StackLayout _stackLayout; private static bool _flagLayoutChildren; [SetUp] @@ -67,7 +67,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void StackLayout_INIT() + public void StackLayout_INIT() { /* TEST CODE */ var stackLayout = new StackLayout(); @@ -82,7 +82,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Orientation_READ_WRITE() + public void Orientation_READ_WRITE() { /* TEST CODE */ _stackLayout.Orientation = StackOrientation.Horizontal; @@ -99,7 +99,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Spacing_READ_WRITE() + public void Spacing_READ_WRITE() { /* TEST CODE */ int spacing = 15; @@ -114,7 +114,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void OrientationProperty_CHECK_BINDABLE() + public void OrientationProperty_CHECK_BINDABLE() { /* TEST CODE */ var mFirstori = StackOrientation.Horizontal; @@ -135,7 +135,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void SpacingProperty_CHECK_BINDABLE() + public void SpacingProperty_CHECK_BINDABLE() { /* TEST CODE */ double mFirstSpacing = 12.0; @@ -156,7 +156,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void OnSizeRequest_INVOKED_CHECK() + public void OnSizeRequest_INVOKED_CHECK() { /*TEST CODE*/ CustomStackLayout customStackLayout = new CustomStackLayout(); @@ -171,7 +171,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Vu Nhu Anh, anh.vn@samsung.com")] - public static async Task LayoutChildren_INVOKED_CHECK() + public async Task LayoutChildren_INVOKED_CHECK() { /*TEST CODE*/ var subStackLayout = new CustomStackLayout(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStepper.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStepper.cs index b6be9e1..ead9d42 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStepper.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStepper.cs @@ -23,8 +23,8 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class StepperTests { - private static Stepper _stepper; - public static Boolean isValueChanged; + private Stepper _stepper; + public Boolean isValueChanged; [SetUp] public void SetUp() @@ -47,7 +47,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Stepper_INIT() + public void Stepper_INIT() { /* TEST CODE */ var stepper = new Stepper(); @@ -63,7 +63,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("COVPARAM", "double, double, double, double")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Stepper_INIT_WITH_PARAMETER() + public void Stepper_INIT_WITH_PARAMETER() { /* TEST CODE */ var stepper = new Stepper(120, 200, 150, 2); @@ -73,7 +73,7 @@ namespace Xamarin.Forms.Core.UnitTests Assert.AreEqual(2, stepper.Increment); } - public static void ValueChangedCallback(object sender, System.EventArgs e) + public void ValueChangedCallback(object sender, System.EventArgs e) { isValueChanged = true; } @@ -86,7 +86,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ValueChanged_EVENT() + public void ValueChanged_EVENT() { /* TEST CODE */ isValueChanged = false; @@ -105,7 +105,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void IncrementProperty_CHECK_BINDABLE() + public void IncrementProperty_CHECK_BINDABLE() { /* TEST CODE */ double mFirstIncrement = 12.0; @@ -126,7 +126,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void MaximumProperty_CHECK_BINDABLE() + public void MaximumProperty_CHECK_BINDABLE() { /* TEST CODE */ double mFirstMaximum = 22.0; @@ -147,7 +147,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void MinimumProperty_CHECK_BINDABLE() + public void MinimumProperty_CHECK_BINDABLE() { /* TEST CODE */ double mFirstMinimum = 22.0; @@ -168,7 +168,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ValueProperty_CHECK_BINDABLE() + public void ValueProperty_CHECK_BINDABLE() { /* TEST CODE */ double mFirstValue = 22.0; diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStyles.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStyles.cs index b45c265..c0242b7 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStyles.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSStyles.cs @@ -27,13 +27,13 @@ namespace Xamarin.Forms.Core.UnitTests public class StylesTests { [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("StylesTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("StylesTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSwitch.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSwitch.cs index ad13f3c..2715ec3 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSwitch.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSSwitch.cs @@ -12,9 +12,10 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License - */ - -using System.Threading.Tasks; + */ + +using System.Threading; +using System.Threading.Tasks; using NUnit.Framework; using NUnit.Framework.TUnit; @@ -128,7 +129,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public async Task Toggled_CHECK_EVENT() + public void Toggled_CHECK_EVENT() { /* PRECONDITION * 1. Initiate a Switch @@ -142,7 +143,8 @@ namespace Xamarin.Forms.Core.UnitTests _flagToggled = true; }; mySwitch.IsToggled = true; - await Task.Delay(500); + + Thread.Sleep(1000); Assert.IsTrue(_flagToggled, "Flag should be true after Toggled event is called"); } } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTableSectionBase.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTableSectionBase.cs index 2963df7..ef928ac 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTableSectionBase.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTableSectionBase.cs @@ -74,7 +74,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void TouchPointsProperty_CHECK_BINDABLE() + public void TouchPointsProperty_CHECK_BINDABLE() { /* TEST CODE */ TableSectionBase tableSectionBase = new TableSection(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplateExtensions.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplateExtensions.cs index b2e3d27..2592666 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplateExtensions.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplateExtensions.cs @@ -27,13 +27,13 @@ namespace Xamarin.Forms.Core.UnitTests public class TemplateExtensionsTests { [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TemplateExtensionsTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TemplateExtensionsTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedPage.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedPage.cs index 73f5c0a..8ff5ab5 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedPage.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedPage.cs @@ -69,7 +69,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void ControlTemplate_READ_WRITE() + public void ControlTemplate_READ_WRITE() { /* TEST CODE */ TemplatedPage templatedPage = new TemplatedPage(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedView.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedView.cs index b0013d0..d3321dc 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedView.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTemplatedView.cs @@ -49,7 +49,7 @@ namespace Xamarin.Forms.Core.UnitTests } } - private static TemplatedView sTemplatedView; + private TemplatedView sTemplatedView; [SetUp] public void setUp() @@ -72,7 +72,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void TemplatedView_INIT() + public void TemplatedView_INIT() { /*TEST CODE*/ var templatedView = new TemplatedView(); @@ -87,7 +87,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ControlTemplate_READ_WRITE() + public void ControlTemplate_READ_WRITE() { /*TEST CODE*/ ControlTemplate controlTemplate = new ControlTemplate(typeof(SimpleTemplate)); @@ -126,7 +126,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void OnSizeRequest_INVOKED_CHECK() + public void OnSizeRequest_INVOKED_CHECK() { /*TEST CODE*/ CustomTemplatedView customTemplatedView = new CustomTemplatedView(); @@ -141,7 +141,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static async Task LayoutChildren_INVOKED_CHECK() + public async Task LayoutChildren_INVOKED_CHECK() { /*TEST CODE*/ NavigationPage mainPage = (NavigationPage)Program.getApp().MainPage; diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThickness.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThickness.cs index 4f42444..6246090 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThickness.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThickness.cs @@ -23,17 +23,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.Thickness Tests")] public class ThicknessTests { - private static Thickness _thickness; + private Thickness _thickness; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("ThicknessTests --------------- Setup()"); _thickness = new Thickness(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("ThicknessTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThicknessTypeConverter.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThicknessTypeConverter.cs index d55b377..efd0f21 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThicknessTypeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSThicknessTypeConverter.cs @@ -41,7 +41,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ThicknessTypeConverter_INIT() + public void ThicknessTypeConverter_INIT() { /* TEST CODE */ var thicknessTypeComverter = new ThicknessTypeConverter(); @@ -56,7 +56,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ConvertFromInvariantString_CHECK() + public void ConvertFromInvariantString_CHECK() { /* PRECONDITION * 1. Create a ThicknessTypeConverter. diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTimePicker.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTimePicker.cs index 06f0b51..55fb97c 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTimePicker.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTimePicker.cs @@ -23,16 +23,16 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class TimePickerTests { - private static TimePicker _timePicker; + private TimePicker _timePicker; [SetUp] - public static void Init() + public void Init() { LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Setup---------------------------------"); _timePicker = new TimePicker(); } [TearDown] - public static void Destroy() + public void Destroy() { LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Teardown---------------------------------"); } @@ -44,7 +44,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void TimePicker_INIT() + public void TimePicker_INIT() { /* TEST CODE */ var timePicker = new TimePicker(); @@ -59,7 +59,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void Format_SET_GET() + public void Format_SET_GET() { /* PRECONDITION * 1. Check object TimePicker not null. @@ -80,7 +80,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void Time_SET_GET() + public void Time_SET_GET() { /* PRECONDITION * 1. Check object TimePicker not null. @@ -104,7 +104,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void FormatProperty_PROPERTY_READ_ONLY() + public void FormatProperty_PROPERTY_READ_ONLY() { /* PRECONDITION * 1. Initiate two TimePickers. @@ -129,7 +129,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void TimeProperty_PROPERTY_READ_ONLY() + public void TimeProperty_PROPERTY_READ_ONLY() { /* PRECONDITION * 1. Initiate two TimePickers. @@ -181,7 +181,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void TextColorProperty_PROPERTY_READ_ONLY() + public void TextColorProperty_PROPERTY_READ_ONLY() { /* PRECONDITION * 1. Initiate two TimePickers. @@ -206,7 +206,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void TextColor_PROPERTY() + public void TextColor_PROPERTY() { /* * PRECONDITION diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSToolbarItem.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSToolbarItem.cs index 50b458a..2c28059 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSToolbarItem.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSToolbarItem.cs @@ -42,7 +42,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ToolbarItem_INIT() + public void ToolbarItem_INIT() { /* TEST CODE */ var toolbarItem = new ToolbarItem(); @@ -58,7 +58,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("COVPARAM", "string, string, Action, ToolbarItemOrder, int")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ToolbarItem_INIT_WITH_PARAMETER() + public void ToolbarItem_INIT_WITH_PARAMETER() { /* PRECONDITION * 1. Make all parameter to create ToolbarItem. @@ -82,7 +82,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void Name_SET_GET() + public void Name_SET_GET() { /* PRECONDITION * 1. Create a ToolbarItem. @@ -104,7 +104,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void Priority_SET_GET() + public void Priority_SET_GET() { /* PRECONDITION * 1. Create a ToolbarItem. @@ -126,7 +126,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void Order_SET_GET() + public void Order_SET_GET() { /* PRECONDITION * 1. Create a ToolbarItem. @@ -138,17 +138,5 @@ namespace Xamarin.Forms.Core.UnitTests toolbarItem.Order = ToolbarItemOrder.Primary; Assert.AreEqual(ToolbarItemOrder.Primary, toolbarItem.Order, "Order property of ToolbarItem classs doens't set and get successful"); } - //[Test] - [Category("P1")] - [Description("Check whether Activated event is called after touched or clicked.")] - [Property("SPEC", "Xamarin.Forms.ToolbarItem.Activated E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public async Task Activated_CHECK_EVENT() - { - Assert.True(false, "[NA]Manual TC."); - await Task.Delay(100); - } } } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverter.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverter.cs index e42aba8..934db1e 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverter.cs @@ -35,17 +35,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.TypeConverter Tests")] public class TypeConverterTests { - public static TypeConverter _typeConverter; + public TypeConverter _typeConverter; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TypeConverterTests --------------- Setup()"); _typeConverter = new CustomTypeConverter(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TypeConverterTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverterAttribute.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverterAttribute.cs index e70a74c..c70f4df 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverterAttribute.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSTypeConverterAttribute.cs @@ -27,17 +27,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.TypeConverterAttribute Tests")] public class TypeConverterAttributeTests { - public static TypeConverterAttribute _typeConverterAttribute; + public TypeConverterAttribute _typeConverterAttribute; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TypeConverterAttributeTests --------------- Setup()"); _typeConverterAttribute = new TypeConverterAttribute(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TypeConverterAttributeTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSUriTypeConverter.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSUriTypeConverter.cs index b7a6d8b..fd31982 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSUriTypeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSUriTypeConverter.cs @@ -57,7 +57,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ConvertFromInvariantString_CHECK() + public void ConvertFromInvariantString_CHECK() { /* PRECONDITION * 1. Create a UriTypeConverter. diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVec2.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVec2.cs index 5c01892..1bf0f3a 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVec2.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVec2.cs @@ -24,16 +24,16 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.Vec2 Tests")] public class Vec2Tests { - private static Vec2 vec2; + private Vec2 vec2; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("Vec2Tests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("Vec2Tests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSView.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSView.cs index 33fd3eb..16a1bc2 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSView.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSView.cs @@ -36,10 +36,10 @@ namespace Xamarin.Forms.Core.UnitTests } } - private static TestView _view; + private TestView _view; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TSViewTests --------------- Setup()"); _view = new TestView() @@ -49,7 +49,7 @@ namespace Xamarin.Forms.Core.UnitTests } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TSViewTests --------------- TearDown()"); } @@ -61,7 +61,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void HorizontalOptionsProperty_CHECK_BINDABLE() + public void HorizontalOptionsProperty_CHECK_BINDABLE() { /*TEST CODE*/ _view.HorizontalOptions = LayoutOptions.FillAndExpand; @@ -83,7 +83,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void MarginProperty_CHECK_BINDABLE() + public void MarginProperty_CHECK_BINDABLE() { /*TEST CODE*/ _view.Margin = new Thickness(12.4); @@ -105,7 +105,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PCST")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void VerticalOptionsProperty_CHECK_BINDABLE() + public void VerticalOptionsProperty_CHECK_BINDABLE() { /*TEST CODE*/ _view.VerticalOptions = LayoutOptions.FillAndExpand; @@ -127,7 +127,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void GestureRecognizers_READ() + public void GestureRecognizers_READ() { /*TEST CODE*/ var gestureRecognizer = new TapGestureRecognizer(); @@ -147,7 +147,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void HorizontalOptions_READ_WRITE() + public void HorizontalOptions_READ_WRITE() { /*TEST CODE*/ var horizontalOptions = LayoutOptions.FillAndExpand; @@ -164,7 +164,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void Margin_READ_WRITE() + public void Margin_READ_WRITE() { /*TEST CODE*/ var margin = new Thickness(15.03); @@ -181,7 +181,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void VerticalOptions_READ_WRITE() + public void VerticalOptions_READ_WRITE() { /*TEST CODE*/ var verticalOptions = LayoutOptions.FillAndExpand; @@ -198,7 +198,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")] - public static void OnBindingContextChanged_CHECK_INVOCK() + public void OnBindingContextChanged_CHECK_INVOCK() { /*TEST CODE*/ _view.VerticalOptions = LayoutOptions.FillAndExpand; diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSViewExtensions.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSViewExtensions.cs index dea2eb8..5ffe451 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSViewExtensions.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSViewExtensions.cs @@ -53,26 +53,6 @@ namespace Xamarin.Forms.Core.UnitTests Assert.IsNotNull(task, "Task instance is null."); } - - //[Test] - [Category("P1")] - [Description("Check if aborts the animation.")] - [Property("SPEC", "Xamarin.Forms.ViewExtensions.CancelAnimations M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public async Task CancelAnimations_CHECK_STATUS() - { - /* TEST CODE */ - View view = new StackLayout(); - - bool isTranslating = await view.TranslateTo(100.0, 50.0, 3000); - - Assert.IsTrue(isTranslating, "View is not Translating."); - ViewExtensions.CancelAnimations(view); - Assert.IsFalse(isTranslating, "View is Translating."); - } - [Test] [Category("P1")] [Description("Check if returns a task that performs the fading.")] diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVisualElement.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVisualElement.cs index f07586e..ee6f215 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVisualElement.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSVisualElement.cs @@ -20,15 +20,15 @@ using NUnit.Framework; using System.Collections; using System.Collections.Generic; using XamarinForTizen.Tizen; -using AutoTemplate; - +using AutoTemplate; + namespace Xamarin.Forms.Core.UnitTests { [TestFixture] [Description("Xamarin.Forms.VisualElement Tests")] public class VisualElementTests { - private static VisualElement _visualElement; + private VisualElement _visualElement; private static bool _flagFocused, _flagUnfocused, @@ -69,20 +69,6 @@ namespace Xamarin.Forms.Core.UnitTests base.OnSizeAllocated(width, height); } - //protected override void OnDisabled() - //{ - // LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "OnDisabled invoked"); - // _flag = true; - // base.OnDisabled(); - //} - - //protected override void OnEnabled() - //{ - // LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "OnEnabled invoked"); - // _flag = true; - // base.OnEnabled(); - //} - public void TestInvalidateMeasure() { Console.WriteLine("TestInvalidateMeasure invoked"); @@ -131,14 +117,14 @@ namespace Xamarin.Forms.Core.UnitTests } [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("VisualElementTests --------------- Setup()"); _visualElement = new ContentPage(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("VisualElementTests --------------- TearDown()"); } @@ -265,7 +251,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void MinimumHeightRequest_READ_WRITE() + public void MinimumHeightRequest_READ_WRITE() { /* TEST CODE */ Assert.AreEqual(-1, _visualElement.MinimumHeightRequest, "MinimumHeightRequest property Default value is not -1"); @@ -281,7 +267,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void MinimumWidthRequest_READ_WRITE() + public void MinimumWidthRequest_READ_WRITE() { /* TEST CODE */ Assert.AreEqual(-1, _visualElement.MinimumWidthRequest, "MinimumWidthRequest property Default value is not -1"); @@ -297,7 +283,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Opacity_READ_WRITE() + public void Opacity_READ_WRITE() { /*PRECONDITION*/ /* @@ -1201,7 +1187,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void BatchBegin_CHECK() + public void BatchBegin_CHECK() { /* TEST CODE */ try @@ -1223,7 +1209,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void BatchCommit_CHECK() + public void BatchCommit_CHECK() { /* TEST CODE */ try @@ -1246,7 +1232,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Focus_CHECK_RETURN_VALUE() + public void Focus_CHECK_RETURN_VALUE() { /* TEST CODE */ App app = XamarinForTizen.Tizen.Program.getApp(); @@ -1294,7 +1280,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Focus_CHECK_STATUS() + public void Focus_CHECK_STATUS() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1331,7 +1317,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Unfocus_CHECK() + public void Unfocus_CHECK() { /* TEST CODE */ VisualElement visualElement = new Button(); @@ -1346,7 +1332,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Unfocus_CHECK_STATUS() + public void Unfocus_CHECK_STATUS() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1384,7 +1370,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Layout_CHECK_RETURN_VALUE() + public void Layout_CHECK_RETURN_VALUE() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1403,7 +1389,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void GetSizeRequest_CHECK_RETURN_VALUE() + public void GetSizeRequest_CHECK_RETURN_VALUE() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1421,7 +1407,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_NONE() + public void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_NONE() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1440,7 +1426,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_INCLUDEMARGINS() + public void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_INCLUDEMARGINS() { /* TEST CODE */ VisualElement visual = new Button(); @@ -1775,4 +1761,4 @@ namespace Xamarin.Forms.Core.UnitTests } } -} +} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebView.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebView.cs index 79be828..52a49f0 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebView.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebView.cs @@ -43,11 +43,11 @@ namespace Xamarin.Forms.Core.UnitTests } } - private static TestWebView _testWebView; - private static WebView _webView; + private TestWebView _testWebView; + private WebView _webView; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TSWebViewTests --------------- Setup()"); _webView = new WebView() @@ -61,7 +61,7 @@ namespace Xamarin.Forms.Core.UnitTests } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TSWebViewTests --------------- TearDown()"); } @@ -202,7 +202,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Eval_CHECK() + public void Eval_CHECK() { /* TEST CODE */ try @@ -223,7 +223,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void GoBack_CHECK() + public void GoBack_CHECK() { /* TEST CODE */ try @@ -244,7 +244,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void GoForward_CHECK() + public void GoForward_CHECK() { /* TEST CODE */ try @@ -283,7 +283,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void OnBindingContextChanged_CHECK_INVOCK() + public void OnBindingContextChanged_CHECK_INVOCK() { /*TEST CODE*/ _testWebView = new TestWebView(); @@ -306,7 +306,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void OnPropertyChanged_CHECK_INVOCK() + public void OnPropertyChanged_CHECK_INVOCK() { /* TEST CODE */ _testWebView = new TestWebView(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSource.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSource.cs index 1f4edd6..20cfb0e 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSource.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSource.cs @@ -50,7 +50,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void WebViewSource_INIT() + public void WebViewSource_INIT() { CustomWebViewSource customWebViewSource = new CustomWebViewSource(); diff --git a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSourceTypeConverter.cs b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSourceTypeConverter.cs index 2b72a47..992d5a4 100755 --- a/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSourceTypeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms5.Tests/testcase/TSWebViewSourceTypeConverter.cs @@ -57,7 +57,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")] - public static void ConvertFromInvariantString_CHECK() + public void ConvertFromInvariantString_CHECK() { /* PRECONDITION * 1. Create a WebViewSourceTypeConverter. -- 2.7.4