[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
}
[TearDown]
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
}
[TearDown]
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
+
string data = "Test Data";
_dataPayload = new DataPayload(Encoding.UTF8.GetBytes(data));
}
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
+
string path = Application.Current.ApplicationInfo.SharedResourcePath + "/" + _fileName;
_filePayload = new FilePayload(path);
}
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
}
[TearDown]
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
+
_payloads = new Payload[]
{
new FilePayload(_fileName),
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
+
string data = "PayloadAsyncResultTests";
_dataPayload = new DataPayload(Encoding.UTF8.GetBytes(data));
}
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
}
[TearDown]
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
+
_securityInfo = new SecurityInfo();
}
[SetUp]
public void Init()
{
+ if (TestHelper.IsEmulator())
+ Assert.Pass("The cion feature is not supported on emulator");
}
[TearDown]
_testServer.Value.Accept(eventArgs.PeerInfo);
};
}
- }
-}
+
+ public static bool IsEmulator()
+ {
+ string value;
+ var result = Tizen.System.Information.TryGetValue("tizen.org/system/model_name", out value);
+ if (result && value.Equals("Emulator"))
+ {
+ return true;
+ }
+ return false;\r
+ }\r
+ }\r
+}
\ No newline at end of file