public async Task Skips( RegistrationLeafValidator validator, PackageRegistrationLeafMetadata v2, PackageRegistrationLeafMetadata v3) { Assert.Equal(false, await validator.ShouldRunLeafAsync(ValidatorTestUtility.GetFakeValidationContext(), v2, v3)); }
public async Task Runs( RegistrationLeafValidator validator, PackageRegistrationIndexMetadata v2, PackageRegistrationIndexMetadata v3) { Assert.Equal(ShouldRunTestResult.Yes, await validator.ShouldRunLeafAsync(ValidatorTestUtility.GetFakeValidationContext(), v2, v3)); }