Esempio n. 1
0
        public void Equals_SameIntervalStartAndEnd()
        {
            Interval <int> i1 = Interval.Create(5, 10);
            Interval <int> i2 = Interval.Create(5, 10);

            Assert.That(IntervalExtensions.Equals(i1, i2), Is.True);
        }
Esempio n. 2
0
        public void Equals_NullIntervalAndOther_ReturnsTrue()
        {
            Interval <int> i1 = null;
            Interval <int> i2 = null;

            Assert.That(IntervalExtensions.Equals(i1, i2), Is.True);
        }
Esempio n. 3
0
        public void Equals_DifferentIntervalStarts_ReturnsFalse()
        {
            Interval <int> i1 = Interval.Create(2, 10);
            Interval <int> i2 = Interval.Create(5, 10);

            Assert.That(IntervalExtensions.Equals(i1, i2), Is.False);
        }
Esempio n. 4
0
        public void Equals_NullOther_ReturnsFalse()
        {
            Interval <int> i1 = Interval.Create(5, 10);
            Interval <int> i2 = null;

            Assert.That(IntervalExtensions.Equals(i1, i2), Is.False);
        }