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

            var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);

            Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
            Assert.IsInstanceOf <Alignment>(testingTarget, "Should be an instance of Alignment type.");

            tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());

            using (Alignment.Padding padding = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f))
            {
                testingTarget.SetPadding(padding);
                tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"AlignmentSetPadding END (OK)");
        }