18 references to IsAssignableFrom
Microsoft.AspNetCore.Mvc.Core.Test (4)
Formatters\JsonInputFormatterTestBase.cs (1)
303Assert.IsAssignableFrom(requestedType, result.Model);
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
269Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model);
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
84Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model); 213Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
303Assert.IsAssignableFrom(requestedType, result.Model);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskHostTaskComplete_Tests.cs (1)
255Assert.IsAssignableFrom(expectedExceptionType, e); // "Wrong exception was thrown!"
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1777Assert.IsAssignableFrom(typeof(TNode), node);
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
CompilationTestUtils.vb (1)
517Assert.IsAssignableFrom(GetType(TNode), node)
SemanticModelTestBase.vb (2)
41Assert.IsAssignableFrom(GetType(TNode), node) 82Assert.IsAssignableFrom(GetType(TNode), node)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
42Assert.IsAssignableFrom(GetType(TSyntax), type) 49Assert.IsAssignableFrom(GetType(TSyntax), type)
Microsoft.DotNet.XUnitAssert.Tests (5)
TypeAssertsTests.cs (5)
89 var result = Record.Exception(() => Assert.IsAssignableFrom(typeof(object), null)); 105 Assert.IsAssignableFrom(typeof(InvalidCastException), ex); 113 Assert.IsAssignableFrom(typeof(Exception), ex); 121 Assert.IsAssignableFrom(typeof(IDisposable), ex); 139 () => Assert.IsAssignableFrom(typeof(InvalidCastException), new InvalidOperationException())
xunit.assert (1)
TypeAsserts.cs (1)
46 IsAssignableFrom(typeof(T), @object);