3 using NUnit.Framework.TUnit;
5 using Tizen.NUI.Components;
6 using Tizen.NUI.BaseComponents;
8 namespace Tizen.NUI.Components.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("Controls/TabView")]
14 public class TabViewTest
16 private const string tag = "NUITEST";
18 internal class MyTabView : TabView
20 public MyTabView() : base()
23 public void OnDispose(DisposeTypes types)
32 tlog.Info(tag, "Init() is called!");
38 tlog.Info(tag, "Destroy() is called!");
43 [Description("TabView Dispose.")]
44 [Property("SPEC", "Tizen.NUI.Components.TabView.Dispose M")]
45 [Property("SPEC_URL", "-")]
46 [Property("CRITERIA", "MR")]
47 [Property("COVPARAM", "")]
48 [Property("AUTHOR", "guowei.wang@samsung.com")]
49 public void TabViewDispose()
51 tlog.Debug(tag, $"TabViewDispose START");
53 var testingTarget = new MyTabView();
54 Assert.IsNotNull(testingTarget, "null handle");
55 Assert.IsInstanceOf<TabView>(testingTarget, "Should return TabView instance.");
59 testingTarget.OnDispose(DisposeTypes.Explicit);
63 tlog.Debug(tag, e.Message.ToString());
64 Assert.Fail("Caught Exception : Failed!");
67 testingTarget.Dispose();
68 tlog.Debug(tag, $"TabViewDispose END (OK)");