From: Sanghoon Lee Date: Tue, 4 Sep 2018 05:23:35 +0000 (+0900) Subject: [XamarinForms][Non-ACR][Removed static keyword] X-Git-Tag: tct5.0_m2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56f5547c34b8aa136126b9c480c3ddbc0db8fa04;p=test%2Ftct%2Fcsharp%2Fapi.git [XamarinForms][Non-ACR][Removed static keyword] Change-Id: Id6ed35bad8bfeb7a74a6327739b22f8d7e70e3d0 --- diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinition.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinition.cs index 2e2b452..63c101f 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinition.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinition.cs @@ -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 ColumnDefinition_INIT() + public void ColumnDefinition_INIT() { /* TEST CODE */ var colDef = new ColumnDefinition(); @@ -62,7 +62,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Width_READ_WRITE() + public void Width_READ_WRITE() { /* TEST CODE */ GridLength gridlenth = new GridLength(13.00); @@ -71,7 +71,7 @@ namespace Xamarin.Forms.Core.UnitTests Assert.AreEqual((double)(13.00), sColumnDefinition.Width.Value, "Set and get values are not equal."); } - public static void SizeChangedCallback(object sender, System.EventArgs e) + public void SizeChangedCallback(object sender, System.EventArgs e) { isSizeChanged = true; } @@ -83,7 +83,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "EVL")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void SizeChanged_EVENT() + public void SizeChanged_EVENT() { /* TEST CODE */ isSizeChanged = false; diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinitionCollection.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinitionCollection.cs index 5af9d0b..44c7a70 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinitionCollection.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSColumnDefinitionCollection.cs @@ -43,7 +43,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void ColumnDefinitionCollection_INIT() + public void ColumnDefinitionCollection_INIT() { /* TEST CODE */ var colDefCollection = new ColumnDefinitionCollection(); diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSCommand.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSCommand.cs index 49a4baf..93d53be 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSCommand.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSCommand.cs @@ -43,7 +43,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "Action")] - public static void Command_INIT_ACTION() + public void Command_INIT_ACTION() { /* TEST CODE */ var cmd = new Command(() => { }); @@ -59,7 +59,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "Action")] - public static void Command_INIT_ACTION_OBJECT() + public void Command_INIT_ACTION_OBJECT() { /* TEST CODE */ string result = null; @@ -76,7 +76,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "Action, Func")] - public static void Command_INIT_ACTION_OBJECT_FUNC_BOOL() + public void Command_INIT_ACTION_OBJECT_FUNC_BOOL() { /* TEST CODE */ string result = null; @@ -93,7 +93,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Nguyen Van Tan, nguyen.vtan@samsung.com")] [Property("COVPARAM", "Action, Func")] - public static void Command_INIT_ACTION_FUNC_BOOL() + public void Command_INIT_ACTION_FUNC_BOOL() { /* TEST CODE */ string result = null; diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSConstraint.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSConstraint.cs index a9c2ab3..656dbb1 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSConstraint.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSConstraint.cs @@ -42,7 +42,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Constant_CHECK_RETURN_TYPE() + public void Constant_CHECK_RETURN_TYPE() { /* TEST CODE */ var constant = Constraint.Constant(12.00); @@ -57,7 +57,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void FromExpression_CHECK_RETURN_TYPE() + public void FromExpression_CHECK_RETURN_TYPE() { /* TEST CODE */ System.Linq.Expressions.Expression> expr = () => 5.0; @@ -72,7 +72,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void RelativeToParent_CHECK_RETURN_TYPE() + public void RelativeToParent_CHECK_RETURN_TYPE() { /* TEST CODE */ var relativeToParent = Constraint.RelativeToParent(parent => parent.Height / 2); @@ -87,7 +87,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void RelativeToView_CHECK_RETURN_TYPE() + public void RelativeToView_CHECK_RETURN_TYPE() { /* TEST CODE */ var btn = new Button(); diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSControlTemplate.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSControlTemplate.cs index 23b122a..fc8fb9e 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSControlTemplate.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSControlTemplate.cs @@ -30,13 +30,13 @@ namespace Xamarin.Forms.Core.UnitTests private ControlTemplate _controlTemplate; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TSControlTemplateTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TSControlTemplateTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDataTemplate.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDataTemplate.cs index 8d86be1..bc53975 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDataTemplate.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDataTemplate.cs @@ -21,13 +21,6 @@ using System.Collections.Generic; namespace Xamarin.Forms.Core.UnitTests { - //public class DataTemplateBindable - //{ - // public DataTemplateBindable() - // { - // } - //} - [TestFixture] [Description("Xamarin.Forms.DataTemplate Tests")] class DataTemplateTests @@ -35,16 +28,13 @@ namespace Xamarin.Forms.Core.UnitTests [TypeConverter(typeof(ToBarConverter))] internal class Bar { - } internal class Baz { - } - internal class MockBindable - : View + internal class MockBindable : View { public static readonly BindableProperty TextProperty = BindableProperty.Create( b => b.Text, "default", BindingMode.TwoWay); @@ -95,7 +85,6 @@ namespace Xamarin.Forms.Core.UnitTests return new Bar(); } } - internal class ToBazConverter : TypeConverter { public override object ConvertFrom(System.Globalization.CultureInfo culture, object value) @@ -129,7 +118,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void DataTemplate_INIT() + public void DataTemplate_INIT() { /*TEST CODE*/ var dataTemplate = new DataTemplate(); @@ -145,7 +134,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "System.Func")] - public static void DataTemplate_INIT_WITH_FUNC() + public void DataTemplate_INIT_WITH_FUNC() { /*TEST CODE*/ var dataTemplate = new DataTemplate(() => new MockBindable()); @@ -161,7 +150,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] [Property("COVPARAM", "System.Type")] - public static void DataTemplate_INIT_WITH_TYPE() + public void DataTemplate_INIT_WITH_TYPE() { /*TEST CODE*/ var dataTemplate = new DataTemplate(typeof(String)); diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDateChangedEventArgs.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDateChangedEventArgs.cs index 8ad3e76..f118e56 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDateChangedEventArgs.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDateChangedEventArgs.cs @@ -43,7 +43,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void DateChangedEventArgs_INIT() + public void DateChangedEventArgs_INIT() { /* TEST CODE */ var oldDate = new DateTime(11/02/2016); @@ -60,7 +60,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void NewDate_READ_ONLY() + public void NewDate_READ_ONLY() { /* TEST CODE */ var oldDate1 = new DateTime(11 / 02 / 2016); @@ -78,7 +78,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void OldDate_READ_ONLY() + public void OldDate_READ_ONLY() { /* TEST CODE */ var oldDate2 = new DateTime(11 / 02 / 2016); diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.Styles.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.Styles.cs index d1b2384..7bdc482 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.Styles.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.Styles.cs @@ -25,13 +25,13 @@ namespace Xamarin.Forms.Core.UnitTests public class DeviceStylesTests { [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("DeviceStylesTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("DeviceStylesTests --------------- TearDown()"); } @@ -43,7 +43,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void BodyStyleKey_DeviceStyles_READ() + public void BodyStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label @@ -64,7 +64,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void CaptionStyleKey_DeviceStyles_READ() + public void CaptionStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label @@ -85,7 +85,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void ListItemDetailTextStyleKey_DeviceStyles_READ() + public void ListItemDetailTextStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label @@ -106,7 +106,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void ListItemTextStyleKey_DeviceStyles_READ() + public void ListItemTextStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label @@ -127,7 +127,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void SubtitleStyleKey_DeviceStyles_READ() + public void SubtitleStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label @@ -148,7 +148,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void TitleStyleKey_DeviceStyles_READ() + public void TitleStyleKey_DeviceStyles_READ() { /* TEST CODE */ Label label = new Label diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.cs index 9b1ba2c..0c87da5 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSDevice.cs @@ -26,13 +26,13 @@ namespace Xamarin.Forms.Core.UnitTests public class DeviceTests { [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("DeviceTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("DeviceTests --------------- TearDown()"); } @@ -44,7 +44,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 Idiom_PHONE_READ() + public void Idiom_PHONE_READ() { string profile; Boolean is_mobile = false; @@ -71,7 +71,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 Idiom_TV_READ() + public void Idiom_TV_READ() { string profile; Boolean is_tv = false; @@ -98,7 +98,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 OS_READ() + public void OS_READ() { /* TEST CODE */ var os = Device.OS; @@ -117,7 +117,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")] [Property("COVPARAM", "Xamarin.Forms.NamedSize, System.Type")] - public static void GetNamedSize_WITH_TYPE_CHECK_RETURN() + public void GetNamedSize_WITH_TYPE_CHECK_RETURN() { /* TEST CODE */ Button btn = new Button() @@ -141,7 +141,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("CRITERIA", "MR")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")] [Property("COVPARAM", "Xamarin.Forms.NamedSize, Xamarin.Forms.Element")] - public static void GetNamedSize_WITH_ELEMENT_CHECK_RETURN() + public void GetNamedSize_WITH_ELEMENT_CHECK_RETURN() { /* TEST CODE */ Element btn = new Button() @@ -164,7 +164,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Nguyen Van Tan , nguyen.vtan@samsung.com")] - public static void OnPlatform_CHECK_STATUS() + public void OnPlatform_CHECK_STATUS() { /* TEST CODE */ int fonsize = 10; @@ -184,7 +184,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")] - public static void OnPlatform_GENERIC_CHECK_RETURN() + public void OnPlatform_GENERIC_CHECK_RETURN() { /* TEST CODE */ //Device.OS = TargetPlatform.WinPhone; @@ -204,7 +204,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")] - public async static Task StartTimer_CHECK_STATUS() + public async Task StartTimer_CHECK_STATUS() { var task = new TaskCompletionSource(); @@ -230,7 +230,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void RuntimePlatform_Device_READ() + public void RuntimePlatform_Device_READ() { /* TEST CODE */ var device = Device.RuntimePlatform; diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElement.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElement.cs index 921ed84..e35277a 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElement.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElement.cs @@ -30,9 +30,7 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.Element Tests")] public class ElementTests { - - public class TestElement - : Element + public class TestElement : Element { public bool BindingContextChangedHapped { get; set; } public bool ChildAddedHapped { get; set; } @@ -64,8 +62,6 @@ namespace Xamarin.Forms.Core.UnitTests get { return internalChildren; } } - - protected override void OnBindingContextChanged() { base.OnBindingContextChanged(); @@ -97,21 +93,18 @@ namespace Xamarin.Forms.Core.UnitTests readonly ObservableCollection internalChildren = new ObservableCollection(); } - - - - private static TestElement _element; - public static readonly BindableProperty ClassIdProperty = BindableProperty.Create("ClassId", typeof(string), typeof(View), null); + private TestElement _element; + public readonly BindableProperty ClassIdProperty = BindableProperty.Create("ClassId", typeof(string), typeof(View), null); [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("ElementTests --------------- Setup()"); _element = new TestElement(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("ElementTestss --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementEventArgs.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementEventArgs.cs index c2752b3..46d5798 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementEventArgs.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementEventArgs.cs @@ -27,13 +27,13 @@ namespace Xamarin.Forms.Core.UnitTests private static ElementEventArgs _elementEventArgs; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("FontSizeConverterTests --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("FontSizeConverterTests --------------- TearDown()"); } diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementTemplate.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementTemplate.cs index 82fb494..bbc92b0 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementTemplate.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSElementTemplate.cs @@ -29,13 +29,13 @@ namespace Xamarin.Forms.Core.UnitTests } [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("TSElementTemplate --------------- Setup()"); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("TSElementTemplate --------------- TearDown()"); } @@ -47,7 +47,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")] - public static void CreateContent_CHECK() + public void CreateContent_CHECK() { /*TEST CODE*/ var template = new DataTemplate(() => new MockBindable()) diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEntry.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEntry.cs index d36c593..7d09306 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEntry.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEntry.cs @@ -25,17 +25,17 @@ namespace Xamarin.Forms.Core.UnitTests [Description("Xamarin.Forms.Entry Tests")] public class EntryTests { - private static Entry _entry; + private Entry _entry; [SetUp] - public static void SetUp() + public void SetUp() { Console.WriteLine("EntryTests --------------- Setup()"); _entry = new Entry(); } [TearDown] - public static void TearDown() + public void TearDown() { Console.WriteLine("EntryTests --------------- TearDown()"); } @@ -47,7 +47,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "CONSTR")] [Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")] - public static void Entry_INIT() + public void Entry_INIT() { /* TEST CODE */ var entry = new Entry(); @@ -440,4 +440,4 @@ namespace Xamarin.Forms.Core.UnitTests Assert.IsTrue(flagCompleted, "Event value changed should be handled."); } } -} +} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEventTrigger.cs b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEventTrigger.cs index 1dc20f4..9b2f5f9 100755 --- a/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEventTrigger.cs +++ b/tct-suite-vs/Tizen.XamarinForms2.Tests/testcase/TSEventTrigger.cs @@ -24,7 +24,7 @@ namespace Xamarin.Forms.Core.UnitTests [TestFixture] class EventTriggerTests { - private static EventTrigger _eventTrigger; + private EventTrigger _eventTrigger; [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 EventTrigger_INIT() + public void EventTrigger_INIT() { /* TEST CODE */ var eventTrigger = new EventTrigger(); @@ -62,7 +62,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Event_READ_WRITE() + public void Event_READ_WRITE() { /*TEST CODE*/ string str = "MockEvent"; @@ -77,7 +77,7 @@ namespace Xamarin.Forms.Core.UnitTests [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRO")] [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")] - public static void Actions_READ_ONLY() + public void Actions_READ_ONLY() { /*TEST CODE*/ var getProperty = _eventTrigger.Actions;