Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add and cleanup CustomValidationAttribute tests #11001

Merged
merged 1 commit into from
Aug 19, 2016
Merged

Add and cleanup CustomValidationAttribute tests #11001

merged 1 commit into from
Aug 19, 2016

Conversation

hughbe
Copy link

@hughbe hughbe commented Aug 19, 2016

No description provided.

var attribute = new CustomValidationAttribute(typeof(CustomValidator), "SomeMethod");
Assert.Equal(typeof(CustomValidator), attribute.ValidatorType);
Assert.Equal("SomeMethod", attribute.Method);
CustomValidationAttribute attribute = new CustomValidationAttribute(validatorType, method);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: 'var' was ok in this case, but it's also ok to change it.

@stephentoub
Copy link
Member

LGTM. Thanks for the cleanup.

@stephentoub stephentoub merged commit 727dc13 into dotnet:master Aug 19, 2016
@hughbe hughbe deleted the customvalidationattribute-tests branch August 19, 2016 18:14
@karelz karelz modified the milestone: 1.1.0 Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tribute-tests

Add and cleanup CustomValidationAttribute tests

Commit migrated from dotnet/corefx@727dc13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants