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

Added TimeZone/TimeZoneInfo/TimeZoneNotFoundException members #11149

Merged
merged 2 commits into from
Aug 26, 2016

Conversation

hann013
Copy link
Contributor

@hann013 hann013 commented Aug 25, 2016

Added TimeZone/TimeZoneInfo/TimeZoneNotFoundException members and tests, as per #10074 and to fix #7552

@hann013
Copy link
Contributor Author

hann013 commented Aug 25, 2016

@danmosemsft still waiting on CoreCLR dependencies update.

The members from #10074 that couldn't be added are found in #11075 and #11169.

@hann013
Copy link
Contributor Author

hann013 commented Aug 26, 2016

cc @danmosemsft @ellismg this should be good to go now.

}

[Fact]
public static void LibyaTimeZone_TimeZoneNotFoundException()
Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove this test. Here's my thinking. If TimeZoneInfo.FindSystemTimeZoneById(s_strLibya) throws, this test isn't going to execute. The value this test provides is in ensuring the LibyaTimeZone test works as expected and in general we don't expect the exception to be thrown. We already have functional coverage from the test which catches Exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That sounds good.

@danmoseley
Copy link
Member

:shipit:

@hann013 hann013 merged commit 704fe01 into dotnet:dev/api Aug 26, 2016
@hann013 hann013 deleted the t-hazhan/PortTimeZoneInfo branch August 26, 2016 17:52
@karelz karelz modified the milestone: 1.2.0 Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…ZoneInfo

Added TimeZone/TimeZoneInfo/TimeZoneNotFoundException members

Commit migrated from dotnet/corefx@704fe01
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.

6 participants