예제 #1
0
파일: TSRadian.cs 프로젝트: yunmiha/TizenFX
        public void RadianConstructorWithFloat()
        {
            tlog.Debug(tag, $"RadianConstructorWithFloat START");

            var testingTarget = new Radian(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"RadianConstructorWithFloat END (OK)");
        }
예제 #2
0
파일: TSRadian.cs 프로젝트: yunmiha/TizenFX
        public void RadianConstructorWithDegree()
        {
            tlog.Debug(tag, $"RadianConstructorWithDegree START");

            using (Degree degree = new Degree())
            {
                var testingTarget = new Radian(degree);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RadianConstructorWithDegree END (OK)");
        }
예제 #3
0
파일: TSRadian.cs 프로젝트: yunmiha/TizenFX
        public void RadianValue()
        {
            tlog.Debug(tag, $"RadianValue START");

            var testingTarget = new Radian(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance.");

            testingTarget.Value = 30.0f;
            Assert.AreEqual(30.0f, testingTarget.Value, "radian function does not work, return error value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"RadianValue END (OK)");
        }
예제 #4
0
파일: TSRadian.cs 프로젝트: yunmiha/TizenFX
        public void RadianConvertToFloat()
        {
            tlog.Debug(tag, $"RadianConvertToFloat START");

            var testingTarget = new Radian(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance.");

            var result = testingTarget.ConvertToFloat();

            Assert.AreEqual(10.0f, result, "ConvertToFloat function does not work, return error value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"RadianConvertToFloat END (OK)");
        }
예제 #5
0
파일: TSRadian.cs 프로젝트: yunmiha/TizenFX
        public void RadianDispose()
        {
            tlog.Debug(tag, $"RadianDispose START");

            var testingTarget = new Radian(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance.");

            try
            {
                testingTarget.Dispose();
            }
            catch (Exception e)
            {
                Assert.Fail("Caught Exception" + e.ToString());
            }

            tlog.Debug(tag, $"RadianDispose END (OK)");
        }