8 references to IsType
Microsoft.DotNet.XUnitAssert.Tests (5)
Asserts\TypeAssertsTests.cs (5)
687 var result = Record.Exception(() => Assert.IsType(typeof(object), null, exactMatch: false)); 703 Assert.IsType(typeof(InvalidCastException), ex, exactMatch: false); 711 Assert.IsType(typeof(Exception), ex, exactMatch: false); 719 Assert.IsType(typeof(IDisposable), ex, exactMatch: false); 737 () => Assert.IsType(typeof(InvalidCastException), new InvalidOperationException(), exactMatch: false)
xunit.assert (3)
TypeAsserts.cs (3)
195 IsType(typeof(T), @object, exactMatch: true); 220 IsType(typeof(T), @object, exactMatch); 238 IsType(expectedType, @object, exactMatch: true);