From e8beb674282f93cfd56967d37fc7724072259615 Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Tue, 4 Sep 2018 14:47:23 +0900 Subject: [PATCH] [XamarinForms][Non-ACR][Removed static keyword] Change-Id: I45f2a1680c604943e6b150c160b5159e58a81721 --- .../testcase/TSFocusEventArgs.cs | 4 +- .../Tizen.XamarinForms3.Tests/testcase/TSFont.cs | 1 - .../testcase/TSFontSizeConverter.cs | 6 +-- .../testcase/TSFontTypeConverter.cs | 2 +- .../Tizen.XamarinForms3.Tests/testcase/TSFrame.cs | 4 +- .../Tizen.XamarinForms3.Tests/testcase/TSGrid.cs | 2 +- .../Tizen.XamarinForms3.Tests/testcase/TSImage.cs | 2 +- .../testcase/TSImageCell.cs | 2 +- .../testcase/TSImageSource.cs | 60 +--------------------- .../testcase/TSImageSourceConverter.cs | 2 +- 10 files changed, 13 insertions(+), 72 deletions(-) diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs index 30e6cc4..24c8aff 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs @@ -24,8 +24,8 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.FocusEventArgs test")] public class FocusEventArgsTest { - private static FocusEventArgs _focusEventArgs; - private static Label _label; + private FocusEventArgs _focusEventArgs; + private Label _label; [SetUp] public void Setup() { diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFont.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFont.cs index 506e21e..d324c21 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFont.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFont.cs @@ -23,7 +23,6 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] class FontTests { - [SetUp] public void SetUp() { diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontSizeConverter.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontSizeConverter.cs index 7067916..0fe179f 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontSizeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontSizeConverter.cs @@ -24,17 +24,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.FontSizeConverter Tests")] public class FontSizeConverterTests { - private static FontSizeConverter _fontSizeConverter; + private FontSizeConverter _fontSizeConverter; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("FontSizeConverterTests --------------- Setup()"); _fontSizeConverter = new FontSizeConverter(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("FontSizeConverterTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontTypeConverter.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontTypeConverter.cs index a035d68..d5fb5cd 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontTypeConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFontTypeConverter.cs @@ -42,7 +42,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void FontTypeConverter_INIT() + public void FontTypeConverter_INIT() { /* TEST CODE */ var fontTypeConverter = new FontTypeConverter(); diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFrame.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFrame.cs index c0c3681..0ed7240 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFrame.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFrame.cs @@ -22,7 +22,7 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] public class FrameTests { - private static Frame _frame; + private Frame _frame; [SetUp] public void SetUp() { @@ -121,7 +121,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 CornerRadiusProperty_CHECK_BINDABLE() + public void CornerRadiusProperty_CHECK_BINDABLE() { /* TEST CODE */ Button button = new Button(); diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSGrid.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSGrid.cs index f7287ba..b6ae394 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSGrid.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSGrid.cs @@ -25,7 +25,7 @@ namespace Xamarin.Forms.Core.UnitTests public class GridTests { private Grid _grid; - private static bool _flagLayoutChildren, _flagOnAdded, _flagOnBindingContextChanged, _flagOnRemoved, _flagOnSizeRequest; + private bool _flagLayoutChildren, _flagOnAdded, _flagOnBindingContextChanged, _flagOnRemoved, _flagOnSizeRequest; [SetUp] public void SetUp() { diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImage.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImage.cs index dea899e..03e9280 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImage.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImage.cs @@ -27,7 +27,7 @@ namespace Xamarin.Forms.Core.UnitTests { private Image _image; private string _appResourcePath = Program.Current.DirectoryInfo.Resource; - private static bool _flagOnSizeRequest, _flagOnBindingContextChanged; + private bool _flagOnSizeRequest, _flagOnBindingContextChanged; [SetUp] public void SetUp() { diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageCell.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageCell.cs index 9da7963..4759d38 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageCell.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageCell.cs @@ -25,7 +25,7 @@ namespace Xamarin.Forms.Core.UnitTests { private ImageCell _imageCell; private string _appResourcePath = Program.Current.DirectoryInfo.Resource; - private static bool _flagOnBindingContextChanged; + private bool _flagOnBindingContextChanged; [SetUp] public void SetUp() { diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSource.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSource.cs index c649205..8c16860 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSource.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSource.cs @@ -30,7 +30,7 @@ namespace Xamarin.Forms.Core.UnitTests { private ImageSource _imageSource; private string _appResourcePath = Program.Current.DirectoryInfo.Resource; - private static bool _flagOnLoadingStarted, _flagOnLoadingCompleted, _flagOnSourceChanged; + private bool _flagOnLoadingStarted, _flagOnLoadingCompleted, _flagOnSourceChanged; [SetUp] public void SetUp() @@ -246,63 +246,5 @@ namespace Xamarin.Forms.Core.UnitTests imageSource = (Uri)uri; Assert.AreEqual(uri, ((UriImageSource)imageSource).Uri, "Can't setup implicit method"); } - - //[Test] - [Category("P1")] - [Description("Invoke OnLoadingCompleted method, and check whether OnLoadingCompleted method is invoked or not.")] - [Property("SPEC", "Xamarin.Forms.ImageSource.OnLoadingCompleted M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")] - public void OnLoadingCompleted_CHECK() - { - /* TEST CODE */ - //Assert.True(false, "[NA] Can't inherit this api for test"); - var source = "foo://example.com:8042/over/there?name=ferret#nose"; - var uri = new Uri(source); - var subImageSoure = new SubImageSource(); - - subImageSoure.Cancel(); - Assert.IsTrue(_flagOnLoadingCompleted, "Fail to cancel the image of loading"); - } - - //[Test] - [Category("P1")] - [Description("Invoke OnLoadingStarted method, and check whether OnLoadingStarted method is invoked or not.")] - [Property("SPEC", "Xamarin.Forms.ImageSource.OnLoadingStarted M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")] - public void OnLoadingStarted_CHECK() - { - /* TEST CODE */ - Assert.True(false, "[NA] Can't inherit this api for test"); - } - - //[Test] - [Category("P1")] - [Description("Invoke OnSourceChanged method, and check whether OnSourceChanged method is invoked or not.")] - [Property("SPEC", "Xamarin.Forms.ImageSource.OnSourceChanged M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")] - public async Task OnSourceChanged_CHECK() - { - /* TEST CODE */ - Assert.True(false, "[NA] Can't inherit this api for test"); - } - - //[Test] - [Category("P1")] - [Description("Invoke CancellationTokenSource method, and check whether CancellationTokenSource method is invoked or not.")] - [Property("SPEC", "Xamarin.Forms.ImageSource.CancellationTokenSource M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")] - public void CancellationTokenSource_CHECK() - { - /* TEST CODE */ - Assert.True(false, "[NA] Can't inherit this api for test"); - } } } diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSourceConverter.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSourceConverter.cs index 904c500..bc1afca 100755 --- a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSourceConverter.cs +++ b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSImageSourceConverter.cs @@ -42,7 +42,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ImageSourceConverter_INIT() + public void ImageSourceConverter_INIT() { /* TEST CODE */ var imgSrcConvert = new ImageSourceConverter(); -- 2.7.4