6 references to testCode
Microsoft.DotNet.XUnitAssert.Tests (6)
ExceptionAssertsTests.cs (6)
90
Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.Throws(null!,
testCode
));
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
));