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)"); }
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)"); }