Пример #1
0
        public void TouchGetEllipseRadius()
        {
            tlog.Debug(tag, $"TouchGetEllipseRadius START");
            Touch   a1 = new Touch();
            Vector2 b1 = a1.GetEllipseRadius(2);

            a1.Dispose();

            tlog.Debug(tag, $"TouchGetEllipseRadius END (OK)");
            Assert.Pass("TouchGetEllipseRadius");
        }
Пример #2
0
        public void TouchGetEllipseRadius()
        {
            tlog.Debug(tag, $"TouchGetEllipseRadius START");

            var testingTarget = new Touch();

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

            try
            {
                testingTarget.GetEllipseRadius(0);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                testingTarget.Dispose();
                tlog.Debug(tag, $"TouchGetEllipseRadius END (OK)");
                Assert.Pass("Caught Exception : Passed!");
            }
        }