public void TestInvalidConfigsWithCustomValidator_BaseValidatorNotUsed() { var config = new CustomEnvsSchemaWithCustomValidation() { MyStaticString = "wrong string" }; Assert.Throws(typeof(ValidationException), () => config.Validate()); }
public void TestValidConfigsWithCustomValidator_BaseValidatorNotUsed() { var config = new CustomEnvsSchemaWithCustomValidation() { MyStaticString = "test string" }; Assert.DoesNotThrow(() => config.Validate()); }