Beispiel #1
0
        public void Given_Sink_When_WithSink_Invoked_Then_It_Should_Return_Result()
        {
            var consumer = new SchemaConsumer();

            var ex = new SchemaValidationException()
                     .WithSchemaConsumer(consumer);

            ex.Should().BeOfType <SchemaValidationException>();
        }
Beispiel #2
0
        public void Given_ValidationErrors_When_WithValidationErrors_Invoked_Then_It_Should_Return_Result()
        {
            var error = new ValidationError(ValidationErrorKind.Unknown, string.Empty, string.Empty, new JObject(), new JsonSchema());
            var errors = new[] { error }.ToList();

            var ex = new SchemaValidationException()
                     .WithValidationErrors(errors);

            ex.Should().BeOfType <SchemaValidationException>();
        }