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
stephentoub merged 1 commit into
dotnet:masterfrom
hughbe:customvalidationattribute-tests
Aug 19, 2016
Merged

Add and cleanup CustomValidationAttribute tests#11001
stephentoub merged 1 commit into
dotnet:masterfrom
hughbe:customvalidationattribute-tests

Conversation

@hughbe

@hughbe hughbe commented Aug 19, 2016

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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