using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
+using System.IO;
using System.Threading.Tasks;
using ElmSharpForTizen.Tizen;
[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]