15 references to ThrowsAny
Microsoft.Analyzers.Local.Tests (4)
Json\JsonArrayTest.cs (4)
46
Assert.
ThrowsAny
<ArgumentOutOfRangeException>(() => obj[-1] = 0);
47
Assert.
ThrowsAny
<ArgumentException>(() => obj[1] = 0);
80
Assert.
ThrowsAny
<ArgumentOutOfRangeException>(() => obj.Remove(-1));
81
Assert.
ThrowsAny
<ArgumentException>(() => obj.Remove(obj.Count));
Microsoft.AspNetCore.DataProtection.Tests (1)
TypeForwardingActivatorTests.cs (1)
38
var exception = Assert.
ThrowsAny
<Exception>(() => activator.CreateInstance<object>(name));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\CrefTests.cs (2)
1571
Assert.
ThrowsAny
<Exception>(() => p.GetEffectiveBaseClass(null));
1572
Assert.
ThrowsAny
<Exception>(() => p.GetDeducedBaseType(null));
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));
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
274
Assert.
ThrowsAny
<Exception>(() => validator.SolutionStateEqual(solutionId1, solutionId2));