private static void doOfGrowingTest <T>(T maxValue, T minValue) where T : IComparable { Assert.IsTrue(maxValue.CompareTo(minValue) >= 0); ToTheSequence.OfGrowing(ref maxValue, ref minValue); Assert.IsTrue(maxValue.CompareTo(minValue) <= 0); }
protected internal T getMaxValue <T>(ref T field, ref T value) where T : IComparable { ToTheSequence.OfGrowing(ref value, ref field); return(field); }
public T getMinValue <T>(ref T field, ref T value) where T : IComparable { ToTheSequence.OfGrowing(ref field, ref value); return(field); }