public When_repeating_a_function_5_times_using_the_of_extension()
 {
     _results = 5.Of(() => ARandom.Int());
 }
Пример #2
0
 /// <summary>
 /// Creates a convention to automatically assign a default value to a property:<br/>
 /// Assign a random <see cref="int"/> when the property type is <see cref="int"/>.
 /// </summary>
 /// <returns>The constructed <see cref="IDefaultConvention{T}"/></returns>
 public static IDefaultConvention <int> IntegerType()
 {
     return(ByType(p => ARandom.Int()));
 }
Пример #3
0
 public void should_generate_a_positive_nonzero_number()
 => ARandom.Int().Should().BeGreaterThan(0);