Example #1
0
 public static void BackwardStepRange(
     [ValueSource(nameof(BackwardStepRangeCases))] RangeWithExpectedConversions rangeWithExpectedConversions,
     [ValueSource(nameof(TestedParameterTypes))] Type parameterType)
 {
     rangeWithExpectedConversions.AssertCoercionErrorOrMatchingSequence(
         parameterType, new[] { 15, 13, 11 });
 }
Example #2
0
 public static void ForwardRange(
     [ValueSource(nameof(ForwardRangeCases))] RangeWithExpectedConversions rangeWithExpectedConversions,
     [ValueSource(nameof(TestedParameterTypes))] Type parameterType)
 {
     rangeWithExpectedConversions.AssertCoercionErrorOrMatchingSequence(
         parameterType, new[] { 11, 12, 13, 14, 15 });
 }
Example #3
0
 public static void DegenerateNegativeStepRange(
     [ValueSource(nameof(DegenerateNegativeStepRangeCases))] RangeWithExpectedConversions rangeWithExpectedConversions,
     [ValueSource(nameof(TestedParameterTypes))] Type parameterType)
 {
     rangeWithExpectedConversions.AssertCoercionErrorOrMatchingSequence(
         parameterType, new[] { 11 });
 }