Beispiel #1
0
 public static sbyte Minimum(this sbyte value, sbyte minimum) => IComparableExtensions.Minimum(value, minimum);
Beispiel #2
0
 public static sbyte Between(this sbyte value, sbyte minimum, sbyte maximum) => IComparableExtensions.Between(value, minimum, maximum);
Beispiel #3
0
 public static sbyte Maximum(this sbyte value, sbyte maximum) => IComparableExtensions.Maximum(value, maximum);
Beispiel #4
0
        public void IsInBetweenFailsWithNullReferenceForThis()
        {
            var e = Assert.Throws <ArgumentNullException>(() => IComparableExtensions.IsInBetween(null, new Version(), new Version()));

            Assert.Equal("value", e.ParamName);
        }
Beispiel #5
0
        public void MinMaxFailsWithNullThis()
        {
            var e = Assert.Throws <ArgumentNullException>(() => IComparableExtensions.MinMax(null, new Version(), new Version()));

            Assert.Equal("value", e.ParamName);
        }
Beispiel #6
0
 public static ushort Minimum(this ushort value, ushort minimum) => IComparableExtensions.Minimum(value, minimum);
Beispiel #7
0
 public static ushort Between(this ushort value, ushort minimum, ushort maximum) => IComparableExtensions.Between(value, minimum, maximum);
Beispiel #8
0
 public static short Maximum(this short value, short maximum) => IComparableExtensions.Maximum(value, maximum);