[InlineData(11, 13, false)] // out of range public void FromEquals(int from, int till, bool expected) { Assert.Equal(expected, _range.FromEquals(new RangeModel <int>(from, till))); }
/// <summary> /// Is <see cref="range.From"/> equal to <see cref="compare.From"/> /// Is <see cref="range.Till"/> equal to <see cref="compare.Till"/> /// </summary> /// <typeparam name="TValue"></typeparam> /// <param name="range"></param> /// <param name="compare"></param> /// <returns></returns> public static bool RangeEquals <TValue>(this IRange <TValue> range, IRange <TValue> compare) where TValue : IComparable <TValue> { return(range.FromEquals(compare) && range.TillEquals(compare)); }