Ejemplo n.º 1
0
        private FREObject RunExtensibleTests(FREContext ctx, uint argc, FREObject[] argv)
        {
            Trace("***********Start Extensible test***********");
            var rectangle = argv[0].AsRect();

            Trace("Rect :", rectangle, rectangle.X.Equals(50.9) ? "✅" : "❌");
            var frePoint = new Point(10, 88).ToFREObject();

            Trace("Point :", frePoint.toString(),
                  frePoint.GetProp("x").AsInt() == 10 && frePoint.GetProp("y").AsInt() == 88
                    ? "✅"
                    : "❌");
            return(rectangle.ToFREObject());
        }