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)
1214
Assert.
IsType
(expectedSerializerType, serializer1);
1218
Assert.
IsType
(expectedSerializerType, serializer2);
1247
Assert.
IsType
(expectedSerializerType, serializer1);
1251
Assert.
IsType
(expectedSerializerType, serializer2);
1256
Assert.
IsType
(expectedSerializerType, serializer3);
1261
Assert.
IsType
(expectedSerializerType, serializer4);
1266
Assert.
IsType
(expectedSerializerType, serializer5);
1271
Assert.
IsType
(expectedSerializerType, serializer6);
1329
Assert.
IsType
(expectedSerializerType, serializer1);
1333
Assert.
IsType
(expectedSerializerType, serializer2);
1363
Assert.
IsType
(expectedSerializerType, serializer1);
1367
Assert.
IsType
(expectedSerializerType, serializer2);
1372
Assert.
IsType
(expectedSerializerType, serializer3);
1377
Assert.
IsType
(expectedSerializerType, serializer4);
1382
Assert.
IsType
(expectedSerializerType, serializer5);
1387
Assert.
IsType
(expectedSerializerType, serializer6);
System.Windows.Forms.Primitives.Tests (76)
Interop\Oleaut32\VARIANTTests.cs (76)
2027
Assert.
IsType
(typeof(byte).MakeArrayType(1), array);
2060
Assert.
IsType
(typeof(byte).MakeArrayType(2), array);
2079
Assert.
IsType
(typeof(byte).MakeArrayType(2), array);
2114
Assert.
IsType
(typeof(sbyte).MakeArrayType(1), array);
2151
Assert.
IsType
(typeof(sbyte).MakeArrayType(2), array);
2178
Assert.
IsType
(typeof(sbyte).MakeArrayType(2), array);
2229
Assert.
IsType
(typeof(short).MakeArrayType(1), array);
2266
Assert.
IsType
(typeof(short).MakeArrayType(2), array);
2293
Assert.
IsType
(typeof(short).MakeArrayType(2), array);
2344
Assert.
IsType
(typeof(ushort).MakeArrayType(1), array);
2381
Assert.
IsType
(typeof(ushort).MakeArrayType(2), array);
2408
Assert.
IsType
(typeof(ushort).MakeArrayType(2), array);
2459
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2496
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2523
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2574
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2598
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2625
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2676
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
2713
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2740
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2791
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
2815
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2842
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
2893
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
2930
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
2957
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3008
Assert.
IsType
(typeof(int).MakeArrayType(1), array);
3032
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3059
Assert.
IsType
(typeof(int).MakeArrayType(2), array);
3110
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3147
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3174
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3225
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3249
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3276
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3327
Assert.
IsType
(typeof(long).MakeArrayType(1), array);
3364
Assert.
IsType
(typeof(long).MakeArrayType(2), array);
3391
Assert.
IsType
(typeof(long).MakeArrayType(2), array);
3441
Assert.
IsType
(typeof(ulong).MakeArrayType(1), array);
3478
Assert.
IsType
(typeof(ulong).MakeArrayType(2), array);
3505
Assert.
IsType
(typeof(ulong).MakeArrayType(2), array);
3556
Assert.
IsType
(typeof(float).MakeArrayType(1), array);
3593
Assert.
IsType
(typeof(float).MakeArrayType(2), array);
3620
Assert.
IsType
(typeof(float).MakeArrayType(2), array);
3671
Assert.
IsType
(typeof(double).MakeArrayType(1), array);
3708
Assert.
IsType
(typeof(double).MakeArrayType(2), array);
3735
Assert.
IsType
(typeof(double).MakeArrayType(2), array);
3786
Assert.
IsType
(typeof(uint).MakeArrayType(1), array);
3823
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3850
Assert.
IsType
(typeof(uint).MakeArrayType(2), array);
3909
Assert.
IsType
(typeof(bool).MakeArrayType(1), array);
3952
Assert.
IsType
(typeof(bool).MakeArrayType(2), array);
4042
Assert.
IsType
(typeof(decimal).MakeArrayType(1), array);
4091
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4119
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4170
Assert.
IsType
(typeof(decimal).MakeArrayType(1), array);
4212
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4239
Assert.
IsType
(typeof(decimal).MakeArrayType(2), array);
4290
Assert.
IsType
(typeof(DateTime).MakeArrayType(1), array);
4339
Assert.
IsType
(typeof(DateTime).MakeArrayType(2), array);
4366
Assert.
IsType
(typeof(DateTime).MakeArrayType(2), array);
4422
Assert.
IsType
(typeof(string).MakeArrayType(1), array);
4457
Assert.
IsType
(typeof(string).MakeArrayType(2), array);
4494
Assert.
IsType
(typeof(string).MakeArrayType(2), array);
4564
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4611
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4668
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4746
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4793
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4850
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
4930
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
4978
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
5036
Assert.
IsType
(typeof(object).MakeArrayType(2), array);
5150
Assert.
IsType
(typeof(object).MakeArrayType(1), array);
5233
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);