示例#1
0
 public void Negative_interval_have(IIntervalConverter c)
 {
     var interval = c.Interval(0, -4);
     Assert.Equal(interval.Contains(c.ToVal(-2)), true);
     Assert.Equal(interval.Contains(c.ToVal(0)), true);
     Assert.Equal(interval.Contains(c.ToVal(-4)), true);
 }
示例#2
0
 public void Interval_have(IIntervalConverter c)
 {
     var interval = c.Interval(0, 4);
     Assert.Equal(interval.Contains(c.ToVal(2)), true);
     Assert.Equal(interval.Contains(c.ToVal(0)), true);
     Assert.Equal(interval.Contains(c.ToVal(4)), true);
 }
示例#3
0
        public void Negative_interval_does_not_have(IIntervalConverter c)
        {
            var interval = c.Interval(0, -4);

            Assert.Equal(interval.Contains(c.ToVal(1)), false);
            Assert.Equal(interval.Contains(c.ToVal(4)), false);
        }
示例#4
0
        public void Interval_doesn_not_have(IIntervalConverter c)
        {
            var interval = c.Interval(0, 4);

            Assert.Equal(interval.Contains(c.ToVal(-1)), false);
            Assert.Equal(interval.Contains(c.ToVal(5)), false);
        }
示例#5
0
        public void Interval_have(IIntervalConverter c)
        {
            var interval = c.Interval(0, 4);

            Assert.Equal(interval.Contains(c.ToVal(2)), true);
            Assert.Equal(interval.Contains(c.ToVal(0)), true);
            Assert.Equal(interval.Contains(c.ToVal(4)), true);
        }
示例#6
0
        public void Negative_interval_have(IIntervalConverter c)
        {
            var interval = c.Interval(0, -4);

            Assert.Equal(interval.Contains(c.ToVal(-2)), true);
            Assert.Equal(interval.Contains(c.ToVal(0)), true);
            Assert.Equal(interval.Contains(c.ToVal(-4)), true);
        }
示例#7
0
 public void Negative_interval_does_not_have(IIntervalConverter c)
 {
     var interval = c.Interval(0, -4);
     Assert.Equal(interval.Contains(c.ToVal(1)), false);
     Assert.Equal(interval.Contains(c.ToVal(4)), false);
 }
示例#8
0
 public void Interval_doesn_not_have(IIntervalConverter c)
 {
     var interval = c.Interval(0, 4);
     Assert.Equal(interval.Contains(c.ToVal(-1)), false);
     Assert.Equal(interval.Contains(c.ToVal(5)), false);
 }