public void Given_Null_Validator_When_WithValidator_Invoked_Then_It_Should_Throw_Exception() { var instance = new SchemaValidatorPlugin(); Action action = () => instance.WithValidator(null); action.Should().Throw <ArgumentNullException>(); }
public void Given_Validator_When_WithValidator_Invoked_Then_It_Should_Return_Result() { var validator = new FakeSchemaValidator(); var instance = new SchemaValidatorPlugin(); var result = instance.WithValidator(validator); result.As <ISchemaValidatorPlugin>().Validator.Should().Be(validator); }