textEditor.CursorPositionChanged -= handler;
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LineWrapMode HYPHENATION/Mixed.Check whether HYPHENATION/Mixed modes are readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.LineWrapMode A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRE")]
+ [Property("AUTHOR", "Abdullah Ghujeh, a.ghujeh@samsung.com")]
+ public void LineWrapMode_SET_GET_ENUM_Hyphenation_Mixed()
+ {
+ var textEditor = new TextEditor();
+
+ textEditor.LineWrapMode = LineWrapMode.Hyphenation;
+ Assert.AreEqual(LineWrapMode.Hyphenation, textEditor.LineWrapMode, "LineWrapMode is not equal to Hyphenation!");
+
+ textEditor.LineWrapMode = LineWrapMode.Mixed;
+ Assert.AreEqual(LineWrapMode.Mixed, textEditor.LineWrapMode, "LineWrapMode is not equal to Mixed!");
+ }
}
}
Assert.IsInstanceOf<TextLabel>(textLabel, "Should be an instance of textLabel type.");
textLabel.MatchSystemLanguageDirection = false;
- Assert.AreEqual(false, textLabel.MatchSystemLanguageDirection, "should be same");\r
-\r
+ Assert.AreEqual(false, textLabel.MatchSystemLanguageDirection, "should be same");
+
textLabel.MatchSystemLanguageDirection = true;
Assert.AreEqual(true, textLabel.MatchSystemLanguageDirection, "should be same");
}
textLabel.FontSizeScale = scale;
Assert.AreEqual(scale, textLabel.FontSizeScale, "Retrieved FontSizeScale should be equal to set value");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LineWrapMode HYPHENATION/MIXED.Check whether HYPHENATION/MIXED modes are readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.LineWrapMode A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRE")]
+ [Property("AUTHOR", "Abdullah Ghujeh, a.ghujeh@samsung.com")]
+ public void LineWrapMode_SET_GET_ENUM_Hyphenation_Mixed()
+ {
+ var textLabel = new TextLabel();
+
+ textLabel.LineWrapMode = LineWrapMode.Hyphenation;
+ Assert.AreEqual(LineWrapMode.Hyphenation, textLabel.LineWrapMode, "LineWrapMode is not equal to Hyphenation!");
+
+ textLabel.LineWrapMode = LineWrapMode.Mixed;
+ Assert.AreEqual(LineWrapMode.Mixed, textLabel.LineWrapMode, "LineWrapMode is not equal to Mixed!");
+ }
}
public class MyTexLabel : TextLabel