191 references to IsType
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
70
Assert.
IsType
(valueType, frame.AttributeValue);
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
70
Assert.
IsType
(valueType, frame.AttributeValue);
Microsoft.AspNetCore.Components.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
70
Assert.
IsType
(valueType, frame.AttributeValue);
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
70
Assert.
IsType
(valueType, frame.AttributeValue);
Microsoft.AspNetCore.DataProtection.Tests (1)
TypeForwardingActivatorTests.cs (1)
58
Assert.
IsType
(type, activator.CreateInstance<object>(name));
Microsoft.AspNetCore.Http.Results.Tests (46)
ResultsOfTTests.Generated.cs (45)
35
Assert.
IsType
(expectedResultType, result.Result);
121
Assert.
IsType
(expectedResultType, result.Result);
146
Assert.
IsType
(expectedResultType, result.Result);
173
Assert.
IsType
(expectedResultType, result.Result);
200
Assert.
IsType
(expectedResultType, result.Result);
248
Assert.
IsType
(expectedResultType, result.Result);
338
Assert.
IsType
(expectedResultType, result.Result);
365
Assert.
IsType
(expectedResultType, result.Result);
392
Assert.
IsType
(expectedResultType, result.Result);
421
Assert.
IsType
(expectedResultType, result.Result);
450
Assert.
IsType
(expectedResultType, result.Result);
479
Assert.
IsType
(expectedResultType, result.Result);
530
Assert.
IsType
(expectedResultType, result.Result);
624
Assert.
IsType
(expectedResultType, result.Result);
653
Assert.
IsType
(expectedResultType, result.Result);
682
Assert.
IsType
(expectedResultType, result.Result);
711
Assert.
IsType
(expectedResultType, result.Result);
742
Assert.
IsType
(expectedResultType, result.Result);
773
Assert.
IsType
(expectedResultType, result.Result);
804
Assert.
IsType
(expectedResultType, result.Result);
835
Assert.
IsType
(expectedResultType, result.Result);
889
Assert.
IsType
(expectedResultType, result.Result);
987
Assert.
IsType
(expectedResultType, result.Result);
1018
Assert.
IsType
(expectedResultType, result.Result);
1049
Assert.
IsType
(expectedResultType, result.Result);
1080
Assert.
IsType
(expectedResultType, result.Result);
1111
Assert.
IsType
(expectedResultType, result.Result);
1144
Assert.
IsType
(expectedResultType, result.Result);
1177
Assert.
IsType
(expectedResultType, result.Result);
1210
Assert.
IsType
(expectedResultType, result.Result);
1243
Assert.
IsType
(expectedResultType, result.Result);
1276
Assert.
IsType
(expectedResultType, result.Result);
1333
Assert.
IsType
(expectedResultType, result.Result);
1435
Assert.
IsType
(expectedResultType, result.Result);
1468
Assert.
IsType
(expectedResultType, result.Result);
1501
Assert.
IsType
(expectedResultType, result.Result);
1534
Assert.
IsType
(expectedResultType, result.Result);
1567
Assert.
IsType
(expectedResultType, result.Result);
1600
Assert.
IsType
(expectedResultType, result.Result);
1635
Assert.
IsType
(expectedResultType, result.Result);
1670
Assert.
IsType
(expectedResultType, result.Result);
1705
Assert.
IsType
(expectedResultType, result.Result);
1740
Assert.
IsType
(expectedResultType, result.Result);
1775
Assert.
IsType
(expectedResultType, result.Result);
1810
Assert.
IsType
(expectedResultType, result.Result);
ResultsTests.cs (1)
1703
Assert.
IsType
(expectedReturnType, method());
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
191
Assert.
IsType
(constraintType, Assert.Single(parameter.RouteInfo.Constraints));
237
Assert.
IsType
(constraintType, Assert.Single(parameter.RouteInfo.Constraints));
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\ArrayModelBinderProviderTest.cs (1)
48
Assert.
IsType
(typeof(ArrayModelBinder<>).MakeGenericType(modelType.GetElementType()), result);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ValidationAttributeAdapterProviderTest.cs (1)
61
Assert.
IsType
(expectedAdapterType, adapter);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
BodyValidationIntegrationTests.cs (1)
634
Assert.
IsType
(modelType, modelBindingResult.Model);
CollectionModelBinderIntegrationTest.cs (1)
956
Assert.
IsType
(expectedType, modelBindingResult.Model);
DictionaryModelBinderIntegrationTest.cs (1)
1184
Assert.
IsType
(expectedType, modelBindingResult.Model);
HeaderModelBinderIntegrationTest.cs (1)
293
Assert.
IsType
(modelType, modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (2)
30
Assert.
IsType
(expected, actual);
174
Assert.
IsType
(expected, actual);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DefaultPageActivatorProviderTest.cs (1)
48
Assert.
IsType
(type, instance);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Filters\AntiforgeryApplicationModelProviderTest.cs (2)
64
Assert.
IsType
(filterType, filter);
91
Assert.
IsType
(filterType, filter);
Microsoft.AspNetCore.RequestDecompression.Tests (1)
DefaultRequestDecompressionProviderTests.cs (1)
41
Assert.
IsType
(expectedProviderType, matchingProvider);
Microsoft.AspNetCore.SignalR.Tests (5)
DefaultTransportFactoryTests.cs (2)
55
Assert.
IsType
(expectedTransportType,
92
Assert.
IsType
(expectedTransportType,
Internal\DefaultHubProtocolResolverTests.cs (3)
24
Assert.
IsType
(
37
Assert.
IsType
(
50
Assert.
IsType
(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractCompletionProviderTests.cs (1)
107
Assert.
IsType
(GetCompletionProviderType(), completionProvider);
QuickInfo\ToolTipAssert.cs (1)
25
Assert.
IsType
(expected.GetType(), actual);
Microsoft.CodeAnalysis.UnitTests (2)
Collections\List\CollectionAsserts.cs (2)
39
Assert.
IsType
(e.Current.GetType(), a.Current);
65
Assert.
IsType
(e.Current.GetType(), a.Current);
Microsoft.DotNet.XUnitAssert.Tests (3)
TypeAssertsTests.cs (3)
422
Assert.
IsType
(typeof(InvalidCastException), ex);
428
var result = Record.Exception(() => Assert.
IsType
(typeof(InvalidCastException), new InvalidOperationException()));
464
var result = Record.Exception(() => Assert.
IsType
(typeof(object), null));
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
310
Assert.
IsType
(expectedTypes[i], transformer);
System.Windows.Forms.Design.Tests (18)
System\ComponentModel\Design\ArrayEditorTests.cs (1)
157
Assert.
IsType
(expected.GetType(), items);
System\ComponentModel\Design\CollectionEditorTests.cs (1)
831
Assert.
IsType
(expected.GetType(), items);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (16)
1213
Assert.
IsType
(expectedSerializerType, serializer1);
1217
Assert.
IsType
(expectedSerializerType, serializer2);
1246
Assert.
IsType
(expectedSerializerType, serializer1);
1250
Assert.
IsType
(expectedSerializerType, serializer2);
1255
Assert.
IsType
(expectedSerializerType, serializer3);
1260
Assert.
IsType
(expectedSerializerType, serializer4);
1265
Assert.
IsType
(expectedSerializerType, serializer5);
1270
Assert.
IsType
(expectedSerializerType, serializer6);
1328
Assert.
IsType
(expectedSerializerType, serializer1);
1332
Assert.
IsType
(expectedSerializerType, serializer2);
1362
Assert.
IsType
(expectedSerializerType, serializer1);
1366
Assert.
IsType
(expectedSerializerType, serializer2);
1371
Assert.
IsType
(expectedSerializerType, serializer3);
1376
Assert.
IsType
(expectedSerializerType, serializer4);
1381
Assert.
IsType
(expectedSerializerType, serializer5);
1386
Assert.
IsType
(expectedSerializerType, serializer6);
System.Windows.Forms.Primitives.Tests (76)
Interop\Oleaut32\VARIANTTests.cs (76)
2026
Assert.
IsType
(typeof(byte).MakeArrayType(1), array);
2059
Assert.
IsType
(typeof(byte).MakeArrayType(2), array);
2078
Assert.
IsType
(typeof(byte).MakeArrayType(2), array);
2113
Assert.
IsType
(typeof(sbyte).MakeArrayType(1), array);
2150
Assert.
IsType
(typeof(sbyte).MakeArrayType(2), array);
2177
Assert.
IsType
(typeof(sbyte).MakeArrayType(2), array);
2228
Assert.
IsType
(typeof(short).MakeArrayType(1), array);
2265
Assert.
IsType
(typeof(short).MakeArrayType(2), array);
2292
Assert.
IsType
(typeof(short).MakeArrayType(2), array);
2343
Assert.
IsType
(typeof(ushort).MakeArrayType(1), array);
2380
Assert.
IsType
(typeof(ushort).MakeArrayType(2), array);
2407
Assert.
IsType
(typeof(ushort).MakeArrayType(2), array);
2458
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2495
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2522
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2573
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2597
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2624
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2675
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
2712
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2739
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2790
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
2814
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2841
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2892
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2929
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2956
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3007
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
3031
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3058
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3109
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3146
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3173
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3224
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3248
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3275
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3326
Assert.
IsType
(typeof(long).MakeArrayType(1), array);
3363
Assert.
IsType
(typeof(long).MakeArrayType(2), array);
3390
Assert.
IsType
(typeof(long).MakeArrayType(2), array);
3440
Assert.
IsType
(typeof(ulong).MakeArrayType(1), array);
3477
Assert.
IsType
(typeof(ulong).MakeArrayType(2), array);
3504
Assert.
IsType
(typeof(ulong).MakeArrayType(2), array);
3555
Assert.
IsType
(typeof(float).MakeArrayType(1), array);
3592
Assert.
IsType
(typeof(float).MakeArrayType(2), array);
3619
Assert.
IsType
(typeof(float).MakeArrayType(2), array);
3670
Assert.
IsType
(typeof(double).MakeArrayType(1), array);
3707
Assert.
IsType
(typeof(double).MakeArrayType(2), array);
3734
Assert.
IsType
(typeof(double).MakeArrayType(2), array);
3785
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3822
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3849
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3908
Assert.
IsType
(typeof(bool).MakeArrayType(1), array);
3951
Assert.
IsType
(typeof(bool).MakeArrayType(2), array);
4041
Assert.
IsType
(typeof(decimal).MakeArrayType(1), array);
4090
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4118
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4169
Assert.
IsType
(typeof(decimal).MakeArrayType(1), array);
4211
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4238
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4289
Assert.
IsType
(typeof(DateTime).MakeArrayType(1), array);
4338
Assert.
IsType
(typeof(DateTime).MakeArrayType(2), array);
4365
Assert.
IsType
(typeof(DateTime).MakeArrayType(2), array);
4421
Assert.
IsType
(typeof(string).MakeArrayType(1), array);
4456
Assert.
IsType
(typeof(string).MakeArrayType(2), array);
4493
Assert.
IsType
(typeof(string).MakeArrayType(2), array);
4563
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4610
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4667
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4745
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4792
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4849
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4929
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4977
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
5035
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
5149
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
5232
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
System.Windows.Forms.Tests (18)
System\Windows\Forms\BindingSourceTests.cs (2)
102
Assert.
IsType
(expectedType, source.List);
324
Assert.
IsType
(expectedType, source.List);
System\Windows\Forms\StatusStripTests.cs (4)
491
Assert.
IsType
(expectedRendererType, control.Renderer);
497
Assert.
IsType
(expectedRendererType, control.Renderer);
528
Assert.
IsType
(expectedRendererType, control.Renderer);
534
Assert.
IsType
(expectedRendererType, control.Renderer);
System\Windows\Forms\TabControlTests.cs (2)
3859
Assert.
IsType
(baseType.MakeArrayType(), result);
3875
Assert.
IsType
(baseType.MakeArrayType(), result);
System\Windows\Forms\ToolStripContentPanelTests.cs (6)
1310
Assert.
IsType
(expectedRendererType, control.Renderer);
1317
Assert.
IsType
(expectedRendererType, control.Renderer);
1341
Assert.
IsType
(expectedRendererType, control.Renderer);
1348
Assert.
IsType
(expectedRendererType, control.Renderer);
1399
Assert.
IsType
(expectedRendererType, control.Renderer);
1409
Assert.
IsType
(expectedRendererType, control.Renderer);
System\Windows\Forms\ToolStripTests.cs (4)
3317
Assert.
IsType
(expectedRendererType, control.Renderer);
3323
Assert.
IsType
(expectedRendererType, control.Renderer);
3354
Assert.
IsType
(expectedRendererType, control.Renderer);
3360
Assert.
IsType
(expectedRendererType, control.Renderer);
xunit.assert (1)
TypeAsserts.cs (1)
154
IsType
(typeof(T), @object);