--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+
+namespace Tizen.Applications.Tests
+{
+ [TestFixture]
+ [Description("Tizen.Applications.SuspendedStateEventArgs Tests")]
+ class SuspendedStateEventArgsTests
+ {
+ [SetUp]
+ public void Init()
+ {
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for each TEST");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a SuspendedStateEventArgs which will be used by applications")]
+ [Property("SPEC", "Tizen.Applications.SuspendedStateEventArgs.SuspendedStateEventArgs C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "hhstark.kang, hhstark.kang@samsung.com")]
+ public void SuspendedStateEventArgs_INIT()
+ {
+ /* TEST CODE */
+ var exitSuspendedArg = new SuspendedStateEventArgs(SuspendedState.DidExit);
+ Assert.IsNotNull(exitSuspendedArg, "SuspendedStateEventArgs should be not null after init");
+ Assert.IsInstanceOf<SuspendedStateEventArgs>(exitSuspendedArg, "Should return SuspendedStateEventArgs.");
+
+ var enterSuspendedArg = new SuspendedStateEventArgs(SuspendedState.WillEnter);
+ Assert.IsNotNull(enterSuspendedArg, "SuspendedStateEventArgs should be not null after init");
+ Assert.IsInstanceOf<SuspendedStateEventArgs>(enterSuspendedArg, "Should return SuspendedStateEventArgs.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test : Gets SuspendedState of the SuspendedStateEventArgs")]
+ [Property("SPEC", "Tizen.Applications.SuspendedStateEventArgs.SuspendedState A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Hyunho Kang, hhstark.kang@samsung.com")]
+ public void SuspendedState_Get_Value()
+ {
+ var exitSuspendedArg = new SuspendedStateEventArgs(SuspendedState.DidExit);
+ Assert.IsNotNull(exitSuspendedArg, "SuspendedStateEventArgs should be not null after init");
+ Assert.IsInstanceOf<SuspendedStateEventArgs>(exitSuspendedArg, "Should return SuspendedStateEventArgs.");
+ Assert.AreEqual(exitSuspendedArg.SuspendedState, SuspendedState.DidExit, "SuspendedState value is not correct");
+
+ var enterSuspendedArg = new SuspendedStateEventArgs(SuspendedState.WillEnter);
+ Assert.IsNotNull(enterSuspendedArg, "SuspendedStateEventArgs should be not null after init");
+ Assert.IsInstanceOf<SuspendedStateEventArgs>(enterSuspendedArg, "Should return SuspendedStateEventArgs.");
+ Assert.AreEqual(enterSuspendedArg.SuspendedState, SuspendedState.WillEnter, "SuspendedState value is not correct");
+ }
+ }
+}