10 references to ThrowsAny
Microsoft.Analyzers.Local.Tests (3)
Json\JsonArrayTest.cs (3)
46
Assert.
ThrowsAny
<ArgumentOutOfRangeException>(() => obj[-1] = 0);
47
Assert.
ThrowsAny
<ArgumentException>(() => obj[1] = 0);
80
Assert.
ThrowsAny
<ArgumentOutOfRangeException>(() => obj.Remove(-1));
Microsoft.ML.Core.Tests (7)
UnitTests\DataTypes.cs (7)
95
var ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
101
ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
135
var ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
141
ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
175
var ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
181
ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));
221
var ex = Assert.
ThrowsAny
<Exception>(() => mapper(in src, ref dst));