1 using NUnit.Framework;
3 using System.Collections;
6 namespace Tizen.NUI.Devel.Tests
8 using tlog = Tizen.Log;
11 [Description("public/xaml/MarkupExtensions/ArrayExtension")]
12 public class PublicArrayExtensionTest
14 private const string tag = "NUITEST";
15 private static ArrayExtension a1;
17 internal class IServiceProviderimplement : IServiceProvider
19 public object GetService(Type serviceType)
28 tlog.Info(tag, "Init() is called!");
29 a1 = new ArrayExtension();
36 tlog.Info(tag, "Destroy() is called!");
41 [Description("ArrayExtension ArrayExtension")]
42 [Property("SPEC", "Tizen.NUI.ArrayExtension.ArrayExtension C")]
43 [Property("SPEC_URL", "-")]
44 [Property("CRITERIA", "CONSTR")]
45 public void ArrayExtensionConstructor()
47 tlog.Debug(tag, $"ArrayExtensionConstructor START");
49 ArrayExtension arrayExtension = new ArrayExtension();
51 tlog.Debug(tag, $"ArrayExtensionConstructor END (OK)");
52 Assert.Pass("ArrayExtensionConstructor");
57 [Description("ArrayExtension Items")]
58 [Property("SPEC", "Tizen.NUI.ArrayExtension.Items A")]
59 [Property("SPEC_URL", "-")]
60 [Property("CRITERIA", "PRW")]
61 public void ArrayExtensionItems()
63 tlog.Debug(tag, $"ArrayExtensionItems START");
71 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
72 Assert.Fail("Caught Exception" + e.ToString());
75 tlog.Debug(tag, $"ArrayExtensionItems END (OK)");
76 Assert.Pass("ArrayExtensionItems");
81 [Description("ArrayExtension Type")]
82 [Property("SPEC", "Tizen.NUI.ArrayExtension.Type A")]
83 [Property("SPEC_URL", "-")]
84 [Property("CRITERIA", "PRW")]
85 public void ArrayExtensionType()
87 tlog.Debug(tag, $"ArrayExtensionType START");
96 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
97 Assert.Fail("Caught Exception" + e.ToString());
100 tlog.Debug(tag, $"ArrayExtensionType END (OK)");
101 Assert.Pass("ArrayExtensionType");
106 [Description("ArrayExtension ProvideValue")]
107 [Property("SPEC", "Tizen.NUI.ArrayExtension.ProvideValue A")]
108 [Property("SPEC_URL", "-")]
109 [Property("CRITERIA", "PRW")]
110 public void ArrayExtensionProvideValue()
112 tlog.Debug(tag, $"ArrayExtensionProvideValue START");
116 IServiceProviderimplement serviceProviderimplement = new IServiceProviderimplement();
117 a1.Type = typeof(string);
119 a1.ProvideValue(serviceProviderimplement);
123 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
124 Assert.Fail("Caught Exception" + e.ToString());
127 tlog.Debug(tag, $"ArrayExtensionProvideValue END (OK)");
128 Assert.Pass("ArrayExtensionProvideValue");