8 references to Throws
Microsoft.Build.Engine.UnitTests (1)
Evaluation\SimpleVersion_Tests.cs (1)
280
Assert.
Throws
(exceptionType, () => SimpleVersion.Parse(input));
Microsoft.DotNet.XUnitAssert.Tests (7)
ExceptionAssertsTests.cs (7)
90
Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.
Throws
(null!, testCode));
91
Assert.Throws<ArgumentNullException>("testCode", () => Assert.
Throws
(typeof(Exception), default(Func<object>)!));
99
var ex = Record.Exception(() => Assert.
Throws
(typeof(Exception), testCode));
110
var ex = Record.Exception(() => Assert.
Throws
(typeof(ArgumentException), testCode));
126
Assert.
Throws
(typeof(ArgumentException), testCode);
135
var ex = Record.Exception(() => Assert.
Throws
(typeof(ArgumentException), testCode));
153
var ex = Record.Exception(() => Assert.
Throws
(typeof(ArgumentException), testCode));