Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }