Example #1
0
        public void LayoutGroupIterateLayoutChildren()
        {
            tlog.Debug(tag, $"LayoutGroupIterateLayoutChildren START");

            LayoutItem layoutItem = new LinearLayout();

            View view = new View()
            {
                ExcludeLayouting = false,
            };

            layoutItem.AttachToOwner(view);

            var testingTarget = new MyLayoutGroup();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should return LayoutGroup instance.");

            testingTarget.Add(layoutItem);

            var result = testingTarget.ForeachLayoutChildren();

            Assert.AreEqual(1, result.Count(), "should be equal!");

            tlog.Debug(tag, $"LayoutGroupIterateLayoutChildren END (OK)");
        }