コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }