Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

React to aspnet/Razor#196 - Maintain VisualStudioCompatibility Test. #32

Merged
merged 1 commit into from
Oct 30, 2015

Conversation

NTaylorMullen
Copy link
Member

  • Add new IsEnum TagHelperDescriptor property to VS compatibility test.

@NTaylorMullen
Copy link
Member Author

/cc @dougbu

@NTaylorMullen NTaylorMullen changed the title React to aspnet/Razor#196. React to aspnet/Razor#196 - Maintain VisualStudioCompatibility Test. Oct 28, 2015
var dtAttribute = attribute.DesignTimeDescriptor;
var expectedDTAttribute = expectedAttribute.DesignTimeDescriptor;
Assert.Equal(dtAttribute.Remarks, expectedDTAttribute.Remarks, StringComparer.Ordinal);
Assert.Equal(dtAttribute.Summary, expectedDTAttribute.Summary, StringComparer.Ordinal);
Copy link
Member

Choose a reason for hiding this comment

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

Can't this be done more simply with a comparator and the IEnumerable assertions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ehh, I could make a comparator. A bit heavy handed for this though.

Copy link
Member

Choose a reason for hiding this comment

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

Well, this is a pretty ugly block of assertions but 🆗

@dougbu
Copy link
Member

dougbu commented Oct 28, 2015

@NTaylorMullen
Copy link
Member Author

🆙 📅 by ordering attribute descriptors

@dougbu
Copy link
Member

dougbu commented Oct 29, 2015

:shipit: once we see the RazorTooling build succeed on the CI with Razor bits including your aspnet/Razor#196 change.

@NTaylorMullen
Copy link
Member Author

It builds 😄. Checking this in now.

- Add new `IsEnum` `TagHelperDescriptor` property to VS compatibility test.
@NTaylorMullen NTaylorMullen merged commit 747b1b3 into dev Oct 30, 2015
@NTaylorMullen NTaylorMullen deleted the nimullen/razor.enumsupport.196 branch October 30, 2015 00:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants