public void Equals_WithSimilarRangeValue_ReturnsTrue() { var rangeValue1 = new RangeValue( 0, 10, 4 ); var rangeValue2 = new RangeValue( 0, 10, 4 ); Assert.IsTrue( rangeValue1.Equals( rangeValue2 ) ); }
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_WithSimilarRangeValue_ReturnsTrue() { var rangeValue1 = new RangeValue(0, 10, 4); var rangeValue2 = new RangeValue(0, 10, 4); Assert.IsTrue(rangeValue1.Equals(rangeValue2)); }
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)); }