public void FlexibleViewLayoutManagerOnLayoutComplete()
        {
            tlog.Debug(tag, $"FlexibleViewLayoutManagerOnLayoutComplete START");

            var testingTarget = GetVerticalFlexibleView();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <FlexibleView>(testingTarget, "should be an instance of testing target class!");

            var vHelper = new VerticalHelper(verticalLayoutManager);

            try
            {
                vHelper.OnLayoutComplete();
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"FlexibleViewLayoutManagerOnLayoutComplete END (OK)");
        }
Esempio n. 2
0
        public void OrientationHelperGetViewHolderMeasurementInOther()
        {
            tlog.Debug(tag, $"OrientationHelperGetViewHolderMeasurementInOther START");

            using (LinearLayoutManager manager = new LinearLayoutManager(LinearLayoutManager.VERTICAL))
            {
                var testingTarget = new VerticalHelper(manager);
                Assert.IsNotNull(testingTarget, "should be not null");
                Assert.IsInstanceOf <VerticalHelper>(testingTarget, "should be an instance of testing target class!");

                using (View view = new View()
                {
                    Size = new Size(100, 200)
                })
                {
                    FlexibleViewViewHolder holder = new FlexibleViewViewHolder(view);

                    var result = testingTarget.GetViewHolderMeasurementInOther(holder);
                    tlog.Debug(tag, "GetViewHolderMeasurementInOther : " + result);
                }
            }

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