85 instantiations of InvalidTimeZoneException
BasicTestApp (10)
Program.cs (2)
91throw new InvalidTimeZoneException("This is a synchronous startup exception"); 98throw new InvalidTimeZoneException("This is an asynchronous startup exception");
ServerReliability\ThrowingAttachComponent.cs (1)
12throw new InvalidTimeZoneException();
ServerReliability\ThrowingConstructorComponent.cs (1)
12throw new InvalidTimeZoneException();
ServerReliability\ThrowingDisposeComponent.cs (1)
20throw new InvalidTimeZoneException();
ServerReliability\ThrowingOnAfterRenderAsyncComponent.cs (1)
21throw new InvalidTimeZoneException();
ServerReliability\ThrowingOnAfterRenderSyncComponent.cs (1)
20throw new InvalidTimeZoneException();
ServerReliability\ThrowingRenderComponent.cs (1)
14throw new InvalidTimeZoneException();
ServerReliability\ThrowingSetParametersAsyncComponent.cs (1)
17throw new InvalidTimeZoneException();
ServerReliability\ThrowingSetParametersSyncComponent.cs (1)
16throw new InvalidTimeZoneException();
FormatterWebSite (1)
Controllers\AsyncEnumerableController.cs (1)
34throw new InvalidTimeZoneException();
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\CircuitHostTest.cs (1)
276var ex = new InvalidTimeZoneException();
Circuits\CircuitRegistryTest.cs (1)
136handler.Setup(h => h.OnConnectionUpAsync(It.IsAny<Circuit>(), It.IsAny<CancellationToken>())).Throws(new InvalidTimeZoneException());
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (1)
85provider.NextValidationResult = Task.FromException<bool>(new InvalidTimeZoneException());
Microsoft.AspNetCore.Components.Tests (33)
EventCallbackFactoryBinderExtensionsTest.cs (1)
51Action<int> setter = (_) => { throw new InvalidTimeZoneException(); };
RendererTest.cs (25)
1546throw new InvalidTimeZoneException(); 1579throw new InvalidTimeZoneException(); 1614throw new InvalidTimeZoneException(); 1882throw new InvalidTimeZoneException(); 1920throw new InvalidTimeZoneException(); 1960throw new InvalidTimeZoneException(); 3548var exception = new InvalidTimeZoneException(); 3581var exception = new InvalidTimeZoneException(); 3614var exception = new InvalidTimeZoneException(); 3648var exception = new InvalidTimeZoneException(); 3687var exception = new InvalidTimeZoneException("Error from outside the sync context."); 3743var exception1 = new InvalidTimeZoneException(); 3802var exception1 = new InvalidTimeZoneException(); 3856var exception = new InvalidTimeZoneException(); 3910var exception = new InvalidTimeZoneException(); 3982public static readonly Exception Exception = new InvalidTimeZoneException(); 4022public static readonly Exception Exception = new InvalidTimeZoneException(); 4546var exception = new InvalidTimeZoneException("Error during render"); 4595exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4613var exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4653var exception = new InvalidTimeZoneException("Error during event"); 4691var exception = new InvalidTimeZoneException("Error during event"); 4736var exception = new InvalidTimeZoneException("Error during event"); 4901var exception1 = new InvalidTimeZoneException(); 4930var exception2 = new InvalidTimeZoneException();
Rendering\RendererSynchronizationContextTest.cs (7)
54throw new InvalidTimeZoneException(); 189throw new InvalidTimeZoneException(); 320throw new InvalidTimeZoneException(); 470throw new InvalidTimeZoneException(); 558throw new InvalidTimeZoneException(); 652throw new InvalidTimeZoneException(); 740throw new InvalidTimeZoneException();
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\BrowserFileTest.cs (1)
64jsStreamReference.Setup(x => x.DisposeAsync()).Throws(new InvalidTimeZoneException());
HtmlRendering\HtmlRendererTest.cs (2)
1349throw new InvalidTimeZoneException("async"); 1359throw new InvalidTimeZoneException("sync");
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1493throw new InvalidTimeZoneException();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RuntimeViewCompilerTest.cs (1)
697var exception = new InvalidTimeZoneException();
Microsoft.AspNetCore.Routing.Tests (12)
EndpointMiddlewareTest.cs (11)
83throw new InvalidTimeZoneException("Should not be called"); 110throw new InvalidTimeZoneException("Should not be called"); 139throw new InvalidTimeZoneException("Should not be called"); 175throw new InvalidTimeZoneException("Should not be called"); 209throw new InvalidTimeZoneException("Should not be called"); 236throw new InvalidTimeZoneException("Should not be called"); 272throw new InvalidTimeZoneException("Should not be called"); 306throw new InvalidTimeZoneException("Should not be called"); 334throw new InvalidTimeZoneException("Should not be called"); 370throw new InvalidTimeZoneException("Should not be called"); 404throw new InvalidTimeZoneException("Should not be called");
EndpointRoutingMiddlewareTest.cs (1)
146.Throws(new InvalidTimeZoneException())
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseTests.cs (1)
197throw new InvalidTimeZoneException("Failed OnStarting");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
ConnectionDispatcherTests.cs (1)
108completeFeature.OnCompleted(state => { callbackState = state; throw new InvalidTimeZoneException(); }, stateObject);
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
149throw new InvalidTimeZoneException("some failure"); 455() => throw new InvalidTimeZoneException("some failure"),
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
272throw new InvalidTimeZoneException($"Exception from call {callIndex}"); 351throw new InvalidTimeZoneException($"It failed");
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
164throw new InvalidTimeZoneException("some failure");
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
HealthCheckPublisherHostedServiceTest.cs (3)
671new TestPublisher() { Exception = new InvalidTimeZoneException(), }, 713new TestPublisher() { Exception = new InvalidTimeZoneException(), }, 715new TestPublisher() { Exception = new InvalidTimeZoneException(), },
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
1044throw new InvalidTimeZoneException(); 1051throw new InvalidTimeZoneException();
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
2190throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesNoNulls); 2195throw new InvalidTimeZoneException(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta); 2201throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesOutOfOrder);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (4)
690throw new InvalidTimeZoneException(SR.InvalidTimeZone_NoTTInfoStructures); 858throw new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString())); 933throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay); 948throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
132e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath), ex); 140e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));
78 references to InvalidTimeZoneException
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
RazorComponentResultTest.cs (3)
286var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 300var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>( 323var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\CircuitHostTest.cs (2)
77.Throws<InvalidTimeZoneException>(); 276var ex = new InvalidTimeZoneException();
Microsoft.AspNetCore.Components.Tests (30)
EventCallbackFactoryBinderExtensionsTest.cs (1)
56await Assert.ThrowsAsync<InvalidTimeZoneException>(() =>
RendererTest.cs (22)
1565await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 1597await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 1633await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 1903await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 1940await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 1981await Assert.ThrowsAsync<InvalidTimeZoneException>(() => task); 3548var exception = new InvalidTimeZoneException(); 3581var exception = new InvalidTimeZoneException(); 3614var exception = new InvalidTimeZoneException(); 3648var exception = new InvalidTimeZoneException(); 3687var exception = new InvalidTimeZoneException("Error from outside the sync context."); 3743var exception1 = new InvalidTimeZoneException(); 3802var exception1 = new InvalidTimeZoneException(); 3856var exception = new InvalidTimeZoneException(); 3910var exception = new InvalidTimeZoneException(); 4546var exception = new InvalidTimeZoneException("Error during render"); 4613var exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4653var exception = new InvalidTimeZoneException("Error during event"); 4691var exception = new InvalidTimeZoneException("Error during event"); 4736var exception = new InvalidTimeZoneException("Error during event"); 4901var exception1 = new InvalidTimeZoneException(); 4930var exception2 = new InvalidTimeZoneException();
Rendering\RendererSynchronizationContextTest.cs (7)
48exception = (InvalidTimeZoneException)e.ExceptionObject; 169exception = (InvalidTimeZoneException)e.ExceptionObject; 318Assert.Throws<InvalidTimeZoneException>(() => context.Send((_) => 474await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await task); 562await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await task); 656await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await task); 744await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await task);
Microsoft.AspNetCore.Components.Web.Tests (8)
HtmlRendering\HtmlRendererTest.cs (8)
894var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => 916var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 935var ex = Assert.Throws<InvalidTimeZoneException>(() => 962var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() =>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
ApiResponseTypeProviderTest.cs (3)
388var errorType = typeof(InvalidTimeZoneException); 483var errorType = typeof(InvalidTimeZoneException); 545actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(InvalidTimeZoneException));
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
101var expected = typeof(InvalidTimeZoneException); 119var expected = typeof(InvalidTimeZoneException);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1095Assert.Throws<InvalidTimeZoneException>(
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AsyncEnumerableTestBase.cs (1)
68Assert.Contains(nameof(InvalidTimeZoneException), content);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
RuntimeViewCompilerTest.cs (3)
697var exception = new InvalidTimeZoneException(); 702var actual = await Assert.ThrowsAsync<InvalidTimeZoneException>( 709actual = await Assert.ThrowsAsync<InvalidTimeZoneException>(
Microsoft.AspNetCore.Routing.Tests (2)
EndpointRoutingMiddlewareTest.cs (2)
152await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await middleware.Invoke(httpContext)); 153await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await middleware.Invoke(httpContext));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseTests.cs (1)
205Assert.Throws<InvalidTimeZoneException>(() => httpContext.Response.Body.Write(new byte[10], 0, 10));
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\DistributedCachingChatClientTest.cs (4)
158var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GetResponseAsync([input])); 163var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GetResponseAsync([input])); 466var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => ToListAsync(result1)); 472var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => ToListAsync(result2));
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
323var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 327ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 365var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 369ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() =>
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (2)
172var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GenerateAsync("abc")); 177var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GenerateAsync("abc"));
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
308[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
netstandard (1)
netstandard.cs (1)
884[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
System.Core (1)
System.Core.cs (1)
97[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
599/// it will throw <see cref="InvalidTimeZoneException"/> / <see cref="TimeZoneNotFoundException"/> / 615Debug.Assert(e is InvalidTimeZoneException, 1138catch (InvalidTimeZoneException e)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
116catch (InvalidTimeZoneException ex)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
334catch (InvalidTimeZoneException) { } 341catch (InvalidTimeZoneException) { }
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
287[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]