[Description("Tizen.System.Battery tests")]
class BatteryTests
{
- private static int isSupport = 1;
+ private int isSupport = 1;
[SetUp]
- public static void Init()
+ public void Init()
{
bool ret_value;
bool value;
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "isSupport:" + isSupport);
}
- private static int PassForNotSuppot()
+ private int PassForNotSuppot()
{
if (isSupport == 0)
{
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRE")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Level_PROPERTY_GET_ENUM_ALL()
+ public void Level_PROPERTY_GET_ENUM_ALL()
{
//Not pssible to check for all other enum values as the exact definition for each enum value is not available.
/* TEST CODE */
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Percent_PROPERTY_READ_ONLY()
+ public void Percent_PROPERTY_READ_ONLY()
{
if (PassForNotSuppot() == 1) return;
/* TEST CODE */
[Description("Tizen.System.Display tests")]
class DisplayTests
{
- private static int isSupport = 1;
+ private int isSupport = 1;
[SetUp]
- public static void Init()
+ public void Init()
{
bool ret_value;
string value = null;
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void NumberOfDisplays_PROPERTY_READ_ONLY()
+ public void NumberOfDisplays_PROPERTY_READ_ONLY()
{
if (isSupport == 1)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Displays_PROPERTY_READ_ONLY()
+ public void Displays_PROPERTY_READ_ONLY()
{
if (isSupport == 1)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void MaxBrightness_PROPERTY_READ_ONLY()
+ public void MaxBrightness_PROPERTY_READ_ONLY()
{
if (isSupport == 1)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void State_PROPERTY_READ_WRITE()
+ public void State_PROPERTY_READ_WRITE()
{
if (isSupport == 1)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Brightness_READ_WRITE()
+ public void Brightness_READ_WRITE()
{
if (isSupport == 1)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PAM")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Brightness_CHANGE_VALUE()
+ public void Brightness_CHANGE_VALUE()
{
if (isSupport == 1)
{
class IRTests
{
[SetUp]
- public static void Init()
+ public void Init()
{
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void IsAvailable_PROPERTY_READ_ONLY()
+ public void IsAvailable_PROPERTY_READ_ONLY()
{
/* TEST CODE */
var test = IR.IsAvailable;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Transmit_RETURN_CHECK()
+ public void Transmit_RETURN_CHECK()
{
/* TEST CODE */
bool value;
class LedTests
{
[SetUp]
- public static void Init()
+ public void Init()
{
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void MaxBrightness_PROPERTY_READ_ONLY()
+ public void MaxBrightness_PROPERTY_READ_ONLY()
{
/* TEST CODE */
bool value;
var test = Led.MaxBrightness;
Assert.IsInstanceOf<int>(test, "return type of MaxBrightness should be valid");
}
- else
+ else
{
Assert.IsTrue(Led.MaxBrightness == 0, "Max brightness should be 0");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Brightness_PROPERTY_READ_WRITE()
+ public void Brightness_PROPERTY_READ_WRITE()
{
/* TEST CODE */
bool value;
}
}
- private static void Led_BrightnessChanged(object sender, LedBrightnessChangedEventArgs e)
+ private void Led_BrightnessChanged(object sender, LedBrightnessChangedEventArgs e)
{
Assert.IsTrue(e.Brightness == 30, "get/set brightness of Display should be same");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void BrightnessChanged_EVENT_CHECK()
+ public void BrightnessChanged_EVENT_CHECK()
{
/* TEST CODE */
bool value;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Play_STATUS_CHANGED()
+ public void Play_STATUS_CHANGED()
{
/* TEST CODE */
bool value;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Stop_STATUS_CHANGED()
+ public void Stop_STATUS_CHANGED()
{
/* TEST CODE */
bool value;
class PowerTests
{
[SetUp]
- public static void Init()
+ public void Init()
{
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void RequestCpuLock_CHECK_RESULT()
+ public void RequestCpuLock_CHECK_RESULT()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void ReleaseCpuLock_CHECK_RESULT()
+ public void ReleaseCpuLock_CHECK_RESULT()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Pureum Jung, pr.jung@samsung.com")]
- public static void RequestLock_CHECK_RESULT()
+ public void RequestLock_CHECK_RESULT()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
[Property("AUTHOR", "Pureum Jung, pr.jung@samsung.com")]
- public static void RequestLock_ARGUMENT_EXCEPTION()
+ public void RequestLock_ARGUMENT_EXCEPTION()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Pureum Jung, pr.jung@samsung.com")]
- public static void ReleaseLock_CHECK_RESULT()
+ public void ReleaseLock_CHECK_RESULT()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
[Property("AUTHOR", "Pureum Jung, pr.jung@samsung.com")]
- public static void ReleaseLock_ARGUMENT_EXCEPTION()
+ public void ReleaseLock_ARGUMENT_EXCEPTION()
{
/* TEST CODE */
try
using System;
using System.Collections.Generic;
+using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Tizen.System;
[Description("Tizen.System.Vibrator tests")]
class VibratorTests
{
- private static bool support;
+ private bool support;
[SetUp]
- public static void Init()
+ public void Init()
{
bool ret;
bool value;
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void NumberOfVibrators_PROPERTY_READ_ONLY()
+ public void NumberOfVibrators_PROPERTY_READ_ONLY()
{
if (!support)
return;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static void Vibrators_PROPERTY_READ_ONLY()
+ public void Vibrators_PROPERTY_READ_ONLY()
{
if (!support)
return;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static async Task Vibrate_STATUS_CHANGE()
+ public void Vibrate_STATUS_CHANGE()
{
if (!support)
return;
try
{
vib.Vibrate(1000, 50);
- await Task.Delay(1500);
+ Thread.Sleep(1500);
}
catch (Exception e)
{
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Praveen Kumar Gattu, gattu.p@samsung.com")]
- public static async Task Stop_VIBRATE_STOP()
+ public void Stop_VIBRATE_STOP()
{
if (!support)
return;
try
{
vib.Vibrate(3000, 50);
- await Task.Delay(500);
+ Thread.Sleep(500);
vib.Stop();
}
catch (Exception e)