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

            var testingTarget = new Toast();

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

            ToastStyle style = new ToastStyle()
            {
                Text = new TextLabelStyle()
                {
                    Size = new Size(80, 30)
                }
            };

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

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