1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/TypeConversionAttribute")]
11 internal class PublicTypeConversionAttributeTest
13 private const string tag = "NUITEST";
14 private static TypeConversionAttribute t1;
18 tlog.Info(tag, "Init() is called!");
19 Type type = typeof(string);
20 TypeConversionAttribute t1 = new TypeConversionAttribute(type);
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("TypeConversionAttribute TypeConversionAttribute")]
33 [Property("SPEC", "Tizen.NUI.TypeConversionAttribute.TypeConversionAttribute C")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "CONSTR")]
36 public void TypeConversionAttributeConstructor()
38 tlog.Debug(tag, $"TypeConversionAttributeConstructor START");
39 Type type = typeof(string);
40 TypeConversionAttribute t2 = new TypeConversionAttribute(type);
42 tlog.Debug(tag, $"TypeConversionAttributeConstructor END (OK)");
43 Assert.Pass("TypeConversionAttributeConstructor");
48 [Description("TypeConversionAttribute TargetType")]
49 [Property("SPEC", "Tizen.NUI.TypeConversionAttribute.TargetType A")]
50 [Property("SPEC_URL", "-")]
51 [Property("CRITERIA", "PRW")]
52 public void TypeConversionAttributeTargetType()
54 tlog.Debug(tag, $"TypeConversionAttributeTargetType START");
57 Type type = t1.TargetType;
61 tlog.Debug(tag, e.Message.ToString());
62 tlog.Debug(tag, $"TypeConversionAttributeTargetType END (OK)");
63 Assert.Pass("Caught Exception : passed!");