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

            Assert.AreEqual(0.0f, hover.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X");
            Assert.AreEqual(0.0f, hover.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y");
            hover.Dispose();
            tlog.Debug(tag, $"HoverGetScreenPosition END (OK)");
            Assert.Pass("HoverGetScreenPosition");
        }
예제 #2
0
파일: TSHover.cs 프로젝트: wonrst/TizenFX
        public void HoverGetScreenPosition()
        {
            tlog.Debug(tag, $"HoverGetScreenPosition 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.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X");
            Assert.AreEqual(0.0f, testingTarget.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y");

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