869 references to Single
Microsoft.AspNetCore.Analyzers.Test (7)
MinimalStartupTest.cs (4)
86var middleware = Assert.Single(middlewareAnalysis.Middleware); 111var middleware = Assert.Single(middlewareAnalysis.Middleware); 183var middleware = Assert.Single(middlewareAnalysis.Middleware); 503Assert.Single(middlewareAnalysis.Middleware);
StartupAnalyzerTest.cs (3)
152var middleware = Assert.Single(middlewareAnalysis.Middleware); 189var middleware = Assert.Single(middlewareAnalysis.Middleware); 295var middleware = Assert.Single(middlewareAnalysis.Middleware);
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
EndpointHtmlRendererTest.cs (6)
474var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 514var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 554var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 606var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 1087var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 1116var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions);
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\ServerComponentDeserializerTest.cs (3)
34var deserializedDescriptor = Assert.Single(descriptors); 49var deserializedDescriptor = Assert.Single(descriptors); 68var deserializedDescriptor = Assert.Single(descriptors);
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\Mapping\SupplyParameterFromFormTest.cs (2)
27var supplier = Assert.Single(result); 57var supplier = Assert.Single(result);
Microsoft.AspNetCore.Http.Extensions.Tests (10)
RequestDelegateGenerator\RequestDelegateCreationTests.cs (4)
37var p = Assert.Single(endpointModel.Parameters); 130var reqParam = Assert.Single(endpointModel.Parameters); 137var reqParam = Assert.Single(endpointModel.Parameters); 619var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
245var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (2)
94var p = Assert.Single(endpointModel.Parameters); 172var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (3)
167var p = Assert.Single(endpointModel.Parameters); 190var p = Assert.Single(endpointModel.Parameters); 231var p = Assert.Single(endpointModel.Parameters);
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorHotReloadTest.cs (1)
64Assert.Single(pageActivator.ActivationInfo);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Filters\TempDataApplicationModelProviderTest.cs (2)
80var property = Assert.Single(filter.TempDataProperties); 101var property = Assert.Single(filter.TempDataProperties);
Filters\ViewDataAttributeApplicationModelProviderTest.cs (1)
60var property = Assert.Single(filter.Properties);
HtmlAttributePropertyHelperTest.cs (2)
82Assert.Single(helpers1); 98Assert.Single(helpers1);
Microsoft.AspNetCore.Rewrite.Tests (5)
IISUrlRewrite\InputParserTests.cs (2)
21Assert.Single(result.PatternSegments); 149Assert.Single(pattern.PatternSegments);
IISUrlRewrite\UrlRewriteApplicationTests.cs (3)
25Assert.Single(rules); 44Assert.Single(rules); 66Assert.Single(rules);
Microsoft.AspNetCore.Routing.Tests (48)
DecisionTreeBuilderTest.cs (3)
57var area = Assert.Single(tree.Criteria); 102var action = Assert.Single(tree.Criteria); 154var action = Assert.Single(tree.Criteria);
Matching\DfaMatcherBuilderTest.cs (34)
51var next = Assert.Single(root.Literals); 179var next = Assert.Single(root.Literals); 231var next = Assert.Single(root.Literals); 283var next = Assert.Single(root.Literals); 339var next = Assert.Single(root.Literals); 381var next = Assert.Single(root.Literals); 430var next = Assert.Single(root.Literals); 477var aNodeKvp = Assert.Single(root.Literals); 524var aNodeKvp = Assert.Single(root.Literals); 571var aNodeKvp = Assert.Single(root.Literals); 634var aNodeKvp = Assert.Single(root.Literals); 692var aNodeKvp = Assert.Single(root.Literals); 739var aNodeKvp = Assert.Single(root.Literals); 797var aNodeKvp = Assert.Single(root.Literals); 844var aNodeKvp = Assert.Single(root.Literals); 904var aNodeKvp = Assert.Single(root.Literals); 967var aNodeKvp = Assert.Single(root.Literals); 1019var aNodeKvp = Assert.Single(root.Literals); 2412var next = Assert.Single(root.Literals); 2455var next = Assert.Single(root.Literals); 2497var next = Assert.Single(root.Literals); 2551var next = Assert.Single(root.Literals); 2601var next = Assert.Single(root.Literals); 2643var next = Assert.Single(root.Literals); 2688var next = Assert.Single(root.Literals); 2752var next = Assert.Single(root.Literals); 2796var next = Assert.Single(root.Literals); 2840var next = Assert.Single(root.Literals); 2888var next = Assert.Single(root.Literals); 2957var next = Assert.Single(root.Literals); 2991var next = Assert.Single(root.Literals); 3025var next = Assert.Single(root.Literals); 3131var next = Assert.Single(root.Literals); 3164var next = Assert.Single(root.Literals);
Matching\DfaMatcherTest.cs (4)
377var candidate = Assert.Single(set.candidates); 430var candidate = Assert.Single(set.candidates); 482var candidate = Assert.Single(set.candidates); 535var candidate = Assert.Single(set.candidates);
Tree\LinkGenerationDecisionTreeTest.cs (7)
29Assert.Same(entry, Assert.Single(matches).Match); 49Assert.Same(entry, Assert.Single(matches).Match); 69Assert.Same(entry, Assert.Single(matches).Match); 89var match = Assert.Single(matches); 113var match = Assert.Single(matches); 137var match = Assert.Single(matches); 206Assert.Same(entry1, Assert.Single(matches).Match);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
ConfigurationReaderTests.cs (1)
85Assert.Single(certificates);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
110Assert.Single(httpClientHandler.ClientCertificates);
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
54Assert.Single(webSocketsOptions.ClientCertificates);
Microsoft.Build.Engine.UnitTests (14)
BackEnd\IntrinsicTask_Tests.cs (2)
64Assert.Single(properties); 136Assert.Single(properties);
Construction\ProjectRootElement_Tests.cs (2)
80Assert.Single(children); 112Assert.Single(children);
Definition\ToolsetConfigurationReader_Tests.cs (10)
80Assert.Single(msbuildToolsetSection.Toolsets); 83Assert.Single(msbuildToolsetSection.Toolsets.GetElement("2.0").PropertyElements); 180Assert.Single(msbuildToolsetSection.Toolsets); 183Assert.Single(msbuildToolsetSection.Toolsets.GetElement("2.0").PropertyElements); 305Assert.Single(msbuildToolsetSection.Toolsets); 307Assert.Single(msbuildToolsetSection.Toolsets.GetElement("4.0").PropertyElements); 449Assert.Single(msbuildToolsetSection.Toolsets); 485Assert.Single(msbuildToolsetSection.Toolsets); 536Assert.Single(msbuildToolsetSection.Toolsets); 557Assert.Single(allPaths.GetElement(2).PropertyElements);
Microsoft.Build.Tasks.UnitTests (4)
ResolveNonMSBuildProjectOutput_Tests.cs (4)
272Assert.Single(resolvedOutputs); // "One resolved ref expected for case 2" 274Assert.Single(unresolvedOutputs); // "One unresolved ref expected for case 2" 315Assert.Single(resolvedOutputs); // "One resolved ref expected for case 5" 329Assert.Single(unresolvedOutputs); // "One unresolved ref expected for case 6"
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (24)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (24)
34Assert.Single(result.NamingRules); 36Assert.Single(result.NamingStyles); 38Assert.Single(result.SymbolSpecifications); 82var namingRule = Assert.Single(result.NamingRules); 83var namingStyle = Assert.Single(result.NamingStyles); 84var symbolSpec = Assert.Single(result.SymbolSpecifications); 104Assert.Single(result.NamingRules); 106Assert.Single(result.NamingStyles); 108Assert.Single(result.SymbolSpecifications); 162Assert.Single(result.NamingRules); 164Assert.Single(result.NamingStyles); 166Assert.Single(result.SymbolSpecifications); 210Assert.Single(result.NamingRules); 212Assert.Single(result.NamingStyles); 214Assert.Single(result.SymbolSpecifications); 252Assert.Single(result.NamingRules); 254Assert.Single(result.NamingStyles); 256Assert.Single(result.SymbolSpecifications); 295Assert.Single(result.NamingRules); 297Assert.Single(result.NamingStyles); 299Assert.Single(result.SymbolSpecifications); 441Assert.Single(result.NamingRules); 443Assert.Single(result.NamingStyles); 445Assert.Single(result.SymbolSpecifications);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PrimaryConstructorTests.cs (1)
19766Assert.Single(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\AdditionalSourcesCollectionTests.cs (2)
58var source = Assert.Single(sources); 74Assert.Single(sources);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticDataTests.cs (2)
165var roundTripAdditionalLocation = Assert.Single(roundTripDiagnosticData.AdditionalLocations); 267var roundTripAdditionalLocation = Assert.Single(roundTripDiagnosticData.AdditionalLocations);
UnusedReferences\ProjectAssets\ProjectAssetsReaderTests.cs (2)
42var realizedReference = Assert.Single(realizedReferences); 63var realizedReference = Assert.Single(realizedReferences);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionTests.cs (1)
642Assert.Single(testAccessor.GetCacheContents());
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
LspFileChangeWatcherTests.cs (1)
115return Assert.Single(registration.Watchers);
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerConfigTests.cs (1)
2456Assert.Single(globalConfig.NamedSections);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiAddFileTests.cs (1)
122Assert.Single(openApiRefs);
OpenApiAddProjectTests.cs (1)
79Assert.Single(openApiRefs);
Microsoft.DotNet.XUnitAssert.Tests (5)
CollectionAssertsTests.cs (5)
2281 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(null!)); 2289 var ex = Record.Exception(() => Assert.Single(collection)); 2300 var item = Assert.Single(collection); 2310 var ex = Record.Exception(() => Assert.Single(collection)); 2325 var ex = Record.Exception(() => Assert.Single(collection));
Mvc.Api.Analyzers.Test (1)
ActualApiResponseMetadataFactoryTest.cs (1)
86var metadata = Assert.Single(actualResponseMetadata);
System.Windows.Forms.Design.Tests (98)
SplitContainerDesignerTests.cs (1)
46Assert.Single(splitContainerDesigner.AssociatedComponents);
System\ComponentModel\Design\ByteViewerTests.cs (2)
46ColumnStyle columnStyle = Assert.IsType<ColumnStyle>(Assert.Single(control.ColumnStyles)); 110RowStyle rowStyle = Assert.IsType<RowStyle>(Assert.Single(control.RowStyles));
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (5)
22Assert.Same(value1, Assert.Single(collection)); 48Assert.Same(value1, Assert.Single(collection)); 73Assert.Same(value, Assert.Single(collection)); 95Assert.Same(value1, Assert.Single(collection)); 98Assert.Same(value2, Assert.Single(collection));
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (6)
42Assert.Same(value1, Assert.Single(collection)); 100Assert.Same(value1, Assert.Single(collection)); 123Assert.Same(value, Assert.Single(collection)); 144Assert.Same(value1, Assert.Single(collection)); 147Assert.Same(value2, Assert.Single(collection)); 155Assert.Null(Assert.Single(collection));
System\ComponentModel\Design\DesignerActionServiceTests.cs (9)
499DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 504DesignerActionMethodItem actionItem = Assert.IsAssignableFrom<DesignerActionMethodItem>(Assert.Single(verbActionActionItems)); 543DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 544Assert.Single(actionList.GetSortedActionItems()); 562Assert.Single(actionList.GetSortedActionItems()); 599DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 601DesignerActionMethodItem actionItem = Assert.IsAssignableFrom<DesignerActionMethodItem>(Assert.Single(actionList.GetSortedActionItems())); 847Assert.Single(service.GetComponentActions(component)); 977Assert.Single(service.GetComponentActions(component));
System\ComponentModel\Design\DesignerHostTests.cs (24)
280Assert.Same(component1, Assert.Single(host.Container.Components)); 335Assert.Same(component1, Assert.Single(host.Container.Components)); 429Assert.Same(component, Assert.Single(host.Container.Components)); 436Assert.Same(component, Assert.Single(host.Container.Components)); 443Assert.Same(component, Assert.Single(host.Container.Components)); 499Assert.Same(component, Assert.Single(host.Container.Components)); 506Assert.Same(component, Assert.Single(host.Container.Components)); 513Assert.Same(component, Assert.Single(host.Container.Components)); 572Assert.Same(component, Assert.Single(host.Container.Components)); 585Assert.Same(component, Assert.Single(host.Container.Components)); 597Assert.Same(component, Assert.Single(host.Container.Components)); 602Assert.Same(component, Assert.Single(host.Container.Components)); 607Assert.Same(component, Assert.Single(host.Container.Components)); 2534Assert.Same(component, Assert.Single(host.Container.Components)); 2546Assert.Same(component, Assert.Single(host.Container.Components)); 2620Assert.Same(component, Assert.Single(host.Container.Components)); 2689Assert.Same(component, Assert.Single(host.Container.Components)); 2719Assert.Same(component, Assert.Single(host.Container.Components)); 2736Assert.Same(component, Assert.Single(host.Container.Components)); 2758Assert.Same(otherComponent, Assert.Single(host1.Container.Components)); 2759Assert.Same(component, Assert.Single(host2.Container.Components)); 2774Assert.Same(otherComponent, Assert.Single(host1.Container.Components)); 2817Assert.Same(component2, Assert.Single(host.Container.Components)); 2827Assert.Same(component2, Assert.Single(host.Container.Components));
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (6)
42Assert.Same(value1, Assert.Single(collection)); 100Assert.Same(value1, Assert.Single(collection)); 123Assert.Same(value, Assert.Single(collection)); 144Assert.Same(value1, Assert.Single(collection)); 147Assert.Same(value2, Assert.Single(collection)); 155Assert.Null(Assert.Single(collection));
System\ComponentModel\Design\DesignSurfaceTests.cs (8)
79Assert.Single(surface.ComponentContainer.Components); 101Assert.Single(surface.ComponentContainer.Components); 148Assert.Single(surface.ComponentContainer.Components); 445Assert.Same(exception, Assert.Single(surface.LoadErrors)); 470Exception error = Assert.IsType<InvalidOperationException>(Assert.Single(surface.LoadErrors)); 490Assert.Same(exception, Assert.Single(surface.LoadErrors)); 587Assert.Single(surface.LoadErrors); 599Assert.Single(surface.LoadErrors);
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (1)
111Assert.Single(underTest.Nodes);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (6)
207PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 304PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 312PropertyDescriptor otherProperty = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(otherProperties)); 543Assert.Same(errorInformation, Assert.Single(errors1)); 1724Assert.Same(errorInformation, Assert.Single(errors1)); 1889Assert.Same(errorInformation, Assert.Single(manager.Errors));
System\ComponentModel\Design\SiteNestedContainerTests.cs (22)
82Assert.Same(component1, Assert.Single(container.Components)); 182Assert.Same(component1, Assert.Single(container.Components)); 239Assert.Same(component1, Assert.Single(container.Components)); 338Assert.Same(component, Assert.Single(container.Components)); 345Assert.Same(component, Assert.Single(container.Components)); 352Assert.Same(component, Assert.Single(container.Components)); 409Assert.Same(component, Assert.Single(container.Components)); 424Assert.Same(component, Assert.Single(container.Components)); 433Assert.Same(component, Assert.Single(container.Components)); 489Assert.Same(component, Assert.Single(container.Components)); 503Assert.Same(component, Assert.Single(container.Components)); 676Assert.Same(component, Assert.Single(container.Components)); 686Assert.Same(component, Assert.Single(container.Components)); 751Assert.Same(component, Assert.Single(container.Components)); 815Assert.Same(component, Assert.Single(container.Components)); 846Assert.Same(component, Assert.Single(container.Components)); 864Assert.Same(component, Assert.Single(container.Components)); 887Assert.Same(otherComponent, Assert.Single(container1.Components)); 888Assert.Same(component, Assert.Single(container2.Components)); 904Assert.Same(otherComponent, Assert.Single(container1.Components)); 949Assert.Same(component2, Assert.Single(container.Components)); 959Assert.Same(component2, Assert.Single(container.Components));
System\Drawing\Design\ToolboxItemCollectionTests.cs (2)
13Assert.Same(item, Assert.Single(collection)); 31Assert.Same(item, Assert.Single(collection));
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (5)
33DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 56DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 73DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 80DesignerOptionService.DesignerOptionCollection otherChildCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 96DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options));
ToolStripDropDownItemDesignerTest.cs (1)
20Assert.Single(toolStripDropDownItemDesigner.AssociatedComponents);
System.Windows.Forms.Tests (612)
CheckedListBoxTests.cs (15)
511Assert.Single(checkedListBox.SelectedIndices); 512Assert.Single(checkedListBox.SelectedItems); 519Assert.Single(checkedListBox.SelectedIndices); 520Assert.Single(checkedListBox.SelectedItems); 524Assert.Single(checkedListBox.Items); 527Assert.Single(checkedListBox.SelectedIndices); 528Assert.Single(checkedListBox.SelectedItems); 552Assert.Single(checkedListBox.SelectedIndices); 553Assert.Single(checkedListBox.SelectedItems); 584Assert.Single(checkedListBox.CheckedIndices); 585Assert.Single(checkedListBox.CheckedItems); 592Assert.Single(checkedListBox.CheckedIndices); 593Assert.Single(checkedListBox.CheckedItems); 615Assert.Single(checkedListBox.CheckedIndices); 616Assert.Single(checkedListBox.CheckedItems);
SerializableTypesTests.cs (2)
149var item = Assert.Single(result.Items) as ListViewItem; 186var item = Assert.Single(result.SubItems) as ListViewSubItem;
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
215Assert.Single(indices);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (4)
489Assert.Single(listView.Items[0].SubItems); 490Assert.Single(listView.Items[1].SubItems); 529Assert.Single(listView.Items[0].SubItems); 530Assert.Single(listView.Items[1].SubItems);
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (2)
136Assert.Single(menuStrip.Items); 176Assert.Single(menuStrip.Items);
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (2)
159Assert.Equal(s, Assert.Single(otherCollection)); 216Assert.Same("value", Assert.Single(collection));
System\Windows\Forms\BindingContextTests.cs (37)
72Assert.Single(context); 80Assert.Single(context); 117Assert.Single(context); 125Assert.Single(context); 248Assert.Single(context); 252Assert.Single(context); 281Assert.Single(context); 285Assert.Single(context); 410Assert.Single(context); 424Assert.Single(context); 438Assert.Single(context); 457Assert.Single(context); 498Assert.Single(context); 549Assert.Single(context); 685PropertyManager parentManager = Assert.IsType<PropertyManager>(Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value).Target); 714WeakReference reference = Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value); 726Assert.Single(context); 779DictionaryEntry entry1 = Assert.IsType<DictionaryEntry>(Assert.Single(context1)); 780DictionaryEntry entry2 = Assert.IsType<DictionaryEntry>(Assert.Single(context2)); 781DictionaryEntry entry3 = Assert.IsType<DictionaryEntry>(Assert.Single(context3)); 782DictionaryEntry entry4 = Assert.IsType<DictionaryEntry>(Assert.Single(context3)); 801Assert.Single(context); 804Assert.Same(binding, Assert.Single(manager.Bindings)); 819Assert.Single(context); 822Assert.Same(binding, Assert.Single(manager.Bindings)); 841Assert.Same(binding, Assert.Single(manager.Bindings)); 860Assert.Same(binding, Assert.Single(manager.Bindings)); 877Assert.Single(context1); 882Assert.Single(context1); 883Assert.Single(context2); 892Assert.Same(binding, Assert.Single(manager2.Bindings)); 908Assert.Single(context1); 913Assert.Single(context1); 914Assert.Single(context2); 924Assert.Same(binding, Assert.Single(manager2.Bindings)); 945Assert.Single(context); 949Assert.Single(context);
System\Windows\Forms\BindingManagerBaseTests.cs (8)
25Assert.Same(binding, Assert.Single(collection)); 69Assert.Same(binding, Assert.Single(collection)); 89Assert.Same(binding, Assert.Single(collection)); 106Assert.Same(binding, Assert.Single(collection)); 119Assert.Same(binding1, Assert.Single(collection)); 135Assert.Same(binding1, Assert.Single(collection1)); 136Assert.Same(binding2, Assert.Single(collection2)); 147Assert.Same(binding, Assert.Single(collection));
System\Windows\Forms\BindingsCollectionTests.cs (8)
363Assert.Same(binding, Assert.Single(collection)); 375Assert.Same(binding1, Assert.Single(collection)); 389Assert.Same(binding1, Assert.Single(collection1)); 390Assert.Same(binding2, Assert.Single(collection2)); 468Assert.Same(binding, Assert.Single(collection)); 480Assert.Same(binding1, Assert.Single(collection)); 494Assert.Same(binding1, Assert.Single(collection1)); 495Assert.Same(binding2, Assert.Single(collection2));
System\Windows\Forms\ButtonBaseTests.cs (2)
2895Assert.Same(control, Assert.Single(parent.Controls)); 2901Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\ColumnHeaderCollectionTests.cs (7)
131Assert.Same(header, Assert.Single(collection)); 339Assert.Same(header, Assert.Single(collection)); 878Assert.Same(header, Assert.Single(collection)); 927Assert.Same(header, Assert.Single(collection)); 956Assert.Single(collection); 992Assert.Single(collection); 1031Assert.Single(collection);
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (6)
849Assert.Single(comboBoxObjectCollection); 867Assert.Single(accessibleObject.ItemAccessibleObjects); 950Assert.Single(comboBoxObjectCollection); 1004Assert.Single(comboBoxObjectCollection); 1028Assert.Single(comboBoxObjectCollection); 1046Assert.Single(accessibleObject.ItemAccessibleObjects);
System\Windows\Forms\ControlBindingsCollectionTests.cs (15)
62Assert.Same(binding, Assert.Single(collection)); 94Assert.Same(binding, Assert.Single(collection)); 127Assert.Same(binding, Assert.Single(collection)); 144Assert.Same(binding, Assert.Single(collection)); 161Assert.Same(binding, Assert.Single(collection)); 178Assert.Same(binding, Assert.Single(collection)); 195Assert.Same(binding, Assert.Single(collection)); 212Assert.Same(binding, Assert.Single(collection)); 307Assert.Same(binding, Assert.Single(collection)); 327Assert.Same(binding, Assert.Single(collection)); 344Assert.Same(binding, Assert.Single(collection)); 357Assert.Same(binding1, Assert.Single(collection)); 373Assert.Same(binding1, Assert.Single(collection1)); 374Assert.Same(binding2, Assert.Single(collection2)); 385Assert.Same(binding, Assert.Single(collection));
System\Windows\Forms\ControlTests.ControlCollection.cs (15)
56Assert.Same(control1, Assert.Single(collection)); 132Assert.Same(control1, Assert.Single(collection)); 135Assert.Same(control1, Assert.Single(owner.Controls)); 206Assert.Same(control, Assert.Single(collection2)); 210Assert.Same(control, Assert.Single(owner2.Controls)); 249Assert.Same(control, Assert.Single(collection)); 252Assert.Same(control, Assert.Single(owner.Controls)); 261Assert.Same(control, Assert.Single(collection)); 264Assert.Same(control, Assert.Single(owner.Controls)); 344Assert.Same(control, Assert.Single(collection)); 373Assert.Same(control, Assert.Single(collection)); 409Assert.Same(control, Assert.Single(collection)); 449Assert.Same(control, Assert.Single(collection)); 3455Assert.Same(control1, Assert.Single(collection)); 3458Assert.Same(control1, Assert.Single(owner.Controls));
System\Windows\Forms\ControlTests.Methods.cs (2)
1657Assert.Same(binding, Assert.Single(control.DataBindings)); 1667Assert.Same(binding, Assert.Single(control.DataBindings));
System\Windows\Forms\ControlTests.Properties.cs (6)
3682Assert.Same(child, Assert.Single(control.Controls)); 3686Assert.Same(child, Assert.Single(control.Controls)); 3702Assert.Same(child, Assert.Single(control.Controls)); 3706Assert.Same(child, Assert.Single(control.Controls)); 9729Assert.Same(control, Assert.Single(parent.Controls)); 9735Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\DataGridViewRowTests.cs (4)
2985Assert.Same(row1, Assert.Single(control.SelectedRows)); 2990Assert.Same(row2, Assert.Single(control.SelectedRows)); 3019Assert.Same(row1, Assert.Single(control.SelectedRows)); 3029Assert.Same(row2, Assert.Single(control.SelectedRows));
System\Windows\Forms\DataGridViewTests.cs (2)
869Assert.Same(control, Assert.Single(parent.Controls)); 875Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\Design\ComponentEditorPageTests.cs (4)
817Assert.Same(control, Assert.Single(result.Controls)); 825Assert.Same(control, Assert.Single(result.Controls)); 833Assert.Same(control, Assert.Single(result.Controls)); 841Assert.Same(control, Assert.Single(result.Controls));
System\Windows\Forms\FormTests.cs (2)
1106Assert.Same(control, Assert.Single(parent.Controls)); 1112Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\HtmlDocumentTests.cs (1)
1777Assert.Equal("HTML", ((HtmlElement)Assert.Single(document.GetElementsByTagName("html"))).TagName);
System\Windows\Forms\HtmlElementTests.cs (14)
1436Assert.Single(element.All); 2082Assert.Single(element.All); 2084Assert.Single(element.Parent.Children); 2091Assert.Single(element.Parent.Children); 2099Assert.Single(element.Parent.Children); 2124Assert.Single(element.Parent.Children); 2133Assert.Single(element.Parent.Children); 2143Assert.Single(element.Parent.Children); 2164Assert.Single(element.All); 2171Assert.Single(element.Parent.Children); 2179Assert.Single(element.Parent.Children); 2204Assert.Single(element.Parent.Children); 2213Assert.Single(element.Parent.Children); 2223Assert.Single(element.Parent.Children);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (19)
448Assert.Equal("Key1", Assert.Single(collection.Keys)); 491Assert.Single(collection); 493Assert.Equal("Key1", Assert.Single(collection.Keys)); 537Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 560Assert.Single(collection); 562Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 606Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 629Assert.Single(collection); 631Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 663Assert.Equal("Key1", Assert.Single(collection.Keys)); 706Assert.Single(collection); 708Assert.Equal("Key1", Assert.Single(collection.Keys)); 752Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 775Assert.Single(collection); 777Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 1324Assert.Single(collection); 1364Assert.Single(collection); 1428Assert.Single(collection); 1476Assert.Single(collection);
System\Windows\Forms\ImageListTests.cs (2)
473Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.Images)).Size); 482Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.Images)).Size);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (4)
1795Assert.Equal(columnStyle.SizeType, ((ColumnStyle)Assert.Single(result.ColumnStyles)).SizeType); 1796Assert.Equal(columnStyle.Width, ((ColumnStyle)Assert.Single(result.ColumnStyles)).Width); 1797Assert.Equal(rowStyle.SizeType, ((RowStyle)Assert.Single(result.RowStyles)).SizeType); 1798Assert.Equal(rowStyle.Height, ((RowStyle)Assert.Single(result.RowStyles)).Height);
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (24)
261Assert.Single(collection); 304Assert.Single(collection); 354Assert.Single(collection); 416Assert.Single(collection); 1115Assert.Single(collection); 1159Assert.Single(collection); 1213Assert.Single(collection); 1276Assert.Single(collection); 1329Assert.Single(collection); 1366Assert.Single(collection); 1413Assert.Single(collection); 1466Assert.Single(collection); 1759Assert.Single(collection); 1802Assert.Single(collection); 1852Assert.Single(collection); 1914Assert.Single(collection); 2352Assert.Single(collection); 2399Assert.Single(collection); 2458Assert.Single(collection); 2524Assert.Single(collection); 2592Assert.Single(collection); 2632Assert.Single(collection); 2684Assert.Single(collection); 2740Assert.Single(collection);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (64)
1306Assert.Single(collection); 1347Assert.Single(collection); 1391Assert.Single(collection); 1435Assert.Single(collection); 1482Assert.Single(collection); 1561Assert.Single(collection); 1643Assert.Single(collection); 1725Assert.Single(collection); 4129Assert.Single(collection); 4170Assert.Single(collection); 4214Assert.Single(collection); 4258Assert.Single(collection); 4305Assert.Single(collection); 4384Assert.Single(collection); 4466Assert.Single(collection); 4548Assert.Single(collection); 5084Assert.Single(collection); 5126Assert.Single(collection); 5174Assert.Single(collection); 5219Assert.Single(collection); 5282Assert.Single(collection); 5358Assert.Single(collection); 5434Assert.Single(collection); 5513Assert.Single(collection); 6023Assert.Single(collection); 6058Assert.Single(collection); 6098Assert.Single(collection); 6136Assert.Single(collection); 6184Assert.Single(collection); 6244Assert.Single(collection); 6305Assert.Single(collection); 6368Assert.Single(collection); 8111Assert.Single(collection); 8152Assert.Single(collection); 8196Assert.Single(collection); 8240Assert.Single(collection); 8287Assert.Single(collection); 8366Assert.Single(collection); 8448Assert.Single(collection); 8530Assert.Single(collection); 9451Assert.Single(collection); 9492Assert.Single(collection); 9536Assert.Single(collection); 9580Assert.Single(collection); 9627Assert.Single(collection); 9706Assert.Single(collection); 9788Assert.Single(collection); 9870Assert.Single(collection); 10406Assert.Single(collection); 10448Assert.Single(collection); 10496Assert.Single(collection); 10541Assert.Single(collection); 10604Assert.Single(collection); 10680Assert.Single(collection); 10756Assert.Single(collection); 10835Assert.Single(collection); 11345Assert.Single(collection); 11380Assert.Single(collection); 11420Assert.Single(collection); 11458Assert.Single(collection); 11506Assert.Single(collection); 11566Assert.Single(collection); 11627Assert.Single(collection); 11690Assert.Single(collection);
System\Windows\Forms\ListBoxTests.cs (97)
2361Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2362Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2369Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2370Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2376Assert.Equal(0, Assert.Single(control.SelectedIndices)); 2377Assert.Equal("item1", Assert.Single(control.SelectedItems)); 2406Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2407Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2414Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2415Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2456Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2457Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2465Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2466Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2474Assert.Equal(0, Assert.Single(control.SelectedIndices)); 2475Assert.Equal("item1", Assert.Single(control.SelectedItems)); 2511Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2512Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2522Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2523Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2532Assert.Equal(0, Assert.Single(control.SelectedIndices)); 2533Assert.Equal("item1", Assert.Single(control.SelectedItems)); 2575Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2576Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2586Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2587Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2827Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2828Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2835Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2836Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2843Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2844Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2850Assert.Equal(0, Assert.Single(control.SelectedIndices)); 2851Assert.Equal("item1", Assert.Single(control.SelectedItems)); 2880Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2881Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2888Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2889Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2896Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2897Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2938Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2939Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2947Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2948Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2956Assert.Equal(1, Assert.Single(control.SelectedIndices)); 2957Assert.Equal("item2", Assert.Single(control.SelectedItems)); 2965Assert.Equal(0, Assert.Single(control.SelectedIndices)); 2966Assert.Equal("item1", Assert.Single(control.SelectedItems)); 3002Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3003Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3013Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3014Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3024Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3025Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3034Assert.Equal(0, Assert.Single(control.SelectedIndices)); 3035Assert.Equal("item1", Assert.Single(control.SelectedItems)); 3077Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3078Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3088Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3089Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3099Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3100Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3433Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3434Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3442Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3443Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3451Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3452Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3469Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3470Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3478Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3479Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3487Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3488Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3700Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3701Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3712Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3713Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3724Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3725Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3810Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3811Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3822Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3823Assert.Equal("item2", Assert.Single(control.SelectedItems)); 3834Assert.Equal(1, Assert.Single(control.SelectedIndices)); 3835Assert.Equal("item2", Assert.Single(control.SelectedItems)); 6127Assert.Single(listBox.SelectedIndices); 6128Assert.Single(listBox.SelectedItems); 6135Assert.Single(listBox.SelectedIndices); 6136Assert.Single(listBox.SelectedItems); 6140Assert.Single(listBox.Items); 6143Assert.Single(listBox.SelectedIndices); 6144Assert.Single(listBox.SelectedItems); 6210Assert.Single(listBox.SelectedIndices); 6211Assert.Single(listBox.SelectedItems); 6246Assert.Single(listBox.SelectedIndices); 6247Assert.Single(listBox.SelectedItems);
System\Windows\Forms\ListViewGroupCollectionTests.cs (18)
87Assert.Same(group, Assert.Single(collection)); 108Assert.Same(group, Assert.Single(collection)); 146Assert.Equal(group, Assert.Single(collection)); 147Assert.Equal(group, Assert.Single(otherCollection)); 374Assert.Same(group1, Assert.Single(collection)); 393Assert.Same(group1, Assert.Single(collection)); 416Assert.Same(group, Assert.Single(collection)); 435Assert.Same(group1, Assert.Single(collection)); 471Assert.Equal(group, Assert.Single(collection)); 472Assert.Equal(group, Assert.Single(otherCollection)); 521Assert.Same(group, Assert.Single(collection)); 777Assert.Same(group, Assert.Single(collection)); 796Assert.Same(group, Assert.Single(collection)); 818Assert.Equal(group, Assert.Single(otherCollection)); 922Assert.Same(group, Assert.Single(collection)); 946Assert.Same(group, Assert.Single(collection)); 987Assert.Same(group, Assert.Single(collection)); 1011Assert.Single(collection);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (5)
191Assert.Same(subItem, Assert.Single(collection)); 294Assert.Same(subItem, Assert.Single(collection)); 708Assert.Same(subItem, Assert.Single(collection)); 749Assert.Same(subItem, Assert.Single(collection)); 784Assert.Single(collection);
System\Windows\Forms\ListViewTests.cs (32)
5534Assert.Single(listView.SelectedItems); 5535Assert.Single(listView.SelectedIndices); 5541Assert.Single(listView.SelectedItems); 5542Assert.Single(listView.SelectedIndices); 5548Assert.Single(listView.Items); 5549Assert.Single(listView.SelectedItems); 5550Assert.Single(listView.SelectedIndices); 5570Assert.Single(listView.SelectedItems); 5571Assert.Single(listView.SelectedIndices); 5596Assert.Single(listView.CheckedItems); 5597Assert.Single(listView.CheckedIndices); 5603Assert.Single(listView.CheckedItems); 5604Assert.Single(listView.CheckedIndices); 5609Assert.Single(listView.Items); 5610Assert.Single(listView.CheckedItems); 5611Assert.Single(listView.CheckedIndices); 5630Assert.Single(listView.CheckedItems); 5631Assert.Single(listView.CheckedIndices); 5660Assert.Single(listView.SelectedItems); 5661Assert.Single(listView.SelectedIndices); 5668Assert.Single(listView.SelectedItems); 5669Assert.Single(listView.SelectedIndices); 5676Assert.Single(listView.Groups); 5677Assert.Single(listView.SelectedItems); 5678Assert.Single(listView.SelectedIndices); 5735Assert.Single(listView.CheckedItems); 5736Assert.Single(listView.CheckedIndices); 5743Assert.Single(listView.CheckedItems); 5744Assert.Single(listView.CheckedIndices); 5750Assert.Single(listView.Groups); 5751Assert.Single(listView.CheckedItems); 5752Assert.Single(listView.CheckedIndices);
System\Windows\Forms\PictureBoxTests.cs (2)
1165Assert.Same(control, Assert.Single(parent.Controls)); 1170Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\PropertyGridTests.cs (4)
47Assert.True(((BrowsableAttribute)Assert.Single(control.BrowsableAttributes)).Browsable); 2365Assert.Single(grid.PropertyTabs); 2371Assert.Single(grid.PropertyTabs); 3936Assert.Single(browsableAttributes);
System\Windows\Forms\StatusStripTests.cs (1)
1185Control grip = Assert.IsAssignableFrom<Control>(Assert.Single(control.Controls));
System\Windows\Forms\TabControl.ControlCollectionTests.cs (25)
68Assert.Same(value1, Assert.Single(collection)); 69Assert.Same(value1, Assert.Single(owner.TabPages)); 198Assert.Same(value1, Assert.Single(collection)); 199Assert.Same(value1, Assert.Single(owner.TabPages)); 365Assert.Same(value1, Assert.Single(collection)); 366Assert.Same(value1, Assert.Single(owner.TabPages)); 513Assert.Same(value1, Assert.Single(collection)); 514Assert.Same(value1, Assert.Single(owner.TabPages)); 669Assert.Same(value, Assert.Single(container.Components)); 921Assert.Same(value1, Assert.Single(collection)); 922Assert.Same(value1, Assert.Single(owner.TabPages)); 941Assert.Same(value1, Assert.Single(collection)); 942Assert.Same(value1, Assert.Single(owner.TabPages)); 1033Assert.Same(value1, Assert.Single(collection)); 1034Assert.Same(value1, Assert.Single(owner.TabPages)); 1056Assert.Same(value1, Assert.Single(collection)); 1057Assert.Same(value1, Assert.Single(owner.TabPages)); 1151Assert.Same(value1, Assert.Single(collection)); 1152Assert.Same(value1, Assert.Single(owner.TabPages)); 1174Assert.Same(value1, Assert.Single(collection)); 1175Assert.Same(value1, Assert.Single(owner.TabPages)); 1270Assert.Same(value1, Assert.Single(collection)); 1271Assert.Same(value1, Assert.Single(owner.TabPages)); 1293Assert.Same(value1, Assert.Single(collection)); 1294Assert.Same(value1, Assert.Single(owner.TabPages));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (72)
53Assert.Same(value1, Assert.Single(collection)); 54Assert.Same(value1, Assert.Single(owner.TabPages)); 55Assert.Same(value1, Assert.Single(owner.Controls)); 186Assert.Same(value1, Assert.Single(collection)); 187Assert.Same(value1, Assert.Single(owner.TabPages)); 188Assert.Same(value1, Assert.Single(owner.Controls)); 356Assert.Same(value1, Assert.Single(collection)); 357Assert.Same(value1, Assert.Single(owner.TabPages)); 358Assert.Same(value1, Assert.Single(owner.Controls)); 507Assert.Same(value1, Assert.Single(collection)); 508Assert.Same(value1, Assert.Single(owner.TabPages)); 509Assert.Same(value1, Assert.Single(owner.Controls)); 668Assert.Same(value, Assert.Single(container.Components)); 896TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 917TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 938TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 959TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 1001Assert.Same(value1, Assert.Single(collection)); 1002Assert.Same(value1, Assert.Single(owner.TabPages)); 1995Assert.Same(value1, Assert.Single(collection)); 1996Assert.Same(value1, Assert.Single(owner.TabPages)); 1997Assert.Same(value1, Assert.Single(owner.Controls)); 2123Assert.Same(value1, Assert.Single(collection)); 2124Assert.Same(value1, Assert.Single(owner.TabPages)); 2125Assert.Same(value1, Assert.Single(owner.Controls)); 2299Assert.Same(value1, Assert.Single(collection)); 2300Assert.Same(value1, Assert.Single(owner.TabPages)); 2301Assert.Same(value1, Assert.Single(owner.Controls)); 2456Assert.Same(value1, Assert.Single(collection)); 2457Assert.Same(value1, Assert.Single(owner.TabPages)); 2458Assert.Same(value1, Assert.Single(owner.Controls)); 2621Assert.Same(value, Assert.Single(container.Components)); 2710TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2730TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2750TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2770TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2982Assert.Same(child, Assert.Single(collection)); 3005Assert.Same(child, Assert.Single(collection)); 3041Assert.Same(value1, Assert.Single(collection)); 3042Assert.Same(value1, Assert.Single(owner.TabPages)); 3043Assert.Same(value1, Assert.Single(owner.Controls)); 3209Assert.Same(child, Assert.Single(collection)); 3227Assert.Same(child, Assert.Single(collection)); 4007Assert.Same(value1, Assert.Single(collection)); 4008Assert.Same(value1, Assert.Single(owner.TabPages)); 4009Assert.Same(value1, Assert.Single(owner.Controls)); 4028Assert.Same(value1, Assert.Single(collection)); 4029Assert.Same(value1, Assert.Single(owner.TabPages)); 4030Assert.Same(value1, Assert.Single(owner.Controls)); 4122Assert.Same(value1, Assert.Single(collection)); 4123Assert.Same(value1, Assert.Single(owner.TabPages)); 4124Assert.Same(value1, Assert.Single(owner.Controls)); 4146Assert.Same(value1, Assert.Single(collection)); 4147Assert.Same(value1, Assert.Single(owner.TabPages)); 4148Assert.Same(value1, Assert.Single(owner.Controls)); 4245Assert.Same(value1, Assert.Single(collection)); 4246Assert.Same(value1, Assert.Single(owner.TabPages)); 4247Assert.Same(value1, Assert.Single(owner.Controls)); 4269Assert.Same(value1, Assert.Single(collection)); 4270Assert.Same(value1, Assert.Single(owner.TabPages)); 4271Assert.Same(value1, Assert.Single(owner.Controls)); 4369Assert.Same(value1, Assert.Single(collection)); 4370Assert.Same(value1, Assert.Single(owner.TabPages)); 4371Assert.Same(value1, Assert.Single(owner.Controls)); 4393Assert.Same(value1, Assert.Single(collection)); 4394Assert.Same(value1, Assert.Single(owner.TabPages)); 4395Assert.Same(value1, Assert.Single(owner.Controls)); 4727Assert.Same(value1, Assert.Single(collection)); 4728Assert.Same(value1, Assert.Single(owner.TabPages)); 4747Assert.Same(value1, Assert.Single(collection)); 4748Assert.Same(value1, Assert.Single(owner.TabPages)); 5036Assert.Single(TabControl.TabPages);
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (5)
17Assert.Equal(style, Assert.Single(collection)); 29Assert.Equal(style, Assert.Single(collection)); 41Assert.Equal(style, Assert.Single(collection)); 54Assert.Single(collection); 80Assert.Equal(style, Assert.Single(collection));
System\Windows\Forms\TableLayoutControlCollectionTests.cs (3)
34Assert.Equal(child, Assert.Single(collection)); 46Assert.Equal(child, Assert.Single(collection)); 58Assert.Equal(child, Assert.Single(collection));
System\Windows\Forms\TableLayoutPanelTests.cs (8)
345Assert.Same(child, Assert.Single(control.Controls)); 349Assert.Same(child, Assert.Single(control.Controls)); 365Assert.Same(child, Assert.Single(control.Controls)); 369Assert.Same(child, Assert.Single(control.Controls)); 463Assert.Equal(columnStyle, Assert.Single(control.LayoutSettings.ColumnStyles)); 464Assert.Equal(rowStyle, Assert.Single(control.LayoutSettings.RowStyles)); 518Assert.Equal(columnStyle, Assert.Single(control.LayoutSettings.ColumnStyles)); 519Assert.Equal(rowStyle, Assert.Single(control.LayoutSettings.RowStyles));
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (5)
17Assert.Equal(style, Assert.Single(collection)); 29Assert.Equal(style, Assert.Single(collection)); 41Assert.Equal(style, Assert.Single(collection)); 54Assert.Single(collection); 80Assert.Equal(style, Assert.Single(collection));
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (9)
32Assert.Equal(style, Assert.Single(collection)); 44Assert.Equal(style, Assert.Single(collection)); 87Assert.Equal(style, Assert.Single(collection)); 131Assert.Single(collection); 145Assert.Single(collection); 196Assert.Equal(style, Assert.Single(collection)); 208Assert.Same(style, Assert.Single(collection)); 232Assert.Equal(style, Assert.Single(collection)); 250Assert.Equal(style, Assert.Single(collection));
System\Windows\Forms\TabPageTests.cs (2)
2527Assert.Same(control, Assert.Single(parent.Controls)); 2533Assert.Same(control, Assert.Single(parent.Controls));
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (2)
51Assert.Same(control1, Assert.Single(collection)); 54Assert.Same(control1, Assert.Single(owner.Controls));
System\Windows\Forms\ToolStripControlHostTests.cs (15)
1400Assert.Same(c, Assert.Single(parent.Controls)); 1409Assert.Same(c, Assert.Single(parent.Controls)); 1421Assert.Same(c, Assert.Single(otherParent.Controls)); 1443Assert.Same(c, Assert.Single(statusParent.Controls)); 1468Assert.Same(item, Assert.Single(owner.Items)); 1471Assert.Same(c, Assert.Single(parent.Controls)); 1479Assert.Same(item, Assert.Single(owner.Items)); 1482Assert.Same(c, Assert.Single(parent.Controls)); 1491Assert.Same(item, Assert.Single(owner.Items)); 1496Assert.Same(c, Assert.Single(otherParent.Controls)); 1503Assert.Same(item, Assert.Single(owner.Items)); 1508Assert.Same(c, Assert.Single(otherParent.Controls)); 1515Assert.Same(item, Assert.Single(owner.Items)); 1522Assert.Same(c, Assert.Single(statusParent.Controls)); 3087Assert.Same(item, Assert.Single(owner.Items));
System\Windows\Forms\ToolStripItemTests.cs (13)
6450Assert.Same(item, Assert.Single(owner.Items)); 6457Assert.Same(item, Assert.Single(owner.Items)); 6466Assert.Same(item, Assert.Single(otherOwner.Items)); 6483Assert.Same(item, Assert.Single(statusOwner.Items)); 6500Assert.Same(item, Assert.Single(owner.Items)); 6507Assert.Same(item, Assert.Single(owner.Items)); 6516Assert.Same(item, Assert.Single(otherOwner.Items)); 6533Assert.Same(item, Assert.Single(statusOwner.Items)); 6594Assert.Same(item, Assert.Single(owner.Items)); 6600Assert.Same(item, Assert.Single(owner.Items)); 6608Assert.Same(item, Assert.Single(otherOwner.Items)); 6622Assert.Same(item, Assert.Single(owner.Items)); 13672ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems));
System\Windows\Forms\ToolStripTests.cs (5)
68Assert.Single(control.DisplayedItems); 2736ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 2745ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 2795ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 6538ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems));
System\Windows\Forms\TreeNodeCollectionTests.cs (3)
18Assert.Same(treeNode, Assert.Single(collection)); 97Assert.Single(collection); 133Assert.Single(collection);
System\Windows\Forms\TreeViewTests.cs (12)
6850Assert.Single(treeView.Nodes); 6913Assert.Single(treeNode.Nodes); 6968Assert.Single(treeNode.Nodes); 6969Assert.Single(treeView.Nodes); 7000Assert.Single(treeView.Nodes); 7053Assert.Single(treeNode.Nodes); 7101Assert.Single(treeNode.Nodes); 7102Assert.Single(treeView.Nodes); 7108Assert.Single(treeNode.Nodes); 7204Assert.Single(treeNode5.Nodes); 7244Assert.Single(parent.Nodes); 7304Assert.Single(parent.Nodes);
System\Windows\Forms\WebBrowserTests.cs (2)
1406Assert.Same(control, Assert.Single(parent.Controls)); 1411Assert.Same(control, Assert.Single(parent.Controls));
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (1)
54Assert.Single(form.ListDragTarget.Items);
ToolStripTests.cs (2)
51Assert.Single(sharedImageList.Images); 59Assert.Single(sharedImageList.Images);
System.Xaml.Tests (2)
System\Windows\Markup\ArrayExtensionTests.cs (2)
81Assert.Equal(value, Assert.Single(extension.Items)); 92Assert.Equal(text, Assert.Single(extension.Items));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
51=> WaitAssertCore(driver, () => Assert.Single(actualValues()));
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
51=> WaitAssertCore(driver, () => Assert.Single(actualValues()));
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
51=> WaitAssertCore(driver, () => Assert.Single(actualValues()));
Templates.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
51=> WaitAssertCore(driver, () => Assert.Single(actualValues()));