From: Jeonghyun Yun Date: Tue, 3 Apr 2018 06:33:46 +0000 (+0900) Subject: [ElmSharp][Non-ACR][Changed to correct file path instead of file name] X-Git-Tag: public_m1_final~89^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e272ac3c3350dc17b9bd09c51c43f8fa5c99f4a;p=test%2Ftct%2Fcsharp%2Fapi.git [ElmSharp][Non-ACR][Changed to correct file path instead of file name] Change-Id: I44bbb1a98ef6db1322044217a0a11d4a94d95dc5 Signed-off-by: Jeonghyun Yun --- diff --git a/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSBackground.cs b/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSBackground.cs index 91b7324..74eb8b9 100755 --- a/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSBackground.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSBackground.cs @@ -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(_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]