3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Reflection;
7 using System.Collections.Generic;
8 using Tizen.NUI.Binding;
10 namespace Tizen.NUI.Devel.Tests
12 using tlog = Tizen.Log;
15 [Description("internal/XamlBinding/AlertArguments")]
16 public class InternalAlertArgumentsTest
18 private const string tag = "NUITEST";
23 tlog.Info(tag, "Init() is called!");
29 tlog.Info(tag, "Destroy() is called!");
34 [Description("AlertArguments constructor")]
35 [Property("SPEC", "Tizen.NUI.AlertArguments.AlertArguments C")]
36 [Property("SPEC_URL", "-")]
37 [Property("CRITERIA", "CONSTR")]
38 public void AlertArgumentsConstructor()
40 tlog.Debug(tag, $"AlertArgumentsConstructor START");
42 var testingTarget = new AlertArguments("AlertArguments", "AlertArguments", "ACCEPT", "CANCEL");
43 Assert.IsNotNull(testingTarget, "Can't create success object AlertArguments.");
44 Assert.IsInstanceOf<AlertArguments>(testingTarget, "Should return AlertArguments instance.");
46 tlog.Debug(tag, "Accept : " + testingTarget.Accept);
47 tlog.Debug(tag, "Cancel : " + testingTarget.Cancel);
48 tlog.Debug(tag, "Message : " + testingTarget.Message);
49 tlog.Debug(tag, "Result : " + testingTarget.Result);
50 tlog.Debug(tag, "Title : " + testingTarget.Title);
54 testingTarget.SetResult(true);
58 tlog.Debug(tag, e.Message.ToString());
59 Assert.Fail("Caught Exception : Failed!");
62 tlog.Debug(tag, $"AlertArgumentsConstructor END");