[ElmSharp][Non-ACR][Removed static keyword] 57/186757/1
authorSanghoon Lee <shooney.lee@samsung.com>
Tue, 14 Aug 2018 06:14:29 +0000 (15:14 +0900)
committerSanghoon Lee <shooney.lee@samsung.com>
Tue, 14 Aug 2018 06:14:29 +0000 (15:14 +0900)
Change-Id: I7e8c8c7280abf1626017a26ae0416e801225309b

release/csharp-tct_5.0_dotnet/csharp-tct_5.0_dotnet/package/mobile/Tizen.Applications.Tests-5.0.zip
tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSImage.cs

index 311eba0f7bef6832a0d958d21aa27bedbdc58bb0..7979e09cac2a9dd6069fc5fbb6f15d1f7db59351 100644 (file)
Binary files a/release/csharp-tct_5.0_dotnet/csharp-tct_5.0_dotnet/package/mobile/Tizen.Applications.Tests-5.0.zip and b/release/csharp-tct_5.0_dotnet/csharp-tct_5.0_dotnet/package/mobile/Tizen.Applications.Tests-5.0.zip differ
index 5e239814a7c45815f40ad13ce226d9c19a0e43b5..6c085c2e88c543c5f06e1ffa75bed1f30b4159bc 100755 (executable)
@@ -40,30 +40,30 @@ namespace ElmSharp.Tests
     [Description("Testing ElmSharp.Image class")]
     public class ImageTests
     {
-        private static int _mark;
-        private static Image _image;
-        private static MainWindow _window = MainWindow.GetInstance();
+        private int _mark;
+        private Image _image;
+        private MainWindow _window = MainWindow.GetInstance();
 
         [SetUp]
-        public static void Init()
+        public void Init()
         {
             LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for each TEST");
             _image = new Image(_window);
         }
 
         [TearDown]
-        public static void Destroy()
+        public void Destroy()
         {
             LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");
             _image = null;
         }
 
-        private static void OnLoadingCompleted(object sender, EventArgs e)
+        private void OnLoadingCompleted(object sender, EventArgs e)
         {
             _mark = 1;
         }
 
-        private static void OnLoadingFailed(object sender, EventArgs e)
+        private void OnLoadingFailed(object sender, EventArgs e)
         {
             _mark = 1;
         }
@@ -75,7 +75,7 @@ namespace ElmSharp.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "EVL")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
-        public static async Task LoadingCompleted_CHECK()
+        public async Task LoadingCompleted_CHECK()
         {
             _mark = 0;
             _image.LoadingCompleted += OnLoadingCompleted;
@@ -96,7 +96,7 @@ namespace ElmSharp.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "EVL")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
-        public static async Task LoadingFailed_CHECK()
+        public async Task LoadingFailed_CHECK()
         {
             _mark = 0;
             _image.LoadingFailed += OnLoadingFailed;
@@ -249,7 +249,7 @@ namespace ElmSharp.Tests
         [Property("CRITERIA", "MR")]
         [Precondition(1, "make sure the device can access to the internet")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
-        public static async Task LoadAsync_Uri_CHECK()
+        public async Task LoadAsync_Uri_CHECK()
         {
             bool mark = await _image.LoadAsync("http://pe.tedcdn.com/images/ted/2e306b9655267cee35e45688ace775590b820510_615x461.jpg");
             Assert.IsTrue(mark);
@@ -263,7 +263,7 @@ namespace ElmSharp.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
-        public static async Task LoadAsync_File_CHECK()
+        public async Task LoadAsync_File_CHECK()
         {
             bool mark = await _image.LoadAsync(Program.Current.DirectoryInfo.Resource + "test.jpg");
             Assert.IsTrue(mark, "LoadAsync method return true");
@@ -277,7 +277,7 @@ namespace ElmSharp.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
-        public static async Task LoadAsync_Stream_CHECK()
+        public async Task LoadAsync_Stream_CHECK()
         {
             FileStream fs = new FileStream(Program.Current.DirectoryInfo.Resource + "test.jpg", FileMode.Open, FileAccess.Read);
             bool mark = await _image.LoadAsync(fs);
@@ -648,4 +648,4 @@ namespace ElmSharp.Tests
             Assert.IsNotNull(imageObj, "The image object of image widget shouldn't be null.");
         }
     }
-}
\ No newline at end of file
+}