/// <summary>
 /// Asserts that a validator has correct number of rules.
 /// </summary>
 /// <typeparam name="T">The type of the object being validated.</typeparam>
 /// <param name="validator">The validator that will be examined.</param>
 /// <param name="expectedRulesNumber">The expected number of rules in the collection.</param>
 public static void ShouldHaveRulesCount <T>(this AbstractValidator <T> validator, int expectedRulesNumber)
 {
     validator.Count().Should().Be(expectedRulesNumber, "(number of rules for object)");
 }