Assert.AreEqual(true, ret, "should be same");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test FontSizeScale. Check the default FontSizeScale and whether FontSizeScale is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.FontSizeScale A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Youngbok Shin, youngb.shin@samsung.com")]
+ public void FontSizeScale_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextEditor textEditor = new TextEditor();
+ Assert.AreEqual(1.0, textEditor.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0");
+ float scale = 0.5f;
+ textEditor.FontSizeScale = scale;
+ Assert.AreEqual(scale, textEditor.FontSizeScale, "Retrieved FontSizeScale should be equal to set value");
+ }
}
}
ret = textField.MatchSystemLanguageDirection;
Assert.AreEqual(true, ret, "should be same");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Test FontSizeScale. Check the default FontSizeScale whether FontSizeScale is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.FontSizeScale A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Youngbok Shin, youngb.shin@samsung.com")]
+ public void FontSizeScale_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextField textField = new TextField();
+ Assert.AreEqual(1.0, textField.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0");
+ float scale = 0.5f;
+ textField.FontSizeScale = scale;
+ Assert.AreEqual(scale, textField.FontSizeScale, "Retrieved FontSizeScale should be equal to set value");
+ }
}
}
Assert.AreEqual(true, ret, "should be same");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test FontSizeScale. Check the default FontSizeScale and whether FontSizeScale is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.FontSizeScale A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Youngbok Shin, youngb.shin@samsung.com")]
+ public void FontSizeScale_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextLabel textLabel = new TextLabel();
+ Assert.AreEqual(1.0, textLabel.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0");
+ float scale = 0.5f;
+ textLabel.FontSizeScale = scale;
+ Assert.AreEqual(scale, textLabel.FontSizeScale, "Retrieved FontSizeScale should be equal to set value");
+ }
}
public class MyTexLabel : TextLabel