90 references to DivideByZeroException
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
18protected static readonly Exception Exception = new DivideByZeroException();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
849var expected = new DivideByZeroException();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
CommandLineRunnerTests.cs (2)
176var exception = new DivideByZeroException(); 205var exception = new DivideByZeroException();
Microsoft.DotNet.XUnitAssert.Tests (51)
Asserts\AsyncCollectionAssertsTests.cs (6)
898 throw new DivideByZeroException(); 1056 validateError(() => Assert.Equal(expected, actual, (e, a) => throw new DivideByZeroException()), "int[] ", "<generated> "); 1057 validateError(() => Assert.Equal(expected.ToAsyncEnumerable(), actual, (int e, int a) => throw new DivideByZeroException()), "", ""); 1265 throw new DivideByZeroException(); 1396 validateError(() => Assert.NotEqual(expected, actual, (e, a) => throw new DivideByZeroException()), "int[] ", "<generated> "); 1397 validateError(() => Assert.NotEqual(expected.ToAsyncEnumerable(), actual, (int e, int a) => throw new DivideByZeroException()), "", "");
Asserts\CollectionAssertsTests.cs (4)
1170 throw new DivideByZeroException(); 1285 static (e, a) => throw new DivideByZeroException() 1908 throw new DivideByZeroException(); 1997 static (e, a) => throw new DivideByZeroException()
Asserts\EqualityAssertsTests.cs (10)
154 throw new DivideByZeroException(); 177 throw new DivideByZeroException(); 214 var ex = Record.Exception(() => Assert.Equal(42, 2112, (e, a) => throw new DivideByZeroException())); 233 (IEnumerable<int> e, IEnumerable<int> a) => throw new DivideByZeroException() 2550 throw new DivideByZeroException(); 2573 throw new DivideByZeroException(); 2596 throw new DivideByZeroException(); 2633 var ex = Record.Exception(() => Assert.NotEqual(42, 42, (e, a) => throw new DivideByZeroException())); 2652 (IEnumerable<int> e, IEnumerable<int> a) => throw new DivideByZeroException() 2669 var ex = Record.Exception(() => Assert.NotEqual("42", "42", (e, a) => throw new DivideByZeroException()));
Asserts\ExceptionAssertsTests.cs (30)
49 var thrown = new DivideByZeroException(); 150 var thrownByInspector = new DivideByZeroException(); 165 var thrown = new DivideByZeroException(); 264 var thrown = new DivideByZeroException(); 376 var thrownByInspector = new DivideByZeroException(); 391 var thrown = new DivideByZeroException(); 481 var thrown = new DivideByZeroException(); 578 var thrownByInspector = new DivideByZeroException(); 593 var thrown = new DivideByZeroException(); 689 var thrown = new DivideByZeroException(); 798 var thrownByInspector = new DivideByZeroException(); 810 var thrown = new DivideByZeroException(); 915 var thrown = new DivideByZeroException(); 1001 var thrown = new DivideByZeroException(); 1073 var thrown = new DivideByZeroException(); 1161 var thrownByInspector = new DivideByZeroException(); 1173 var thrown = new DivideByZeroException(); 1212 var thrownByInspector = new DivideByZeroException(); 1284 var thrown = new DivideByZeroException(); 1383 var thrownByInspector = new DivideByZeroException(); 1395 var thrown = new DivideByZeroException(); 1434 var thrownByInspector = new DivideByZeroException(); 1498 var thrown = new DivideByZeroException(); 1586 var thrownByInspector = new DivideByZeroException(); 1598 var thrown = new DivideByZeroException(); 1637 var thrownByInspector = new DivideByZeroException(); 1701 var thrown = new DivideByZeroException(); 1799 var thrownByInspector = new DivideByZeroException(); 1811 var thrown = new DivideByZeroException(); 1914 var thrown = new DivideByZeroException();
Asserts\Sdk\ArgumentFormatterTests.cs (1)
168 taskCompletionSource.SetException(new DivideByZeroException());
System.Private.CoreLib (5)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
322ExceptionIDs.DivideByZero => new DivideByZeroException(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
39throw new DivideByZeroException();
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1959throw new DivideByZeroException(); 2214throw new DivideByZeroException();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
500throw new DivideByZeroException();
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\CollectionFormTests.cs (1)
401DivideByZeroException exception = new();
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
1199yield return new object[] { new DivideByZeroException() }; 1482yield return new object[] { new DivideByZeroException() };
System\ComponentModel\Design\DesignerHostTests.cs (1)
3232throw new DivideByZeroException();
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
619.Throws(new DivideByZeroException());
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1099throw new DivideByZeroException();
System.Windows.Forms.Tests (12)
System\Windows\Forms\BindingSourceTests.cs (1)
914throw new DivideByZeroException();
System\Windows\Forms\ControlTests.Handlers.cs (2)
4654throw new DivideByZeroException(); 4715throw new DivideByZeroException();
System\Windows\Forms\ControlTests.Methods.cs (8)
3807throw new DivideByZeroException(); 3833throw new DivideByZeroException(); 3876throw new DivideByZeroException(); 3945throw new DivideByZeroException(); 4025throw new DivideByZeroException(); 4066throw new DivideByZeroException(); 4087throw new DivideByZeroException(); 4138throw new DivideByZeroException();
System\Windows\Forms\ListBindingHelperTests.cs (1)
628throw new DivideByZeroException();
System.Xaml.Tests (10)
System\Xaml\XamlBackgroundReaderTests.cs (1)
187public override bool Read() => throw new DivideByZeroException();
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
64yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlExceptionTests.cs (2)
38yield return new object?[] { "message", new DivideByZeroException(), -1, -2 }; 56yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlInternalExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlObjectReaderExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlParseExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlSchemaExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
System\Xaml\XamlXmlWriterExceptionTests.cs (1)
36yield return new object?[] { "message", new DivideByZeroException(), 0, 0 };
ThrowingLibrary (1)
Thrower.cs (1)
17throw new DivideByZeroException();
WindowsBase.Tests (1)
System\Security\RightsManagement\RightsManagementExceptionTests.cs (1)
214info.AddValue("InnerException", new DivideByZeroException());