7 references to IsNotType
Microsoft.DotNet.XUnitAssert.Tests (5)
Asserts\TypeAssertsTests.cs (5)
416 Assert.IsNotType(typeof(object), null, exactMatch: false); 424 var result = Record.Exception(() => Assert.IsNotType(typeof(InvalidCastException), ex, exactMatch: false)); 440 var result = Record.Exception(() => Assert.IsNotType(typeof(Exception), ex, exactMatch: false)); 456 var result = Record.Exception(() => Assert.IsNotType(typeof(IDisposable), ex, exactMatch: false)); 470 Assert.IsNotType(typeof(InvalidCastException), new InvalidOperationException(), exactMatch: false);
xunit.assert (2)
TypeAsserts.cs (2)
129 IsNotType(typeof(T), @object, exactMatch); 145 IsNotType(expectedType, @object, exactMatch: true);