void LessThanOrEquals_Throws() { Test.If.Action.ThrowsException(() => ComparerTExtensions.IsLessThanOrEqual <Dummy>(null, 0, 0), out ArgumentNullException ex1); Test.If.Action.ThrowsException(() => _throwingComparer.IsLessThanOrEqual(0, 0), out NotImplementedException ex2); }
void IsClampedExclusive_Throws() { Test.If.Action.ThrowsException(() => ComparerTExtensions.IsClampedExclusive <Dummy>(null, 0, 0, 0), out ArgumentNullException ex1); Test.If.Action.ThrowsException(() => _throwingComparer.IsClampedExclusive(0, 0, 0), out NotImplementedException ex2); }
void Max_Throws() { Test.If.Action.ThrowsException(() => ComparerTExtensions.Max <Dummy>(null, 0, 0), out ArgumentNullException ex1); Test.If.Action.ThrowsException(() => _throwingComparer.Max(0, 0), out NotImplementedException ex2); }
void GreaterThan_Throws() { Test.If.Action.ThrowsException(() => ComparerTExtensions.IsGreaterThan <Dummy>(null, 0, 0), out ArgumentNullException ex1); Test.If.Action.ThrowsException(() => _throwingComparer.IsGreaterThan(0, 0), out NotImplementedException ex2); }