From: Sanghoon Lee Date: Tue, 4 Sep 2018 05:47:23 +0000 (+0900) Subject: [XamarinForms][Non-ACR][Removed static keyword] X-Git-Tag: tct5.0_m2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8beb674282f93cfd56967d37fc7724072259615;p=test%2Ftct%2Fcsharp%2Fapi.git [XamarinForms][Non-ACR][Removed static keyword] Change-Id: I45f2a1680c604943e6b150c160b5159e58a81721 --- diff --git a/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs b/tct-suite-vs/Tizen.XamarinForms3.Tests/testcase/TSFocusEventArgs.cs index 30e6cc419..24c8aff5f 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 506e21e4e..d324c2157 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 7067916f8..0fe179fe1 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 a035d68ff..d5fb5cdde 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 c0c3681fc..0ed724064 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 f7287ba06..b6ae39469 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 dea899e9a..03e9280d6 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 9da796381..4759d3817 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 c64920536..8c168605c 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 904c500ba..bc1afcaaa 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();