Assert.IsInstanceOf<Position>(position, "Should be an instance of Position type.");
Assert.IsTrue(hash >= Int32.MinValue && hash <= Int32.MaxValue, "The value of hash is out of Integer range");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Position constructor test, with two float values")]
+ [Property("SPEC", "Tizen.NUI.Position.Position C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "Single, Single")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Position_INIT_WITH_FLOAT_FLOAT()
+ {
+ /* TEST CODE */
+ var position = new Position(0.5f, 0.5f);
+ Assert.IsInstanceOf<Position>(position, "Should return Position instance.");
+ Assert.AreEqual(0.5f, position.X, "The X property of position is not correct here.");
+ Assert.AreEqual(0.5f, position.Y, "The Y property of position is not correct here.");
+ }
+
}
}
Assert.IsInstanceOf<Size>(size, "Should be an instance of Size type.");
Assert.IsTrue(hash >= Int32.MinValue && hash <= Int32.MaxValue, "The value of hash is out of Integer range");
}
+
+
+ [Test]
+ [Category("P1")]
+ [Description("size constructor, with two float value parameters test")]
+ [Property("SPEC", "Tizen.NUI.Size.Size C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "Single, Single")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Size_INIT_WITH_FLOAT_FLOAT()
+ {
+ /* TEST CODE */
+ var size = new Size(100.0f, 100.0f);
+ Assert.IsInstanceOf<Size>(size, "Should return Size instance.");
+ Assert.AreEqual(100.0f, size.Width, "The Width property of position is not correct here.");
+ Assert.AreEqual(100.0f, size.Height, "The Height property of position is not correct here.");
+ }
+
}
}