예제 #1
0
        public void Covers_should_be_true_if_big_value_lt_end()
        {
            var range = new HashRange(0, BigInteger.Parse("45671926166590716193865151022383844364247891967"));
            var value = BigInteger.Parse("45671926166590716193865151022383844364247891966");

            range.Covers(value).Should().BeTrue();
        }
예제 #2
0
        public void Covers_should_be_true_if_big_value_gt_end()
        {
            var range = new HashRange(0, BigInteger.Parse("45671926166590716193865151022383844364247891967"));
            var value = BigInteger.Parse("294255062699127052481571644205017775360447081995");

            range.Covers(value).Should().BeFalse();
        }
예제 #3
0
        public void Covers_should_be_false_if_value_gt_end()
        {
            var range = new HashRange(0, 10);

            range.Covers(11).Should().BeFalse();
        }
예제 #4
0
        public void Covers_should_be_false_if_value_lt_start()
        {
            var range = new HashRange(0, 10);

            range.Covers(-1).Should().BeFalse();
        }
예제 #5
0
        public void Covers_should_be_true_if_value_lt_end()
        {
            var range = new HashRange(0, 10);

            range.Covers(8).Should().BeTrue();
        }
예제 #6
0
        public void Covers_should_be_true_if_value_gt_start()
        {
            var range = new HashRange(0, 10);

            range.Covers(2).Should().BeTrue();
        }