71 references to DivideByZeroException
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
18
protected static readonly Exception Exception = new
DivideByZeroException
();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
849
var expected = new
DivideByZeroException
();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
CommandLineRunnerTests.cs (2)
176
var exception = new
DivideByZeroException
();
205
var exception = new
DivideByZeroException
();
Microsoft.DotNet.XUnitAssert.Tests (32)
AsyncCollectionAssertsTests.cs (6)
894
throw new
DivideByZeroException
();
1040
validateError(() => Assert.Equal(expected, actual, (int e, int a) => throw new
DivideByZeroException
()), "int[] ", "<generated> ");
1041
validateError(() => Assert.Equal(expected.ToAsyncEnumerable(), actual, (int e, int a) => throw new
DivideByZeroException
()), "", "");
1253
throw new
DivideByZeroException
();
1373
validateError(() => Assert.NotEqual(expected, actual, (int e, int a) => throw new
DivideByZeroException
()), "int[] ", "<generated> ");
1374
validateError(() => Assert.NotEqual(expected.ToAsyncEnumerable(), actual, (int e, int a) => throw new
DivideByZeroException
()), "", "");
CollectionAssertsTests.cs (4)
1124
throw new
DivideByZeroException
();
1232
(int e, int a) => throw new
DivideByZeroException
()
1824
throw new
DivideByZeroException
();
1907
(int e, int a) => throw new
DivideByZeroException
()
EqualityAssertsTests.cs (10)
121
throw new
DivideByZeroException
();
144
throw new
DivideByZeroException
();
181
var ex = Record.Exception(() => Assert.Equal(42, 2112, (e, a) => throw new
DivideByZeroException
()));
200
(IEnumerable<int> e, IEnumerable<int> a) => throw new
DivideByZeroException
()
2405
throw new
DivideByZeroException
();
2428
throw new
DivideByZeroException
();
2451
throw new
DivideByZeroException
();
2488
var ex = Record.Exception(() => Assert.NotEqual(42, 42, (e, a) => throw new
DivideByZeroException
()));
2507
(IEnumerable<int> e, IEnumerable<int> a) => throw new
DivideByZeroException
()
2524
var ex = Record.Exception(() => Assert.NotEqual("42", "42", (e, a) => throw new
DivideByZeroException
()));
ExceptionAssertsTests.cs (11)
49
var thrown = new
DivideByZeroException
();
132
var thrown = new
DivideByZeroException
();
205
var thrown = new
DivideByZeroException
();
285
var thrown = new
DivideByZeroException
();
374
var thrown = new
DivideByZeroException
();
460
var thrown = new
DivideByZeroException
();
532
var thrown = new
DivideByZeroException
();
602
var thrown = new
DivideByZeroException
();
662
var thrown = new
DivideByZeroException
();
721
var thrown = new
DivideByZeroException
();
807
var thrown = new
DivideByZeroException
();
Sdk\ArgumentFormatterTests.cs (1)
196
taskCompletionSource.SetException(new
DivideByZeroException
());
System.Private.CoreLib (5)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
322
ExceptionIDs.DivideByZero => new
DivideByZeroException
(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
39
throw new
DivideByZeroException
();
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1955
throw new
DivideByZeroException
();
2210
throw new
DivideByZeroException
();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
506
throw new
DivideByZeroException
();
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\CollectionFormTests.cs (1)
401
DivideByZeroException exception =
new
();
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
1199
yield return new object[] { new
DivideByZeroException
() };
1482
yield return new object[] { new
DivideByZeroException
() };
System\ComponentModel\Design\DesignerHostTests.cs (1)
3232
throw new
DivideByZeroException
();
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
619
.Throws(new
DivideByZeroException
());
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1099
throw new
DivideByZeroException
();
System.Windows.Forms.Tests (12)
System\Windows\Forms\BindingSourceTests.cs (1)
914
throw new
DivideByZeroException
();
System\Windows\Forms\ControlTests.Handlers.cs (2)
4654
throw new
DivideByZeroException
();
4715
throw new
DivideByZeroException
();
System\Windows\Forms\ControlTests.Methods.cs (8)
3794
throw new
DivideByZeroException
();
3820
throw new
DivideByZeroException
();
3863
throw new
DivideByZeroException
();
3932
throw new
DivideByZeroException
();
4012
throw new
DivideByZeroException
();
4053
throw new
DivideByZeroException
();
4074
throw new
DivideByZeroException
();
4125
throw new
DivideByZeroException
();
System\Windows\Forms\ListBindingHelperTests.cs (1)
628
throw new
DivideByZeroException
();
System.Xaml.Tests (10)
System\Xaml\XamlBackgroundReaderTests.cs (1)
187
public override bool Read() => throw new
DivideByZeroException
();
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
64
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlExceptionTests.cs (2)
38
yield return new object?[] { "message", new
DivideByZeroException
(), -1, -2 };
56
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlInternalExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlObjectReaderExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlParseExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlSchemaExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
System\Xaml\XamlXmlWriterExceptionTests.cs (1)
36
yield return new object?[] { "message", new
DivideByZeroException
(), 0, 0 };
ThrowingLibrary (1)
Thrower.cs (1)
17
throw new
DivideByZeroException
();
WindowsBase.Tests (1)
System\Security\RightsManagement\RightsManagementExceptionTests.cs (1)
214
info.AddValue("InnerException", new
DivideByZeroException
());