namespace Tizen.NUI.Tests
{
+ using tlog = Tizen.Log;
+
[TestFixture]
[Description("Tizen.NUI.UIComponents.Popup Tests")]
public class PopupTests
public void Destroy()
{
Tizen.Log.Info(TAG, "Destroy() is called!");
- }\r
-\r
- private void OnTouchedOutside(object obj, EventArgs e)\r
+ }
+
+ private void OnTouchedOutside(object obj, EventArgs e)
{ }
[Test]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Wu Youxia, youxia.wu@partner.samsung.com")]
- public void Popup_INIT()
+ public async Task Popup_INIT()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
Window.Instance.GetDefaultLayer().Add(popup);
+
+ await Task.Delay(3000);
+
+ popup.Size2D = new Size2D(100, 100);
+
popup.Unparent();
}
/* TEST CODE */
try
{
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
-\r
- var label = new TextLabel("setTitle");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ var label = new TextLabel("setTitle");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
popup.SetTitle(label);
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
popup.Unparent();
+
}
catch (Exception e)
{
/* TEST CODE */
try
{
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- var label = new TextLabel("SetContent");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ var label = new TextLabel("SetContent");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
popup.SetContent(label);
popup.Size2D = new Size2D(100, 100);
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
popup.Unparent();
+
}
catch (Exception e)
{
/* TEST CODE */
try
{
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- var label = new TextLabel("SetFooter");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ var label = new TextLabel("SetFooter");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
popup.SetFooter(label);
popup.Size2D = new Size2D(100, 100);
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
popup.Unparent();
+
}
catch (Exception e)
{
public void Title_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
popup.AnimationDuration = 0.0f;
- popup.SetDisplayState(Popup.DisplayStateType.Shown);\r
-\r
- var label = new TextLabel("test title");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
-\r
- var map = new PropertyMap();\r
-\r
- Assert.IsNotNull(map, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");\r
+ popup.SetDisplayState(Popup.DisplayStateType.Shown);
+
+ var label = new TextLabel("test title");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
+
+ var map = new PropertyMap();
+
+ Assert.IsNotNull(map, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");
map.Add("type", new PropertyValue(label.GetTypeName()));
map.Add("text", new PropertyValue("test title"));
- popup.Title = map;\r
+ popup.Title = map;
var propertyMap = popup.Title;
- Assert.IsNotNull(propertyMap, "Can't create successfully : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of PropertyMap");\r
+ Assert.IsNotNull(propertyMap, "Can't create successfully : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of PropertyMap");
String type = "";
(propertyMap.Find(0, "type")).Get(out type);
Assert.AreEqual("TextLabel", type, "Should be equals to the set value of type");
String text = "";
(propertyMap.Find(1, "text")).Get(out text);
- Assert.AreEqual("test title", text, "Should be equals to the set value of text");\r
-\r
+ Assert.AreEqual("test title", text, "Should be equals to the set value of text");
+
popup.Size2D = new Size2D(100, 100);
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
popup.Unparent();
+
}
[Test]
public void Content_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.Size2D = new Size2D(100, 100);
popup.AnimationDuration = 0.0f;
popup.SetDisplayState(Popup.DisplayStateType.Shown);
- var label = new TextLabel("test title");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var label = new TextLabel("test title");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
var map = new PropertyMap();
- Assert.IsNotNull(map, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");\r
+ Assert.IsNotNull(map, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");
map.Add("type", new PropertyValue(label.GetTypeName()));
map.Add("text", new PropertyValue("test content"));
popup.Content = map;
- var propertyMap = popup.Content;\r
-\r
- Assert.IsNotNull(propertyMap, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of : PropertyMap");\r
+ var propertyMap = popup.Content;
+
+ Assert.IsNotNull(propertyMap, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of : PropertyMap");
String type = "";
(propertyMap.Find(0, "type")).Get(out type);
public void Footer_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
- Window.Instance.GetDefaultLayer().Add(popup);\r
+ Window.Instance.GetDefaultLayer().Add(popup);
popup.Size2D = new Size2D(100, 100);
popup.AnimationDuration = 0.0f;
popup.SetDisplayState(Popup.DisplayStateType.Shown);
- var label = new TextLabel("test title");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var label = new TextLabel("test title");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
var map = new PropertyMap();
- Assert.IsNotNull(map, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");\r
+ Assert.IsNotNull(map, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(map, "Should be an instance of : PropertyMap");
map.Add("type", new PropertyValue(label.GetTypeName()));
map.Add("text", new PropertyValue("test Footer"));
popup.Footer = map;
- var propertyMap = popup.Footer;\r
-\r
- Assert.IsNotNull(propertyMap, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of : PropertyMap");\r
+ var propertyMap = popup.Footer;
+
+ Assert.IsNotNull(propertyMap, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(propertyMap, "Should be an instance of : PropertyMap");
String type = "";
(propertyMap.Find(0, "type")).Get(out type);
public async Task ExitAnimation_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.Size2D = new Size2D(100, 100);
popup.PositionUsesPivotPoint = true;
popup.AnimationDuration = 1.0f;
popup.AnimationMode = Popup.AnimationModeType.Custom;
- var label = new TextLabel("text");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var label = new TextLabel("text");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
popup.SetContent(label);
- var animationMapExit = new PropertyMap();\r
-\r
- Assert.IsNotNull(animationMapExit, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(animationMapExit, "Should be an instance of : PropertyMap");\r
+ var animationMapExit = new PropertyMap();
+
+ Assert.IsNotNull(animationMapExit, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(animationMapExit, "Should be an instance of : PropertyMap");
animationMapExit.Insert("actor", new PropertyValue("customAnimationPopup"));
- animationMapExit.Insert("property", new PropertyValue("position"));\r
-\r
- var EixAnimationDestination = new Vector3(-300.0f, -200.0f, 0.0f);\r
-\r
- Assert.IsNotNull(EixAnimationDestination, "Should not be a Null : Vector3");\r
- Assert.IsInstanceOf<Vector3>(EixAnimationDestination, "Should be an instance of : Vector3");\r
+ animationMapExit.Insert("property", new PropertyValue("position"));
+
+ var EixAnimationDestination = new Vector3(-300.0f, -200.0f, 0.0f);
+
+ Assert.IsNotNull(EixAnimationDestination, "Should not be a Null : Vector3");
+ Assert.IsInstanceOf<Vector3>(EixAnimationDestination, "Should be an instance of : Vector3");
animationMapExit.Insert("value", new PropertyValue(EixAnimationDestination));
animationMapExit.Insert("alphaFunction", new PropertyValue("EASE_IN"));
- var timePeriodMapExit = new PropertyArray();\r
-\r
- Assert.IsNotNull(timePeriodMapExit, "Should not be a Null : PropertyArray");\r
- Assert.IsInstanceOf<PropertyArray>(timePeriodMapExit, "Should be an instance of : PropertyArray");\r
+ var timePeriodMapExit = new PropertyArray();
+
+ Assert.IsNotNull(timePeriodMapExit, "Should not be a Null : PropertyArray");
+ Assert.IsInstanceOf<PropertyArray>(timePeriodMapExit, "Should be an instance of : PropertyArray");
timePeriodMapExit.PushBack(new PropertyValue(0.0f));
- timePeriodMapExit.PushBack(new PropertyValue(1.0f));
+ timePeriodMapExit.PushBack(new PropertyValue(0.2f));
animationMapExit.Insert("timePeriod", new PropertyValue(timePeriodMapExit));
popup.ExitAnimation = animationMapExit;
popup.SetDisplayState(Popup.DisplayStateType.Shown);
- await Task.Delay(20);
-
Assert.IsNotNull(popup, "Should not be a Null : Popup");
Assert.IsNotNull(popup.ExitAnimation, "Should not be a Null : Popup.ExitAnimation");
- Assert.IsInstanceOf<PropertyMap>(popup.ExitAnimation, "Should be an instance of : PropertyMap");\r
+ Assert.IsInstanceOf<PropertyMap>(popup.ExitAnimation, "Should be an instance of : PropertyMap");
popup.Unparent();
}
public async Task EntryAnimation_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.Size2D = new Size2D(100, 100);
popup.PositionUsesPivotPoint = true;
popup.AnimationDuration = 1.0f;
popup.AnimationMode = Popup.AnimationModeType.Custom;
- var label = new TextLabel("text");\r
-\r
- Assert.IsNotNull(label, "Should not be a Null : TextLabel");\r
- Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");\r
+ var label = new TextLabel("text");
+
+ Assert.IsNotNull(label, "Should not be a Null : TextLabel");
+ Assert.IsInstanceOf<TextLabel>(label, "Should be an instance of : TextLabel");
popup.SetContent(label);
- var animationMapEntry = new PropertyMap();\r
-\r
- Assert.IsNotNull(animationMapEntry, "Should not be a Null : PropertyMap");\r
- Assert.IsInstanceOf<PropertyMap>(animationMapEntry, "Should be an instance of : PropertyMap");\r
+ var animationMapEntry = new PropertyMap();
+
+ Assert.IsNotNull(animationMapEntry, "Should not be a Null : PropertyMap");
+ Assert.IsInstanceOf<PropertyMap>(animationMapEntry, "Should be an instance of : PropertyMap");
animationMapEntry.Insert("actor", new PropertyValue("customAnimationPopup"));
animationMapEntry.Insert("property", new PropertyValue("position"));
- var entryAnimationDestination = new Vector3(300.0f, 200.0f, 0.0f);\r
-\r
- Assert.IsNotNull(entryAnimationDestination, "Should not be a Null : Vector3");\r
- Assert.IsInstanceOf<Vector3>(entryAnimationDestination, "Should be an instance of : Vector3");\r
+ var entryAnimationDestination = new Vector3(300.0f, 200.0f, 0.0f);
+
+ Assert.IsNotNull(entryAnimationDestination, "Should not be a Null : Vector3");
+ Assert.IsInstanceOf<Vector3>(entryAnimationDestination, "Should be an instance of : Vector3");
animationMapEntry.Insert("value", new PropertyValue(entryAnimationDestination));
animationMapEntry.Insert("alphaFunction", new PropertyValue("EASE_OUT"));
- var timePeriodMapEntry = new PropertyArray();\r
-\r
- Assert.IsNotNull(timePeriodMapEntry, "Should not be a Null : PropertyArray");\r
- Assert.IsInstanceOf<PropertyArray>(timePeriodMapEntry, "Should be an instance of : PropertyArray");\r
+ var timePeriodMapEntry = new PropertyArray();
+
+ Assert.IsNotNull(timePeriodMapEntry, "Should not be a Null : PropertyArray");
+ Assert.IsInstanceOf<PropertyArray>(timePeriodMapEntry, "Should be an instance of : PropertyArray");
timePeriodMapEntry.PushBack(new PropertyValue(0.0f));
timePeriodMapEntry.PushBack(new PropertyValue(1.0f));
/* TEST CODE */
try
{
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
- Window.Instance.GetDefaultLayer().Add(popup);\r
+ Window.Instance.GetDefaultLayer().Add(popup);
popup.Size2D = new Size2D(100, 100);
popup.AnimationDuration = 0.0f;
public async Task Shown_CHECK_STATE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.Size2D = new Size2D(100, 100);
popup.AnimationDuration = 0.0f;
- flag = false;\r
- popup.Shown += Popup_Shown;\r
+ flag = false;
+ popup.Shown += Popup_Shown;
popup.SetDisplayState(Popup.DisplayStateType.Shown);
await Task.Delay(120);
Assert.IsTrue(flag, "Shown Should be triggered!");
popup.Shown -= Popup_Shown;
popup.Unparent();
- }\r
-\r
- private void Popup_Shown(object sender, Popup.ShownEventArgs e)\r
- {\r
- flag = true;\r
- }\r
-\r
+ }
+
+ private void Popup_Shown(object sender, Popup.ShownEventArgs e)
+ {
+ flag = true;
+ }
+
bool flag = false;
[Test]
[Category("P1")]
public void Showing_CHECK_STATE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
popup.Size2D = new Size2D(100, 100);
popup.Showing -= Popup_Showing;
popup.Unparent();
- }\r
-\r
- private void Popup_Showing(object sender, Popup.ShowingEventArgs e)\r
- {\r
- flag = true;\r
- }\r
-\r
+ }
+
+ private void Popup_Showing(object sender, Popup.ShowingEventArgs e)
+ {
+ flag = true;
+ }
+
[Test]
[Category("P1")]
[Description("Test Hidden.Check whether Hidden will be triggered successfully")]
public async Task Hidden_CHECK_STATE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AnimationDuration = 0.1f;
- flag = false;\r
- popup.Hidden += Popup_Hidden;\r
+ flag = false;
+ popup.Hidden += Popup_Hidden;
popup.SetDisplayState(Popup.DisplayStateType.Shown);
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
await Task.Delay(1200);
popup.SetDisplayState(Popup.DisplayStateType.Hidden);
await Task.Delay(1200);
popup.Hidden -= Popup_Hidden;
popup.Unparent();
- }\r
-\r
- private void Popup_Hidden(object sender, Popup.HiddenEventArgs e)\r
- {\r
- flag = true;\r
- }\r
-\r
+ }
+
+ private void Popup_Hidden(object sender, Popup.HiddenEventArgs e)
+ {
+ flag = true;
+ }
+
[Test]
[Category("P1")]
[Description("Test Hiding.Check whether Hiding will be triggered successfully")]
public void Hiding_CHECK_STATE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AnimationDuration = 0.1f;
- flag = false;\r
- popup.Hiding += Popup_Hiding;\r
-
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ flag = false;
+ popup.Hiding += Popup_Hiding;
+
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.SetDisplayState(Popup.DisplayStateType.Shown);
popup.SetDisplayState(Popup.DisplayStateType.Hidden);
popup.Hide();
popup.Hiding -= Popup_Hiding;
popup.Unparent();
- }\r
-\r
- private void Popup_Hiding(object sender, Popup.HidingEventArgs e)\r
- {\r
- flag = true;\r
- }\r
-\r
+ }
+
+ private void Popup_Hiding(object sender, Popup.HidingEventArgs e)
+ {
+ flag = true;
+ }
+
[Test]
[Category("P1")]
[Description("Test DisplayState.Check whether DisplayState is readable and writeable.")]
public async Task DisplayState_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AnimationDuration = 0.5f;
popup.DisplayState = Popup.DisplayStateType.Shown;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
- Assert.AreEqual(Popup.DisplayStateType.Showing, popup.DisplayState, "Should be equals to the set value of DisplayState");\r
-\r
- await Task.Delay(1000);\r
-\r
- Assert.AreEqual(Popup.DisplayStateType.Shown, popup.DisplayState, "Should be equals to the set value of DisplayState");\r
-\r
- popup.DisplayState = Popup.DisplayStateType.Hidden;\r
-\r
- Assert.AreEqual(Popup.DisplayStateType.Hiding, popup.DisplayState, "Should be equals to the set value of DisplayState");\r
-\r
- await Task.Delay(1000);\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.AreEqual(Popup.DisplayStateType.Showing, popup.DisplayState, "Should be equals to the set value of DisplayState");
+
+ await Task.Delay(1000);
+
+ Assert.AreEqual(Popup.DisplayStateType.Shown, popup.DisplayState, "Should be equals to the set value of DisplayState");
+
+ popup.DisplayState = Popup.DisplayStateType.Hidden;
+
+ Assert.AreEqual(Popup.DisplayStateType.Hiding, popup.DisplayState, "Should be equals to the set value of DisplayState");
+
+ await Task.Delay(1000);
Assert.AreEqual(Popup.DisplayStateType.Hidden, popup.DisplayState, "Should be equals to the set value of DisplayState");
public void TouchTransparent_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.TouchTransparent = true;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
- Assert.AreEqual(true, popup.TouchTransparent, "Should be equals to the set value of TouchTransparent");\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.AreEqual(true, popup.TouchTransparent, "Should be equals to the set value of TouchTransparent");
+
popup.TouchTransparent = false;
- Assert.AreEqual(false, popup.TouchTransparent, "Should be equals to the set value of TouchTransparent");\r
+ Assert.AreEqual(false, popup.TouchTransparent, "Should be equals to the set value of TouchTransparent");
popup.Unparent();
}
public void TailVisibility_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
popup.TailVisibility = true;
- Assert.AreEqual(true, popup.TailVisibility, "Should be equals to the set value of TailVisibility");\r
-\r
+ Assert.AreEqual(true, popup.TailVisibility, "Should be equals to the set value of TailVisibility");
+
popup.TailVisibility = false;
Assert.AreEqual(false, popup.TailVisibility, "Should be equals to the set value of TailVisibility");
public void TailPosition_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
var vector3 = new Vector3(10.0f, 20.0f, 30.0f);
- Assert.IsNotNull(vector3, "Should not be a Null : Vector3");\r
- Assert.IsInstanceOf<Vector3>(vector3, "Should be an instance of : Vector3");\r
+ Assert.IsNotNull(vector3, "Should not be a Null : Vector3");
+ Assert.IsInstanceOf<Vector3>(vector3, "Should be an instance of : Vector3");
popup.TailPosition = vector3;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
Window.Instance.GetDefaultLayer().Add(popup);
Assert.AreEqual(vector3.X, popup.TailPosition.X, "Should be equals to the set value of TailPosition.X");
public void ContextualMode_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.ContextualMode = Popup.ContextualModeType.NonContextual;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
- Assert.AreEqual(Popup.ContextualModeType.NonContextual, popup.ContextualMode, "Should be equals to the set value of ContextualMode");\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.AreEqual(Popup.ContextualModeType.NonContextual, popup.ContextualMode, "Should be equals to the set value of ContextualMode");
+
popup.ContextualMode = Popup.ContextualModeType.Above;
- Assert.AreEqual(Popup.ContextualModeType.Above, popup.ContextualMode, "Should be equals to the set value of ContextualMode");\r
-\r
- //Misspelling, will be fixed later by ACR.\r
+ Assert.AreEqual(Popup.ContextualModeType.Above, popup.ContextualMode, "Should be equals to the set value of ContextualMode");
+
+ //Misspelling, will be fixed later by ACR.
popup.ContextualMode = Popup.ContextualModeType.Rright;
- Assert.AreEqual(Popup.ContextualModeType.Rright, popup.ContextualMode, "Should be equals to the set value of ContextualMode");\r
-\r
+ Assert.AreEqual(Popup.ContextualModeType.Rright, popup.ContextualMode, "Should be equals to the set value of ContextualMode");
+
popup.ContextualMode = Popup.ContextualModeType.Below;
- Assert.AreEqual(Popup.ContextualModeType.Below, popup.ContextualMode, "Should be equals to the set value of ContextualMode");\r
-\r
+ Assert.AreEqual(Popup.ContextualModeType.Below, popup.ContextualMode, "Should be equals to the set value of ContextualMode");
+
popup.ContextualMode = Popup.ContextualModeType.Left;
- Assert.AreEqual(Popup.ContextualModeType.Left, popup.ContextualMode, "Should be equals to the set value of ContextualMode");\r
+ Assert.AreEqual(Popup.ContextualModeType.Left, popup.ContextualMode, "Should be equals to the set value of ContextualMode");
popup.Unparent();
}
public void AnimationDuration_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AnimationDuration = 0.6f;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
Assert.AreEqual(0.6f, popup.AnimationDuration, "Should be equals to the set value of AnimationDuration");
public void AnimationMode_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AnimationMode = Popup.AnimationModeType.Custom;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-
- Assert.AreEqual(Popup.AnimationModeType.Custom, popup.AnimationMode, "Should be equals to the set value of AnimationMode");\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.AreEqual(Popup.AnimationModeType.Custom, popup.AnimationMode, "Should be equals to the set value of AnimationMode");
+
popup.AnimationMode = Popup.AnimationModeType.None;
- Assert.AreEqual(Popup.AnimationModeType.None, popup.AnimationMode, "Should be equals to the set value of AnimationMode");\r
-\r
+ Assert.AreEqual(Popup.AnimationModeType.None, popup.AnimationMode, "Should be equals to the set value of AnimationMode");
+
popup.AnimationMode = Popup.AnimationModeType.Zoom;
- Assert.AreEqual(Popup.AnimationModeType.Zoom, popup.AnimationMode, "Should be equals to the set value of AnimationMode");\r
-\r
+ Assert.AreEqual(Popup.AnimationModeType.Zoom, popup.AnimationMode, "Should be equals to the set value of AnimationMode");
+
popup.AnimationMode = Popup.AnimationModeType.Fade;
- Assert.AreEqual(Popup.AnimationModeType.Fade, popup.AnimationMode, "Should be equals to the set value of AnimationMode");\r
+ Assert.AreEqual(Popup.AnimationModeType.Fade, popup.AnimationMode, "Should be equals to the set value of AnimationMode");
popup.Unparent();
}
public void AutoHideDelay_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.AutoHideDelay = 10;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(10, popup.AutoHideDelay, "Should be equals to the set value of AutoHideDelay");
popup.Unparent();
public void BackingEnabled_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
popup.BackingEnabled = true;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
- Assert.AreEqual(true, popup.BackingEnabled, "Should be equals to the set value of BackingEnabled");\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
+ Assert.AreEqual(true, popup.BackingEnabled, "Should be equals to the set value of BackingEnabled");
+
popup.BackingEnabled = false;
- Assert.AreEqual(false, popup.BackingEnabled, "Should be equals to the set value of BackingEnabled");\r
+ Assert.AreEqual(false, popup.BackingEnabled, "Should be equals to the set value of BackingEnabled");
popup.Unparent();
}
public void BackingColor_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ var color = new Vector4(1.0f, 1.0f, 0.0f, 0.0f);
- var color = new Vector4(1.0f, 1.0f, 0.0f, 0.0f);\r
-\r
- Assert.IsNotNull(color, "Should not be a Null : Vector4");\r
- Assert.IsInstanceOf<Vector4>(color, "Should be an instance of : Vector4");\r
+ Assert.IsNotNull(color, "Should not be a Null : Vector4");
+ Assert.IsInstanceOf<Vector4>(color, "Should be an instance of : Vector4");
popup.BackingColor = color;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(color.R, popup.BackingColor.R, "Should be equals to the set value of BackingColor.R");
Assert.AreEqual(color.G, popup.BackingColor.G, "Should be equals to the set value of BackingColor.G");
Assert.AreEqual(color.B, popup.BackingColor.B, "Should be equals to the set value of BackingColor.B");
public void PopupBackgroundImage_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
- var imageView = new ImageView(image_path);\r
-\r
- Assert.IsNotNull(imageView, "Should not be a Null : ImageView");\r
- Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");\r
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ var imageView = new ImageView(image_path);
+
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
string imageString = imageView.ResourceUrl;
popup.PopupBackgroundImage = imageString;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(imageString, popup.PopupBackgroundImage, "Should be equals to the set value of PopupBackgroundImage");
popup.Unparent();
public void PopupBackgroundBorder_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ var boreder = new Rectangle(1, 1, 0, 0);
- var boreder = new Rectangle(1, 1, 0, 0);\r
-\r
- Assert.IsNotNull(boreder, "Should not be a Null : Rectangle");\r
- Assert.IsInstanceOf<Rectangle>(boreder, "Should be an instance of : Rectangle");\r
+ Assert.IsNotNull(boreder, "Should not be a Null : Rectangle");
+ Assert.IsInstanceOf<Rectangle>(boreder, "Should be an instance of : Rectangle");
popup.PopupBackgroundBorder = boreder;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(1, popup.PopupBackgroundBorder.X, "Should be equals to the set value of PopupBackgroundBorder.x");
Assert.AreEqual(1, popup.PopupBackgroundBorder.Y, "Should be equals to the set value of PopupBackgroundBorder.y");
Assert.AreEqual(0, popup.PopupBackgroundBorder.Width, "Should be equals to the set value of PopupBackgroundBorder.width");
public void TailUpImage_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- var imageView = new ImageView(image_path);\r
-\r
- Assert.IsNotNull(imageView, "Should not be a Null : ImageView");\r
- Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ var imageView = new ImageView(image_path);
+
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
string imageString = imageView.ResourceUrl;
popup.TailUpImage = imageString;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(imageString, popup.TailUpImage, "Should be equals to the set value of TailUpImage");
popup.Unparent();
public void TailDownImage_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
var imageView = new ImageView(image_path);
- Assert.IsNotNull(imageView, "Should not be a Null : ImageView");\r
- Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");\r
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
string imageString = imageView.ResourceUrl;
popup.TailDownImage = imageString;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(imageString, popup.TailDownImage, "Should be equals to the set value of TailDownImage");
popup.Unparent();
public void TailLeftImage_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
var imageView = new ImageView(image_path);
- Assert.IsNotNull(imageView, "Should not be a Null : ImageView");\r
- Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");\r
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
string imageString = imageView.ResourceUrl;
popup.TailLeftImage = imageString;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(imageString, popup.TailLeftImage, "Should be equals to the set value of TailLeftImage");
popup.Unparent();
public void TailRightImage_SET_GET_VALUE()
{
/* TEST CODE */
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ var imageView = new ImageView(image_path);
- var imageView = new ImageView(image_path);\r
-\r
- Assert.IsNotNull(imageView, "Should not be a Null : ImageView");\r
- Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");\r
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
string imageString = imageView.ResourceUrl;
popup.TailRightImage = imageString;
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.GetDefaultLayer().Add(popup);\r
-\r
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.GetDefaultLayer().Add(popup);
+
Assert.AreEqual(imageString, popup.TailRightImage, "Should be equals to the set value of TailRightImage");
popup.Unparent();
/* TEST CODE */
try
{
- var popup = new Popup();\r
-\r
- Assert.IsNotNull(popup, "Should not be a Null : Popup");\r
- Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");\r
-\r
- popup.Size2D = new Size2D(100, 100);\r
-\r
- Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");\r
- Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");\r
-\r
- Window.Instance.Add(popup);\r
-\r
+ var popup = new Popup();
+
+ Assert.IsNotNull(popup, "Should not be a Null : Popup");
+ Assert.IsInstanceOf<Popup>(popup, "Should be an instance of : Popup");
+
+ popup.Size2D = new Size2D(100, 100);
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.Add(popup);
+
popup.Unparent();
popup.Dispose();
}