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

            MeasureSpecification measuredLength = new MeasureSpecification(new LayoutLength(50.0f), MeasureSpecification.ModeType.Exactly);
            LayoutLength         length         = new LayoutLength(10);
            LayoutLength         result         = LayoutItem.GetDefaultSize(length, measuredLength);

            Assert.AreEqual(50.0f, result.AsRoundedValue(), "Should be value set");

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