Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Add tests to DateTimeFormatInfo #6637

Merged
merged 2 commits into from
Mar 5, 2016
Merged

Add tests to DateTimeFormatInfo #6637

merged 2 commits into from
Mar 5, 2016

Conversation

hughbe
Copy link

@hughbe hughbe commented Mar 3, 2016

  • Adds some tests I felt were missing from the project
  • Brings coverage up to 75%

I also removed some usings that went unremoved in my recent cleanup work

- Adds some tests I felt were missing from the project
- Brings coverage up to 75%

I also removed some usings that went unremoved in my recent cleanup work
[Fact]
public void Calendar_InvariantInfo()
{
Assert.Equal(typeof(GregorianCalendar), DateTimeFormatInfo.InvariantInfo.Calendar.GetType());
Copy link
Member

Choose a reason for hiding this comment

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

This would be better as:

Assert.IsType<GregorianCalendar>(DateTimeFormatInfo.InvariantInfo.Calendar);

@stephentoub
Copy link
Member

A few nits, otherwise LGTM.

@hughbe
Copy link
Author

hughbe commented Mar 4, 2016

@stephentoub as ever, thanks for the review and comments.
I pushed a PR feedback commit

@stephentoub
Copy link
Member

LGTM. Thanks 😄

@stephentoub
Copy link
Member

Test Innerloop CentOS7.1 Debug Build and Test please
Test Innerloop CentOS7.1 Release Build and Test please
Test Innerloop Ubuntu Release Build and Test please

@tarekgh
Copy link
Member

tarekgh commented Mar 5, 2016

LGTM too.

stephentoub added a commit that referenced this pull request Mar 5, 2016
…rmat-info

Add tests to DateTimeFormatInfo
@stephentoub stephentoub merged commit fc515b2 into dotnet:master Mar 5, 2016
@hughbe hughbe deleted the globalization-tests-date-time-format-info branch March 5, 2016 12:01
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…-date-time-format-info

Add tests to DateTimeFormatInfo

Commit migrated from dotnet/corefx@fc515b2
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