Exemplo n.º 1
0
        public void ViewSelectorDataClearShadow()
        {
            tlog.Debug(tag, $"ViewSelectorDataClearShadow START");

            var testingTarget = new ViewSelectorData();

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

            View view = new View()
            {
                ImageShadow = new ImageShadow(path, new Vector2(20, 30), new Vector2(30, 40)),
                BoxShadow   = new Shadow(1.5f, Color.CadetBlue, null, null)
            };

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

            tlog.Debug(tag, $"ViewSelectorDataClearShadow END (OK)");
        }
Exemplo n.º 2
0
        public void ViewSelectorDataClearBackground()
        {
            tlog.Debug(tag, $"ViewSelectorDataClearBackground START");

            var testingTarget = new ViewSelectorData();

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

            View view = new View()
            {
                BackgroundColor = Color.Cyan,
                BackgroundImage = path,
            };

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

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