public void ScrollableBaseScrollTo() { tlog.Debug(tag, $"ScrollableBaseScrollTo START"); var testingTarget = new ScrollableBase() { Size = new Size(100, 2), BackgroundColor = Color.Cyan, ScrollingDirection = ScrollableBase.Direction.Horizontal, }; Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); try { testingTarget.ScrollTo(0.3f, true); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseScrollTo END (OK)"); }
public void ScrollableBaseOnAccessibilityPan() { tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan START"); var testingTarget = new ScrollableBase() { Size = new Size(100, 2), BackgroundColor = Color.Cyan, ScrollingDirection = ScrollableBase.Direction.Vertical, }; Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); using (PanGesture gesture = new PanGesture()) { try { testingTarget.OnAccessibilityPan(gesture); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan END (OK)"); }
public void Deactivate() { window.Remove(rootView); rootView.Dispose(); rootView = null; window = null; }
public void ScrollableBaseFadeScrollbar() { tlog.Debug(tag, $"ScrollableBaseFadeScrollbar START"); var testingTarget = new ScrollableBase(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); testingTarget.FadeScrollbar = false; Assert.AreEqaul(false, testingTarget.FadeScrollbar, "Should be equal."); testingTarget.FadeScrollbar = true; Assert.AreEqaul(true, testingTarget.FadeScrollbar, "Should be equal."); testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseFadeScrollbar END (OK)"); }
public void ScrollableBaseStepScrollDistance() { tlog.Debug(tag, $"ScrollableBaseStepScrollDistance START"); var testingTarget = new ScrollableBase(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); testingTarget.StepScrollDistance = 200f; tlog.Debug(tag, "StepScrollDistance : " + testingTarget.StepScrollDistance); testingTarget.StepScrollDistance = 0f; tlog.Debug(tag, "StepScrollDistance : " + testingTarget.StepScrollDistance); testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseStepScrollDistance END (OK)"); }
public void ScrollableBaseScrollEnabled() { tlog.Debug(tag, $"ScrollableBaseScrollEnabled START"); var testingTarget = new ScrollableBase(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); testingTarget.ScrollEnabled = true; tlog.Debug(tag, "ScrollEnabled : " + testingTarget.ScrollEnabled); testingTarget.ScrollEnabled = false; tlog.Debug(tag, "ScrollEnabled : " + testingTarget.ScrollEnabled); testingTarget.ScrollEnabled = true; tlog.Debug(tag, "ScrollEnabled : " + testingTarget.ScrollEnabled); testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseScrollEnabled END (OK)"); }
public void ScrollableBaseConstructor() { tlog.Debug(tag, $"ScrollableBaseConstructor START"); var testingTarget = new ScrollableBase(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); tlog.Debug(tag, "ScrollPosition : " + testingTarget.ScrollPosition); testingTarget.ScrollingEventThreshold = 0.3f; tlog.Debug(tag, "ScrollingEventThreshold : " + testingTarget.ScrollingEventThreshold); testingTarget.NoticeAnimationEndBeforePosition = 0.5f; tlog.Debug(tag, "NoticeAnimationEndBeforePosition : " + testingTarget.NoticeAnimationEndBeforePosition); testingTarget.Padding = new Extents(2, 2, 2, 2); tlog.Debug(tag, "Padding : " + testingTarget.Padding); testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseConstructor END (OK)"); }
public void ScrollableBaseScrollbar() { tlog.Debug(tag, $"ScrollableBaseScrollbar START"); var testingTarget = new ScrollableBase(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance."); testingTarget.ScrollEnabled = true; tlog.Debug(tag, "ScrollEnabled : " + testingTarget.ScrollEnabled); testingTarget.HideScrollbar = false; Scrollbar bar = new Scrollbar() { Size = new Size(50, 2), }; testingTarget.Scrollbar = bar; testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableBaseScrollbar END (OK)"); }