Exemple #1
0
        public void Equals_WithSimilarRangeValue_ReturnsTrue()
        {
            var rangeValue1 = new RangeValue( 0, 10, 4 );
            var rangeValue2 = new RangeValue( 0, 10, 4 );

            Assert.IsTrue( rangeValue1.Equals( rangeValue2 ) );
        }
Exemple #2
0
        public void Equals_WithDifferentRangeValue_ReturnsFalse()
        {
            var rangeValue1 = new RangeValue( 0, 10, 4 );
            var rangeValue2 = new RangeValue( 0, 10, 5 );

            Assert.IsFalse( rangeValue1.Equals( rangeValue2 ) );
        }
Exemple #3
0
        public void Equals_WithSimilarRangeValue_ReturnsTrue()
        {
            var rangeValue1 = new RangeValue(0, 10, 4);
            var rangeValue2 = new RangeValue(0, 10, 4);

            Assert.IsTrue(rangeValue1.Equals(rangeValue2));
        }
Exemple #4
0
        public void Equals_WithDifferentRangeValue_ReturnsFalse()
        {
            var rangeValue1 = new RangeValue(0, 10, 4);
            var rangeValue2 = new RangeValue(0, 10, 5);

            Assert.IsFalse(rangeValue1.Equals(rangeValue2));
        }
        public void Equals_DifferentType_False()
        {
            var target = new RangeValue<DateTime>();

            var other = new RangeValue<int>();

            Assert.IsFalse(target.Equals(other));
        }
        public void Equals_Null_False()
        {
            var target = new RangeValue<DateTime>();

            Assert.IsFalse(target.Equals(null));
        }