예제 #1
0
파일: TSHover.cs 프로젝트: yunmiha/TizenFX
        public void HoverGetLocalPosition()
        {
            tlog.Debug(tag, $"HoverGetLocalPosition START");
            /* TEST CODE */
            Hover hover = new Hover();

            Assert.AreEqual(0.0f, hover.GetLocalPosition(0).X, "Should be equals to the origin value of LocalPosition.X");
            Assert.AreEqual(0.0f, hover.GetLocalPosition(0).Y, "Should be equals to the origin value of LocalPosition.Y");
            hover.Dispose();
            tlog.Debug(tag, $"HoverGetLocalPosition END (OK)");
            Assert.Pass("HoverGetLocalPosition");
        }
예제 #2
0
파일: TSHover.cs 프로젝트: wonrst/TizenFX
        public void HoverGetLocalPosition()
        {
            tlog.Debug(tag, $"HoverGetLocalPosition START");

            var testingTarget = new Hover();

            Assert.IsNotNull(testingTarget, "Can't create success object Hover");
            Assert.IsInstanceOf <Hover>(testingTarget, "Should be an instance of Hover type.");

            Assert.AreEqual(0.0f, testingTarget.GetLocalPosition(0).X, "Should be equals to the origin value of LocalPosition.X");
            Assert.AreEqual(0.0f, testingTarget.GetLocalPosition(0).Y, "Should be equals to the origin value of LocalPosition.Y");

            testingTarget.Dispose();
            tlog.Debug(tag, $"HoverGetLocalPosition END (OK)");
            Assert.Pass("HoverGetLocalPosition");
        }