Esempio n. 1
0
        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)");
        }
Esempio n. 2
0
        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)");
        }
Esempio n. 3
0
        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)");
        }
Esempio n. 4
0
        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)");
        }
Esempio n. 5
0
        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)");
        }