예제 #1
0
        public void DatePickerGetNextFocusableView()
        {
            tlog.Debug(tag, $"DatePickerGetNextFocusableView START");

            DatePickerStyle dpStyle = new DatePickerStyle()
            {
                Pickers = new PickerStyle()
                {
                    StartScrollOffset = new Size(10, 10),
                    Divider           = new ViewStyle()
                    {
                        Position = new Position(30, 40),
                    }
                },
                CellPadding = new Size2D(20, 20),
            };

            var testingTarget = new DatePicker(dpStyle);

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

            try
            {
                testingTarget.GetNextFocusableView(null, View.FocusDirection.Down, true);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

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