public void ValidateEnumerableHaveCountLessThan()
        {
            // Given
            var validator = new EnumerableValidator <int>(new List <int> {
                1
            });

            // When
            validator.HaveCountLessThan(10);

            // Then
            Assert.True(true);
        }
        public void ValidateEnumerableHaveCountLessThanViolated()
        {
            // Given
            var validator = new EnumerableValidator <int>(new List <int> {
                1
            });

            // When
            var exception = Assert.Throws <XunitException>(() => validator.HaveCountLessThan(1, "that's the bottom line"));

            // Then
            Assert.NotNull(exception);
            var rn = Environment.NewLine;

            Assert.Equal(
                $"{rn}validator{rn}contains \"1\" item(s){rn}but was expected to contain less than \"1\" item(s){rn}because that's the bottom line",
                exception.UserMessage);
        }