You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A helper class that changes the local timezone to a fake timezone provided
8
+
/// at initialization, and resets the original local timezone when disposed.
9
+
/// </summary>
10
+
/// <remarks>
11
+
/// See this <see href="https://stackoverflow.com/questions/44413407/mock-the-country-timezone-you-are-running-unit-test-from">SO question</see> for more details.
12
+
/// </remarks>
13
+
publicsealedclassFakeLocalTimeZone:IDisposable
14
+
{
15
+
16
+
/// <summary>
17
+
/// Initializes a new instance of the <see cref="FakeLocalTimeZone"/> class
18
+
/// and changes the local time zone to the given <paramref name="fakeTimeZoneInfo"/>
19
+
/// until it's disposed.
20
+
/// </summary>
21
+
/// <param name="fakeTimeZoneInfo">The time zone to set as local until disposal.</param>
0 commit comments