15 references to ThrowsAny
Microsoft.Analyzers.Local.Tests (4)
Json\JsonArrayTest.cs (4)
46Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj[-1] = 0); 47Assert.ThrowsAny<ArgumentException>(() => obj[1] = 0); 80Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj.Remove(-1)); 81Assert.ThrowsAny<ArgumentException>(() => obj.Remove(obj.Count));
Microsoft.AspNetCore.DataProtection.Tests (1)
TypeForwardingActivatorTests.cs (1)
38var exception = Assert.ThrowsAny<Exception>(() => activator.CreateInstance<object>(name));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\CrefTests.cs (2)
1571Assert.ThrowsAny<Exception>(() => p.GetEffectiveBaseClass(null)); 1572Assert.ThrowsAny<Exception>(() => p.GetDeducedBaseType(null));
Microsoft.ML.Core.Tests (7)
UnitTests\DataTypes.cs (7)
95var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 101ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 135var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 141ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 175var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 181ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 221var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst));
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
274Assert.ThrowsAny<Exception>(() => validator.SolutionStateEqual(solutionId1, solutionId2));