示例#1
0
        public void FlexLayoutGetFlexAlignmentSelf()
        {
            tlog.Debug(tag, $"FlexLayoutGetFlexAlignmentSelf START");

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

            FlexLayout.SetFlexAlignmentSelf(view, FlexLayout.AlignmentType.FlexStart);
            var result = FlexLayout.GetFlexAlignmentSelf(view);

            Assert.AreEqual(FlexLayout.AlignmentType.FlexStart, result, "should be equal!");

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