コード例 #1
0
        public void Should_not_return_errors_if_model_not_implements_IValidatableObject()
        {
            // Given
            var instance = new ModelNotImplementingIValidatableObject();

            // When
            var result = this.validator.Validate(instance, new NancyContext());

            // Then
            result.Count().ShouldEqual(0);
        }
コード例 #2
0
        public void Should_not_return_errors_if_model_not_implements_IValidatableObject()
        {
            // Given
            var instance = new ModelNotImplementingIValidatableObject();

            // When
            var result = this.validator.Validate(instance, new NancyContext());

            // Then
            result.Count().ShouldEqual(0);
        }