[ElmSharp] Update ElmSharp.Test.csproj and clean up.
authorKangho Hur <kangho.hur@samsung.com>
Mon, 8 Jan 2018 01:13:34 +0000 (10:13 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 9 Jan 2018 02:23:18 +0000 (11:23 +0900)
test/ElmSharp.Test/ElmSharp.Test.csproj [changed mode: 0755->0644]
test/ElmSharp.Test/TC/ImageTest5.cs

old mode 100755 (executable)
new mode 100644 (file)
index 949dee3..15c273f
@@ -5,21 +5,8 @@
     <TargetFramework>netcoreapp2.0</TargetFramework>
   </PropertyGroup>
 
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugType>portable</DebugType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>None</DebugType>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <Folder Include="shared\" />
-    <Folder Include="res\" />
-  </ItemGroup>
-
-  <!-- Include Nuget Package for Tizen Project building -->
   <ItemGroup>
-    <PackageReference Include="Tizen.NET.Sdk" Version="1.0.0-pre4" />
+    <PackageReference Include="Tizen.NET.Sdk" Version="1.0.0" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\..\src\ElmSharp\ElmSharp.csproj" />
index a07635f..9f79b9e 100644 (file)
@@ -27,9 +27,6 @@ namespace ElmSharp.Test
         public override string TestName => "ImageTest5";
         public override string TestDescription => "TC of IsOpaque";
 
-        Image image;
-        Label lbInfo;
-
         public override void Run(Window window)
         {
             Conformant conformant = new Conformant(window);
@@ -38,7 +35,7 @@ namespace ElmSharp.Test
             conformant.SetContent(box);
             box.Show();
 
-            image = new Image(window)
+            var image = new Image(window)
             {
                 IsFixedAspect = true,
                 AlignmentX = -1,
@@ -60,7 +57,7 @@ namespace ElmSharp.Test
 
             kill.Clicked += async (s, e) =>
             {
-                image.LoadAsync(Path.Combine(TestRunner.ResourceDir, "img_1_a.png"));
+                await image.LoadAsync(Path.Combine(TestRunner.ResourceDir, "img_1_a.png"));
                 await Task.Delay(10);
                 await image.LoadAsync(Path.Combine(TestRunner.ResourceDir, "img_2_a.png"));
                 image.IsOpaque = false;