[Test]
[Category("P1")]
- [Description("Test Margin. Check whether WidthSpecification is readable and writable.")]
+ [Description("Test WidthSpecification. Check whether WidthSpecification is readable and writable.")]
[Property("SPEC", "Tizen.NUI.BaseComponents.View.WidthSpecification A")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
View view = new View();
view.WidthSpecification = 100;
Assert.AreEqual(100, view.WidthSpecification, "Should match value set");
+
+ View view2 = new View();
+ view2.WidthSpecification = LayoutParamPolicies.MatchParent;
+ Assert.AreEqual(LayoutParamPolicies.MatchParent, view2.WidthSpecification, "Should match value set");
+
+ View view3 = new View();
+ view3.WidthSpecification = LayoutParamPolicies.WrapContent;
+ Assert.AreEqual(LayoutParamPolicies.WrapContent, view3.WidthSpecification, "Should match value set");
}
[Test]
[Category("P1")]
- [Description("Test Margin. Check whether HeightSpecification is readable and writable.")]
+ [Description("Test HeightSpecification. Check whether HeightSpecification is readable and writable.")]
[Property("SPEC", "Tizen.NUI.BaseComponents.View.HeightSpecification A")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
View view = new View();
view.HeightSpecification = 100;
Assert.AreEqual(100, view.HeightSpecification, "Should match value set");
+
+ View view2 = new View();
+ view2.HeightSpecification = LayoutParamPolicies.MatchParent;
+ Assert.AreEqual(LayoutParamPolicies.MatchParent, view2.HeightSpecification, "Should match value set");
+
+ View view3 = new View();
+ view3.HeightSpecification = LayoutParamPolicies.WrapContent;
+ Assert.AreEqual(LayoutParamPolicies.WrapContent, view3.HeightSpecification, "Should match value set");
}
[Test]