10 references to ThrowsAny
Microsoft.Analyzers.Local.Tests (3)
Json\JsonArrayTest.cs (3)
46Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj[-1] = 0); 47Assert.ThrowsAny<ArgumentException>(() => obj[1] = 0); 80Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj.Remove(-1));
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));