Ejemplo n.º 1
0
        public void FlexLayoutGetFlexBasis()
        {
            tlog.Debug(tag, $"FlexLayoutGetFlexBasis START");

            View view = new View()
            {
                Size            = new Size(400, 400),
                BackgroundColor = Color.White,
                Layout          = new FlexLayout()
                {
                    Direction = FlexLayout.FlexDirection.Column,
                }
            };

            FlexLayout.SetFlexBasis(view, 0.6f);
            var result = FlexLayout.GetFlexBasis(view);

            Assert.AreEqual(0.6f, result, "should be equal!");

            view.Dispose();
            tlog.Debug(tag, $"FlexLayoutGetFlexBasis END (OK)");
        }