Esempio n. 1
0
        public void DateTimeRangeOfTickSizes(RangeOfDates info)
        {
            _rangers.GetRange <DateTime, MonthRange>(info.ControlSize,
                                                     info.Minimum,
                                                     info.Maximum,
                                                     out var result,
                                                     info)
            .Should()
            .BeTrue();

            result.Should().NotBeNull();

            result !.RangeStart.Should().Be(info.RangeStart);
            result.RangeEnd.Should().Be(info.RangeEnd);

            result.MinorValue.Should().Be(info.MinorTick);
            result.MajorValue.Should().Be(info.MajorTick);
        }
Esempio n. 2
0
        public void RangeOfTickSizes(RangeOfDates info)
        {
            var ranger = new MonthlyTickRange();

            ranger.Configure(info);

            ranger.GetRange(info.ControlSize,
                            info.Minimum,
                            info.Maximum,
                            out var result)
            .Should()
            .BeTrue();

            result.Should().NotBeNull();

            result !.RangeStart.Should().Be(info.RangeStart);
            result.RangeEnd.Should().Be(info.RangeEnd);

            result.MinorValue.Should().Be(info.MinorTick);
            result.MajorValue.Should().Be(info.MajorTick);
        }