[ElmSharp][Non-ACR][Changed to correct file path instead of file name] 96/174596/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Tue, 3 Apr 2018 06:33:46 +0000 (15:33 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Tue, 3 Apr 2018 06:34:37 +0000 (15:34 +0900)
Change-Id: I44bbb1a98ef6db1322044217a0a11d4a94d95dc5
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSBackground.cs

index 91b7324..74eb8b9 100755 (executable)
@@ -17,6 +17,7 @@
 using NUnit.Framework;
 using NUnit.Framework.TUnit;
 using System;
+using System.IO;
 using System.Threading.Tasks;
 using ElmSharpForTizen.Tizen;
 
@@ -80,9 +81,10 @@ namespace ElmSharp.Tests {
         [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
         public void File_PROPERTY_SET_GET()
         {
-            _Background.File = "Tizen.ElmSharp.Tests.png";
+            string path = Path.Combine(Program.Current.DirectoryInfo.Resource, "Tizen.ElmSharp.Tests.png");
+            _Background.File = path;
             Assert.IsInstanceOf<string>(_Background.File, "Should be type of string.");
-            Assert.AreEqual("Tizen.ElmSharp.Tests.png", _Background.File, "File doesn't set and get successfully.");
+            Assert.AreEqual(path, _Background.File, "File doesn't set and get successfully.");
         }
 
         [Test]