Implemented interface member:
8 writes to Count
Microsoft.AspNetCore.Mvc.Abstractions (8)
ModelBinding\ModelStateDictionary.cs (8)
356
Count
+= !modelState.IsContainerNode ? 0 : 1;
415
Count
+= !modelState.IsContainerNode ? 0 : 1;
435
Count
+= !modelState.IsContainerNode ? 0 : 1;
455
Count
+= !target.IsContainerNode ? 0 : 1;
476
Count
+= !modelState.IsContainerNode ? 0 : 1;
680
Count
+= !modelState.IsContainerNode ? 0 : 1;
693
Count
= 0;
721
Count
--;
111 references to Count
Microsoft.AspNetCore.Mvc.Abstractions.Test (7)
ModelBinding\ModelStateDictionaryTest.cs (7)
565
Assert.Equal(2, dictionary1.
Count
);
597
Assert.Equal(2, dictionary1.
Count
);
797
Assert.Equal(3, dictionary.
Count
);
837
Assert.Equal(3, dictionary.
Count
);
869
Assert.Equal(4, dictionary.
Count
);
902
Assert.Equal(3, dictionary.
Count
);
928
Assert.Equal(3, copy.
Count
);
Microsoft.AspNetCore.Mvc.IntegrationTests (102)
ArrayModelBinderIntegrationTest.cs (6)
40
Assert.Equal(2, modelState.
Count
);
84
Assert.Equal(2, modelState.
Count
);
124
Assert.Equal(2, modelState.
Count
);
200
Assert.Equal(2, modelState.
Count
);
245
Assert.Equal(2, modelState.
Count
);
286
Assert.Equal(2, modelState.
Count
);
CollectionModelBinderIntegrationTest.cs (11)
46
Assert.Equal(2, modelState.
Count
);
94
Assert.Equal(2, modelState.
Count
);
130
Assert.Equal(2, modelState.
Count
);
203
Assert.Equal(2, modelState.
Count
);
243
Assert.Equal(2, modelState.
Count
);
316
Assert.Equal(4, modelState.
Count
);
375
Assert.Equal(4, modelState.
Count
);
426
Assert.Equal(4, modelState.
Count
);
476
Assert.Equal(2, modelState.
Count
);
521
Assert.Equal(4, modelState.
Count
);
617
Assert.Equal(2, modelState.
Count
);
ComplexRecordIntegrationTest.cs (24)
373
Assert.Equal(2, modelState.
Count
);
425
Assert.Equal(2, modelState.
Count
);
530
Assert.Equal(2, modelState.
Count
);
583
Assert.Equal(2, modelState.
Count
);
694
Assert.Equal(2, modelState.
Count
);
797
Assert.Equal(3, modelState.
Count
);
852
Assert.Equal(3, modelState.
Count
);
1000
Assert.Equal(3, modelState.
Count
);
1055
Assert.Equal(3, modelState.
Count
);
1203
Assert.Equal(3, modelState.
Count
);
1258
Assert.Equal(3, modelState.
Count
);
1449
Assert.Equal(7, modelState.
Count
);
1556
Assert.Equal(7, modelState.
Count
);
1663
Assert.Equal(7, modelState.
Count
);
1737
Assert.Equal(3, modelState.
Count
);
1792
Assert.Equal(3, modelState.
Count
);
1868
Assert.Equal(6, modelState.
Count
);
2097
Assert.Equal(2, modelState.
Count
);
2151
Assert.Equal(2, modelState.
Count
);
2209
Assert.Equal(2, modelState.
Count
);
2942
Assert.Equal(4, modelState.
Count
);
3604
Assert.Equal(2, modelState.
Count
);
4148
Assert.Equal(2, modelState.
Count
);
4194
Assert.Equal(2, modelState.
Count
);
ComplexTypeIntegrationTestBase.cs (21)
366
Assert.Equal(2, modelState.
Count
);
418
Assert.Equal(2, modelState.
Count
);
533
Assert.Equal(2, modelState.
Count
);
586
Assert.Equal(2, modelState.
Count
);
697
Assert.Equal(2, modelState.
Count
);
805
Assert.Equal(3, modelState.
Count
);
860
Assert.Equal(3, modelState.
Count
);
1013
Assert.Equal(3, modelState.
Count
);
1068
Assert.Equal(3, modelState.
Count
);
1221
Assert.Equal(3, modelState.
Count
);
1276
Assert.Equal(3, modelState.
Count
);
1485
Assert.Equal(7, modelState.
Count
);
1592
Assert.Equal(7, modelState.
Count
);
1699
Assert.Equal(7, modelState.
Count
);
1778
Assert.Equal(3, modelState.
Count
);
1833
Assert.Equal(3, modelState.
Count
);
2008
Assert.Equal(6, modelState.
Count
);
2259
Assert.Equal(2, modelState.
Count
);
2313
Assert.Equal(2, modelState.
Count
);
2371
Assert.Equal(2, modelState.
Count
);
3146
Assert.Equal(4, modelState.
Count
);
DictionaryModelBinderIntegrationTest.cs (2)
44
Assert.Equal(2, modelState.
Count
);
123
Assert.Equal(2, modelState.
Count
);
FormFileModelBindingIntegrationTest.cs (5)
66
Assert.Equal(2, modelState.
Count
);
735
Assert.Equal(2, modelState.
Count
);
810
Assert.Equal(3, modelState.
Count
);
875
Assert.Equal(2, modelState.
Count
);
1022
Assert.Equal(2, modelState.
Count
);
GenericModelBinderIntegrationTest.cs (6)
288
Assert.Equal(2, modelState.
Count
);
333
Assert.Equal(2, modelState.
Count
);
412
Assert.Equal(2, modelState.
Count
);
456
Assert.Equal(2, modelState.
Count
);
536
Assert.Equal(3, modelState.
Count
);
584
Assert.Equal(3, modelState.
Count
);
KeyValuePairModelBinderIntegrationTest.cs (11)
40
Assert.Equal(2, modelState.
Count
);
74
Assert.Equal(2, modelState.
Count
);
124
Assert.Equal(2, modelState.
Count
);
161
Assert.Equal(2, modelState.
Count
);
211
Assert.Equal(2, modelState.
Count
);
258
Assert.Equal(2, modelState.
Count
);
298
Assert.Equal(2, modelState.
Count
);
377
Assert.Equal(2, modelState.
Count
);
422
Assert.Equal(2, modelState.
Count
);
463
Assert.Equal(2, modelState.
Count
);
539
Assert.Equal(3, modelState.
Count
);
TryUpdateModelIntegrationTest.cs (3)
154
Assert.Equal(2, modelState.
Count
);
754
Assert.Equal(2, modelState.
Count
);
1199
Assert.Equal(2, modelState.
Count
);
ValidationIntegrationTests.cs (6)
410
Assert.Equal(2, modelState.
Count
);
588
Assert.Equal(2, modelState.
Count
);
966
Assert.Equal(2, modelState.
Count
);
1073
Assert.Equal(2, modelState.
Count
);
1751
Assert.Equal(3, modelState.
Count
);
1948
Assert.Equal(2, modelState.
Count
);
ValidationWithRecordIntegrationTests.cs (7)
382
Assert.Equal(2, modelState.
Count
);
547
Assert.Equal(2, modelState.
Count
);
835
Assert.Equal(2, modelState.
Count
);
935
Assert.Equal(2, modelState.
Count
);
1554
Assert.Equal(3, modelState.
Count
);
1751
Assert.Equal(2, modelState.
Count
);
2443
Assert.Equal(2, modelState.
Count
);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ValidationHelpers.cs (2)
57
else if (viewData.ModelState.
Count
> 0)
64
if (entries.Count < modelStateDictionary.
Count
)