1988 references to Cast
Aspire.Dashboard (2)
Extensions\TelemetryFilterFormatter.cs (1)
88.Cast<TelemetryFilter>()
Otlp\Model\OtlpHelpers.cs (1)
410items = query.Cast<TResult>().ToList();
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
48foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
AzureAppServicesSample (1)
Startup.cs (1)
59foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
DefaultBuilder.SampleApp (1)
Startup.cs (1)
39foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
dotnet-svcutil-lib (4)
CodeSerializer.cs (2)
137var wsdlDocuments = metadataSections.Where(s => s.Metadata is WsdlNS.ServiceDescription).Cast<WsdlNS.ServiceDescription>(); 167var schemaDocuments = metadataSections.Where(s => s.Metadata is XmlSchema).Cast<XmlSchema>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (2)
1032var constructorInfo = FilterMethodBases(constructorInfos.Cast<MethodBase>().ToArray(), parameterTypes, ".ctor"); 1039var methodInfo = FilterMethodBases(methodInfos.Cast<MethodBase>().ToArray(), parameterTypes, methodName);
IISSample (1)
Startup.cs (1)
75foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
illink (2)
ILLink.RoslynAnalyzer (3)
DataFlow\ControlFlowGraphExtensions.cs (1)
34 => cfg.DescendantOperations ().Where (d => d?.Kind == operationKind).Cast<T> ();
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
81 .Cast<DynamicallyAccessedMemberTypes> ());
TrimAnalysis\TrimAnalysisVisitor.cs (1)
111 foreach (var array in arrayValue.AsEnumerable ().Cast<ArrayValue> ()) {
Microsoft.Analyzers.Local (2)
ApiLifecycle\ApiLifecycleAnalyzer.cs (2)
54.Cast<INamedTypeSymbol>(); 148.Cast<INamedTypeSymbol>();
Microsoft.AspNetCore.Analyzers.Test (4)
StartupFactsTest.cs (4)
119var methods = type.GetMembers(methodName).Cast<IMethodSymbol>(); 144var methods = type.GetMembers(methodName).Cast<IMethodSymbol>(); 167var methods = type.GetMembers(methodName).Cast<IMethodSymbol>(); 189var methods = type.GetMembers(methodName).Cast<IMethodSymbol>();
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManager.cs (1)
177result.Add(item.Cast<object>().Prepend(browser).ToArray());
Microsoft.AspNetCore.Components (1)
NavigationManagerExtensions.cs (1)
231var values = ((IEnumerable)value).Cast<object>();
Microsoft.AspNetCore.Components.WebView.Maui (2)
BlazorWebViewHandler.cs (2)
119 var newItems = eventArgs.NewItems!.Cast<RootComponent>(); 120 var oldItems = eventArgs.OldItems!.Cast<RootComponent>();
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
229 var newItems = (eventArgs.NewItems ?? Array.Empty<object>()).Cast<RootComponent>(); 230 var oldItems = (eventArgs.OldItems ?? Array.Empty<object>()).Cast<RootComponent>();
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
316 var newItems = (eventArgs.NewItems ?? Array.Empty<RootComponent>()).Cast<RootComponent>(); 317 var oldItems = (eventArgs.OldItems ?? Array.Empty<RootComponent>()).Cast<RootComponent>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
238.Cast<RouteEndpoint>()
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestAssemblyRunner.cs (1)
43.Cast<AssemblyFixtureAttribute>()
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
21_validatorProviders = modelValidatorProviders.Cast<IMetadataBasedModelValidatorProvider>().ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (5)
123var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 142var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 167var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 200var fromBody = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 221var notFromBody = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(),
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (2)
122var properties1 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray(); 123var properties2 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\MultiSelectList.cs (1)
183selectedValues.UnionWith(SelectedValues.Cast<object>());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
HubConnectionTests.cs (3)
1455var transportType = TransportTypes().First().Cast<HttpTransportType>().First(); 2996foreach (var transport in TransportTypes().SelectMany(t => t).Cast<HttpTransportType>()) 3012foreach (var transport in TransportTypes().SelectMany(t => t).Cast<HttpTransportType>())
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisProtocolTests.cs (1)
146var protocol = new RedisProtocol(CreateHubMessageSerializer(hubProtocols.Cast<IHubProtocol>().ToList()));
Microsoft.Build (4)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1407newItem.SetMetadataOnTaskOutput(outputAsITaskItem2.CloneCustomMetadataEscaped().Cast<KeyValuePair<string, string>>());
Construction\ProjectElementContainer.cs (1)
628if (XmlElement.ChildNodes.Cast<XmlNode>().All(c => c.NodeType == XmlNodeType.Whitespace))
Evaluation\Expander.cs (1)
5593members = foundMembers.Cast<MethodBase>();
Instance\ProjectItemInstance.cs (1)
285get { return new ReadOnlyCollection<string>(_taskItem.MetadataNames.Cast<string>()); }
Microsoft.Build.CommandLine.UnitTests (1)
CommandLineSwitches_Tests.cs (1)
1547.Cast<DictionaryEntry>().Where(i => i.Key is string && ((string)i.Key).StartsWith("HelpMessage_"))
Microsoft.Build.Engine.UnitTests (2)
BuildEventArgsSerialization_Tests.cs (1)
1051BinaryLogRecordKind unknownType = (BinaryLogRecordKind)Enum.GetValues(typeof(BinaryLogRecordKind)).Cast<BinaryLogRecordKind>().Select(e => (int)e).Max() + 2;
Instance\TaskItem_Tests.cs (1)
193item.MetadataNames.Cast<string>().ShouldBeSetEquivalentTo(new[] { "a", "b" }.Concat(s_builtInMetadataNames));
Microsoft.Build.Framework (1)
ProjectStartedEventArgs.cs (1)
386var validProperties = properties.Cast<DictionaryEntry>().Where(entry => entry.Key != null && entry.Value != null);
Microsoft.Build.Tasks.UnitTests (11)
RoslynCodeTaskFactory_Tests.cs (2)
287foreach (RoslynCodeTaskFactoryCodeType codeType in Enum.GetValues(typeof(RoslynCodeTaskFactoryCodeType)).Cast<RoslynCodeTaskFactoryCodeType>()) 299foreach (RoslynCodeTaskFactoryCodeType codeType in Enum.GetValues(typeof(RoslynCodeTaskFactoryCodeType)).Cast<RoslynCodeTaskFactoryCodeType>())
XmlPeek_Tests.cs (1)
359Assert.Equal(["abcdefg", "a%24%28d%29fg", "a%24%28d.f%29"], p.Result.Cast<TaskItem>().Select(x => x.ToString()));
XmlPoke_Tests.cs (8)
57List<XmlAttribute> nodes = xmlDocument.SelectNodes(query, ns)?.Cast<XmlAttribute>().ToList(); 74List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 91List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 108List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList(); 114var testNodes = nodes?.First().ChildNodes.Cast<XmlElement>().ToList(); 132List<XmlAttribute> nodes = xmlDocument.SelectNodes(string.Format(queryTemplate, value))?.Cast<XmlAttribute>().ToList(); 213List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 302List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList();
Microsoft.Build.Utilities.UnitTests (2)
TaskItem_Tests.cs (2)
92taskItem.MetadataNames.Cast<string>().ShouldBeSetEquivalentTo(FileUtilities.ItemSpecModifiers.All); 98taskItem.MetadataNames.Cast<string>().ShouldBeSetEquivalentTo(FileUtilities.ItemSpecModifiers.All.Concat(new[] { "m" }));
Microsoft.CodeAnalysis (6)
InternalUtilities\EnumerableExtensions.cs (5)
214return source.Cast<T?>().FirstOrDefault(); 230return source.Cast<T?>().FirstOrDefault(static (v, predicate) => predicate(v!.Value), predicate); 246return source.Cast<T?>().FirstOrDefault(static (v, arg) => arg.predicate(v!.Value, arg.arg), (predicate, arg)); 257return source.Cast<T?>().LastOrDefault(); 268return source.Cast<T?>().SingleOrDefault(v => predicate(v!.Value));
TreeDumper.cs (1)
220return string.Format("{{{0}}}", string.Join(", ", seq.Cast<object>().Select(DumperString).ToArray()));
Microsoft.CodeAnalysis.CodeStyle (6)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (5)
214return source.Cast<T?>().FirstOrDefault(); 230return source.Cast<T?>().FirstOrDefault(static (v, predicate) => predicate(v!.Value), predicate); 246return source.Cast<T?>().FirstOrDefault(static (v, arg) => arg.predicate(v!.Value, arg.arg), (predicate, arg)); 257return source.Cast<T?>().LastOrDefault(); 268return source.Cast<T?>().SingleOrDefault(v => predicate(v!.Value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ControlFlowGraphExtensions.cs (1)
32=> cfg.DescendantOperations().Where(d => d?.Kind == operationKind).Cast<T>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
54foreach (var symbol in Sort(symbolInfo.CandidateSymbols.Cast<ITypeSymbol>(), placementOption.PlaceSystemNamespaceFirst))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedNamedTypeSymbol.cs (1)
90return [.. _constructedFrom.TypeMembers.Cast<INamedTypeSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
166=> [.. this.TypeMembers.Cast<INamedTypeSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
140return [.. newTypeParameters.Cast<ITypeParameterSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
128FirstStatementAffectedInInnermostBlock = InnermostBlockStatements.Cast<TStatementSyntax>().FirstOrDefault(allAffectedStatements.Contains);
Microsoft.CodeAnalysis.CSharp (10)
Compilation\CSharpCompilation.cs (2)
865foreach (var tree in trees.Cast<CSharpSyntaxTree>()) 939foreach (var tree in trees.Cast<CSharpSyntaxTree>())
Symbols\Source\SourcePropertySymbolBase.cs (1)
1679=> GetAttributes().Where(a => a.IsTargetAttribute(attributeDescription)).Cast<SourceAttributeData>().ToImmutableArray();
Syntax\CSharpSyntaxNode.cs (1)
507return SyntaxNodeRemover.RemoveNodes(this, nodes.Cast<CSharpSyntaxNode>(), options).AsRootOfNewTreeWithOptionsFrom(this.SyntaxTree);
Syntax\SyntaxReplacer.cs (6)
404return list.ReplaceRange((TNode)_originalNode, _newNodes.Cast<TNode>()); 407return list.InsertRange(index + 1, _newNodes.Cast<TNode>()); 410return list.InsertRange(index, _newNodes.Cast<TNode>()); 428return list.ReplaceRange((TNode)_originalNode, _newNodes.Cast<TNode>()); 431return list.InsertRange(index + 1, _newNodes.Cast<TNode>()); 434return list.InsertRange(index, _newNodes.Cast<TNode>());
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\ValidateFormatString\CSharpValidateFormatStringDiagnosticAnalyzer.cs (1)
25foreach (var argument in arguments.Cast<ArgumentSyntax>())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
487=> triviaList.Sum(t => t.ToFullString().Replace("\r\n", "\r").Cast<char>().Count(c => SyntaxFacts.IsNewLine(c)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
117var initialList = usingList.Cast<SyntaxNode>()
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
59var newBody = SyntaxFactory.Block(statements.Add(exprOrStatement).Cast<StatementSyntax>()); 79var newBody = SyntaxFactory.Block(statements.Add(generator.ReturnStatement(exprOrStatement)).Cast<StatementSyntax>());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (4)
348return Cast<TDeclarationNode>(enumDeclaration.AddMembers([.. members.Cast<EnumMemberDeclarationSyntax>()])); 353return Cast<TDeclarationNode>(typeDeclaration.AddMembers([.. members.Cast<MemberDeclarationSyntax>()])); 357return Cast<TDeclarationNode>(namespaceDeclaration.AddMembers([.. members.Cast<MemberDeclarationSyntax>()])); 362.AddMembers([.. members.Cast<MemberDeclarationSyntax>()]));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (1)
44var clauses = SyntaxFactory.List(allClauses.Take(allClauses.Count() - 1).Cast<QueryClauseSyntax>());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
108=> SyntaxFactory.InterpolatedStringExpression(startToken, [.. content.Cast<InterpolatedStringContentSyntax>()], endToken);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
1734Enum.GetValues(typeof(LanguageVersion)).Cast<LanguageVersion>().Select(v => v.ToDisplayString())); 1742.Cast<LanguageVersion>() 1880var expected = Enum.GetValues(typeof(LanguageVersion)).Cast<LanguageVersion>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
ExtractMethod\ExtractMethodBase.cs (1)
193var iterator = root.DescendantNodesAndSelf().Cast<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2689string[] actual = Regex.Matches(il, @"\.class nested assembly explicit ansi sealed '([^']*?)'").Cast<Match>().Select(m => m.Groups[1].Value).ToArray();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Embedded.cs (1)
348var embeddedAttributes = codeAnalysisNamespace.GetMembers("EmbeddedAttribute").Cast<NamedTypeSymbol>().ToArray();
Semantics\PrimaryConstructorTests.cs (1)
135Assert.Equal(MethodKind.Constructor, members.Cast<MethodSymbol>().Single().MethodKind);
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
78sections: [.. sectionList.Cast<SwitchSectionSyntax>()],
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (2)
285return _statementsOrMemberOrAccessorToInsert.Cast<StatementSyntax>().Single(); 310newList.InsertRange(firstIndex, _statementsOrMemberOrAccessorToInsert.Cast<TSyntax>());
src\Analyzers\CSharp\Analyzers\ValidateFormatString\CSharpValidateFormatStringDiagnosticAnalyzer.cs (1)
25foreach (var argument in arguments.Cast<ArgumentSyntax>())
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
59var newBody = SyntaxFactory.Block(statements.Add(exprOrStatement).Cast<StatementSyntax>()); 79var newBody = SyntaxFactory.Block(statements.Add(generator.ReturnStatement(exprOrStatement)).Cast<StatementSyntax>());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
95foreach (var kind in Enum.GetValues(typeof(SyntaxKind)).Cast<SyntaxKind>().Where(hasLabel))
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (1)
85var implicitSymbols = typeSymbol.GetMembers("op_Implicit").Cast<MethodSymbol>();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
769var expected = Enum.GetValues(typeof(LanguageVersion)).Cast<LanguageVersion>()
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\BindingTests.cs (2)
2365var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.ThisExpression)).Cast<ThisExpressionSyntax>().Single(); 2384var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.ThisExpression)).Cast<ThisExpressionSyntax>().Single();
Semantics\FunctionPointerTests.cs (3)
2229.Cast<IMethodSymbol>() 2290.Cast<IMethodSymbol>() 2363.Cast<IMethodSymbol>()
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
SymbolDisplay\SymbolDisplayTests.cs (3)
7039var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray(); 7077var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray(); 7115var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray();
Symbols\IndexerTests.cs (1)
2539node.DescendantNodesAndSelf().Where(s => s.IsKind(SyntaxKind.ElementAccessExpression)).Cast<ElementAccessExpressionSyntax>();
Symbols\Metadata\PE\LoadingEvents.cs (1)
399int length = 1 + modList.Cast<int>().Max();
Symbols\Metadata\PE\LoadingProperties.cs (1)
314int length = 1 + modList.Cast<int>().Max();
Symbols\Source\EnumTests.cs (1)
1013var fields = symEnum.GetMembers().OfType<FieldSymbol>().Cast<Symbol>().ToList();
Symbols\Source\NullablePublicAPITests.cs (3)
570return syntaxTree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.LocalFunctionStatementSyntax>().Select(func => semanticModel.GetDeclaredSymbol(func)).Cast<IMethodSymbol>().ToArray(); 2056var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList(); 2099var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\LanguageVersionTests.cs (1)
20Cast<LanguageVersion>().
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
CodeGeneration\CSharpSyntaxGenerator.cs (16)
350? SyntaxFactory.ParameterList([.. parameters.Cast<ParameterSyntax>()]) 456var list = SyntaxFactory.List(accessorDeclarations.Cast<AccessorDeclarationSyntax>()); 512? SyntaxFactory.BracketedParameterList([.. parameters.Cast<ParameterSyntax>()]) 1744? SyntaxFactory.TypeParameterList([.. typeParameterNodes.Cast<TypeParameterSyntax>()]) 2157var newSections = statement.Sections.InsertRange(index, switchSections.Cast<SwitchSectionSyntax>()); 3145SyntaxFactory.BracketedArgumentList([.. arguments.Cast<ArgumentSyntax>()])); 3289SyntaxFactory.TypeArgumentList([.. typeArguments.Cast<TypeSyntax>()])); 3297return SyntaxFactory.GenericName(sname.Identifier, SyntaxFactory.TypeArgumentList([.. typeArguments.Cast<TypeSyntax>()])); 3301return gname.WithTypeArgumentList(SyntaxFactory.TypeArgumentList([.. typeArguments.Cast<TypeSyntax>()])); 3369=> SyntaxFactory.TupleType([.. elements.Cast<TupleElementSyntax>()]); 3412catchClauses != null ? [.. catchClauses.Cast<CatchClauseSyntax>()] : default, 3433[.. caseClauses.Cast<SwitchSectionSyntax>()]); 3443[.. caseClauses.Cast<SwitchSectionSyntax>()], 3454[.. labels.Cast<SwitchLabelSyntax>()], 3477=> SyntaxFactory.Block(statements.Cast<StatementSyntax>()); 3484var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
487=> triviaList.Sum(t => t.ToFullString().Replace("\r\n", "\r").Cast<char>().Count(c => SyntaxFacts.IsNewLine(c)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
117var initialList = usingList.Cast<SyntaxNode>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (4)
348return Cast<TDeclarationNode>(enumDeclaration.AddMembers([.. members.Cast<EnumMemberDeclarationSyntax>()])); 353return Cast<TDeclarationNode>(typeDeclaration.AddMembers([.. members.Cast<MemberDeclarationSyntax>()])); 357return Cast<TDeclarationNode>(namespaceDeclaration.AddMembers([.. members.Cast<MemberDeclarationSyntax>()])); 362.AddMembers([.. members.Cast<MemberDeclarationSyntax>()]));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (1)
44var clauses = SyntaxFactory.List(allClauses.Take(allClauses.Count() - 1).Cast<QueryClauseSyntax>());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
108=> SyntaxFactory.InterpolatedStringExpression(startToken, [.. content.Cast<InterpolatedStringContentSyntax>()], endToken);
Microsoft.CodeAnalysis.EditorFeatures (1)
Logging\FunctionIdOptions.cs (1)
38=> Enum.GetValues(typeof(FunctionId)).Cast<FunctionId>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Structure\StructureTaggerTests.cs (1)
324var hints = tags.Select(x => x.GetCollapsedHintForm()).Cast<ViewHostingControl>().ToArray();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
VS\IFSharpWorkspaceProjectContextFactory.cs (2)
152foreach (var reference in _projectReferences.Values.Cast<FSharpWorkspaceProjectContext>()) 157foreach (var reference in projRefs.Cast<FSharpWorkspaceProjectContext>())
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
28var internalValues = Enum.GetValues(internalType).Cast<int>().ToArray(); 30var externalValues = Enum.GetValues(externalType).Cast<int>().ToArray();
Microsoft.CodeAnalysis.Features (5)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
134ae.InnerExceptions.Cast<OperationCanceledException>().Any(NotOurShutdownToken))
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
41.Cast<TriviaLocation>()
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (2)
107.Cast<TriviaLocation>() 132.Cast<TriviaLocation>()
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
54foreach (var symbol in Sort(symbolInfo.CandidateSymbols.Cast<ITypeSymbol>(), placementOption.PlaceSystemNamespaceFirst))
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RudeEditDiagnosticTests.cs (1)
74var allKinds = Enum.GetValues(typeof(RudeEditKind)).Cast<RudeEditKind>();
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\TestOperationVisitor.cs (3)
1473IEnumerable<IOperation> children = operation.Patterns.Cast<IOperation>(); 1515IEnumerable<IOperation> children = operation.DeconstructionSubpatterns.Cast<IOperation>(); 1553var children = operation.Arms.Cast<IOperation>().Prepend(operation.Value);
Diagnostics\TestDiagnosticAnalyzer.cs (1)
30return ImmutableArray.CreateRange(Enum.GetValues(typeof(T)).Cast<T>());
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableDictionaryBuilderTestBase.cs (2)
182Assert.Equal(new[] { "a" }, dictionary.Keys.Cast<string>().ToArray()); 183Assert.Equal(new[] { 1 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableDictionaryTestBase.cs (2)
178Assert.Equal(new[] { "c" }, dictionary.Keys.Cast<string>().ToArray()); 179Assert.Equal(new[] { 3 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
303Assert.Equal(array.Skip(1), nonGeneric.Cast<T>().ToArray());
Collections\ImmutableListTestBase.cs (1)
524Assert.Equal(new[] { 1 }, enumerableNonGeneric.Cast<int>().ToList()); // exercises the enumerator
Collections\ImmutableSegmentedListBuilderTest.cs (1)
323Assert.Equal(new[] { 9, 8 }, list.Cast<int>().ToArray());
Collections\List\CollectionAsserts.cs (4)
81ILookup<object?, object?> e = expected.Cast<object?>().ToLookup(key => key); 82ILookup<object?, object?> a = actual!.Cast<object?>().ToLookup(key => key); 100ILookup<object?, object?> e = expected.Cast<object?>().ToLookup(key => key); 101ILookup<object?, object?> a = actual!.Cast<object?>().ToLookup(key => key);
Collections\SegmentedCollectionsMarshalTests.cs (2)
583test<int?>(Enumerable.Range(0, 17).Cast<int?>()); 655test<int?>(Enumerable.Range(0, 17).Cast<int?>());
Microsoft.CodeAnalysis.VisualBasic (6)
Syntax\SyntaxReplacer.vb (6)
311Return list.ReplaceRange(DirectCast(Me._originalNode, TNode), Me._replacementNodes.Cast(Of TNode)) 313Return list.InsertRange(index, Me._replacementNodes.Cast(Of TNode)) 315Return list.InsertRange(index + 1, Me._replacementNodes.Cast(Of TNode)) 328Return list.ReplaceRange(DirectCast(Me._originalNode, TNode), Me._replacementNodes.Cast(Of TNode)) 330Return list.InsertRange(index, Me._replacementNodes.Cast(Of TNode)) 332Return list.InsertRange(index + 1, Me._replacementNodes.Cast(Of TNode))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\VisualBasicParseOptionsTests.vb (1)
85Cast(Of LanguageVersion).
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
49result.AddRange(enumerable.Cast<ISymbol>());
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues(typeof(FunctionId)).Cast<FunctionId>().ToImmutableDictionary(f => f, f => f.ToString()));
Shared\Extensions\ISymbolExtensions.cs (1)
622return xpathResult?.Cast<XNode>().ToArray();
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
241return _singletonListeners.Values.Cast<IAsynchronousOperationWaiter>();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (5)
214return source.Cast<T?>().FirstOrDefault(); 230return source.Cast<T?>().FirstOrDefault(static (v, predicate) => predicate(v!.Value), predicate); 246return source.Cast<T?>().FirstOrDefault(static (v, arg) => arg.predicate(v!.Value, arg.arg), (predicate, arg)); 257return source.Cast<T?>().LastOrDefault(); 268return source.Cast<T?>().SingleOrDefault(v => predicate(v!.Value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ControlFlowGraphExtensions.cs (1)
32=> cfg.DescendantOperations().Where(d => d?.Kind == operationKind).Cast<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedNamedTypeSymbol.cs (1)
90return [.. _constructedFrom.TypeMembers.Cast<INamedTypeSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
166=> [.. this.TypeMembers.Cast<INamedTypeSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
140return [.. newTypeParameters.Cast<ITypeParameterSymbol>()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
128FirstStatementAffectedInInnermostBlock = InnermostBlockStatements.Cast<TStatementSyntax>().FirstOrDefault(allAffectedStatements.Contains);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (5)
214return source.Cast<T?>().FirstOrDefault(); 230return source.Cast<T?>().FirstOrDefault(static (v, predicate) => predicate(v!.Value), predicate); 246return source.Cast<T?>().FirstOrDefault(static (v, arg) => arg.predicate(v!.Value, arg.arg), (predicate, arg)); 257return source.Cast<T?>().LastOrDefault(); 268return source.Cast<T?>().SingleOrDefault(v => predicate(v!.Value));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\NamingStylePreferencesTests.cs (1)
204var enumNamesAndValues = type.GetEnumNames().Zip(type.GetEnumValues().Cast<object>(), (name, value) => (name, value));
Microsoft.Data.Analysis.Tests (3)
ArrowIntegrationTests.cs (1)
123StructArray structArray = new StructArray(structType, originalBatch.Length, originalBatch.Arrays.Cast<Apache.Arrow.Array>(), validityBitmap);
DataFrame.IOTests.cs (2)
1191var resColumns = table.Columns.Cast<DataColumn>().Select(column => (column.ColumnName, column.DataType)).ToArray(); 1194var resVals = table.Rows.Cast<DataRow>().Select(row => row.ItemArray).ToArray();
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
506var arguments = match.Cast<Match>()
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
245string propertyCategory = e.Properties?.Cast<DictionaryEntry>().LastOrDefault(p => p.Key.ToString().Equals(s_TelemetryMarker)).Value?.ToString();
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetPackageDestination.cs (1)
116if (packageTargetFramework.MetadataNames.Cast<string>().Any(md => md.Equals("TargetRuntime")))
Microsoft.DotNet.Helix.Sdk (1)
CheckAzurePipelinesTestResults.cs (1)
119IEnumerable<JObject> entries = data.Value<JArray>("value").Cast<JObject>();
Microsoft.DotNet.VersionTools.Tasks (1)
TraceListenerCollectionExtensions.cs (1)
30.Cast<TraceEventType>()
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
184DateTimeOffset[] createdAts = Regex.Matches(Output, @"2024.*?Z").Cast<Match>().Select(m => DateTimeOffset.Parse(m.Value)).ToArray();
Microsoft.Extensions.Caching.SqlServer (1)
DatabaseOperations.cs (1)
366return ex.Errors.Cast<SqlError>().Any(error => error.Number == DuplicateKeyErrorId);
Microsoft.Extensions.DependencyModel (3)
DependencyContextJsonReader.cs (2)
209CreateLibraries(compileTarget?.Libraries, false, libraryStubs).Cast<CompilationLibrary>().ToArray(), 210CreateLibraries(runtimeTarget.Libraries, true, libraryStubs).Cast<RuntimeLibrary>().ToArray(),
DependencyContextWriter.cs (1)
408context.RuntimeLibraries.Cast<Library>().Concat(context.CompileLibraries)
Microsoft.Gen.Logging (3)
Parsing\Parser.LogProperties.cs (1)
123foreach (var property in members.Where(m => m.Kind == SymbolKind.Property).Cast<IPropertySymbol>())
Parsing\Parser.TagProvider.cs (1)
88var methodSymbols = providerType.GetMembers(providerMethodName).Where(m => m.Kind == SymbolKind.Method).Cast<IMethodSymbol>();
Parsing\TypeSymbolExtensions.cs (1)
82if (current.GetMembers("ToString").Where(m => m.Kind == SymbolKind.Method && m.DeclaredAccessibility == Accessibility.Public).Cast<IMethodSymbol>().Any(m => m.Parameters.Length == 0))
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSMarshalAsAttributeInfoParser.cs (1)
35foreach (var ta in jsTypeArgs.TypeArguments.Cast<INamedTypeSymbol>().Select(x => x.ToDisplayString()))
Microsoft.Interop.SourceGeneration (1)
GeneratedStatements.cs (1)
35Pin = GenerateStatementsForStubContext(marshallers, context with { CurrentStage = StubIdentifierContext.Stage.Pin }).Cast<FixedStatementSyntax>().ToImmutableArray(),
Microsoft.Maui.Controls (12)
LegacyLayouts\RelativeLayout.cs (2)
71 foreach (View child in Children.Cast<View>()) 76 List<View> unsolvedChildren = Children.Cast<View>().ToList();
ListView\ListView.cs (2)
528 ItemTapped?.Invoke(this, new ItemTappedEventArgs(ItemsSource.Cast<object>().ElementAt(groupIndex), cell?.BindingContext, TemplatedItems.GetGlobalIndexOfItem(cell?.BindingContext))); 559 var itemSource = ItemsSource?.Cast<object>().ToList();
MultiPage.cs (2)
351 if (selected == null || !ItemsSource.Cast<object>().Contains(selected)) 353 SelectedItem = ItemsSource.Cast<object>().FirstOrDefault();
NavigationPage\NavigationPage.cs (1)
132 IEnumerable<Page> INavigationPageController.Pages => InternalChildren.Cast<Page>();
Shell\ShellElementCollection.cs (2)
110 var list = Inner.Cast<BaseShellItem>().ToList(); 330 return Inner.Cast<BaseShellItem>().GetEnumerator();
TableView\TableSection.cs (1)
159 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => this._children.Cast<IVisualTreeElement>().ToList().AsReadOnly();
TableView\TableView.cs (1)
161 childCollectionChangedEventArgs.Args.NewItems?.Cast<Cell>().ForEach(cell => cell.Parent = this);
TemplatedItemsList.cs (1)
1305 newList.AddRange(list.Cast<TemplatedItemsList<TView, TItem>>().Select(tl => tl.ShortName));
Microsoft.Maui.Controls.Maps (3)
HandlerImpl\Map.Impl.cs (2)
10 IList<IMapElement> IMap.Elements => _mapElements.Cast<IMapElement>().ToList(); 12 IList<IMapPin> IMap.Pins => _pins.Cast<IMapPin>().ToList();
Map.cs (1)
229 if (e.NewItems is not null && e.NewItems.Cast<Pin>().Any(pin => pin.Label is null))
Microsoft.ML.AutoML (1)
TrainerExtensions\TrainerExtensionUtil.cs (1)
282var enumDict = fi.FieldType.GetEnumValues().Cast<int>()
Microsoft.ML.AutoML.Tests (7)
EstimatorExtensionTests.cs (1)
32var estimatorNames = Enum.GetValues(typeof(EstimatorName)).Cast<EstimatorName>();
TrainerExtensionsTests.cs (6)
27var trainerNames = Enum.GetValues(typeof(TrainerName)).Cast<TrainerName>() 357var publicNames = Enum.GetValues(typeof(BinaryClassificationTrainer)).Cast<BinaryClassificationTrainer>(); 365var publicNames = Enum.GetValues(typeof(MulticlassClassificationTrainer)).Cast<MulticlassClassificationTrainer>(); 373var publicNames = Enum.GetValues(typeof(RegressionTrainer)).Cast<RegressionTrainer>(); 381var publicNames = Enum.GetValues(typeof(RecommendationTrainer)).Cast<RecommendationTrainer>(); 389var publicNames = Enum.GetValues(typeof(RankingTrainer)).Cast<RankingTrainer>();
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
82return sampleData.Cast<DictionaryEntry>().ToDictionary(k => (string)k.Key, v => (string)v.Value);
Microsoft.ML.Data (3)
Commands\TypeInfoCommand.cs (1)
87var kinds = Enum.GetValues(typeof(InternalDataKind)).Cast<InternalDataKind>().Distinct().OrderBy(k => k).ToArray();
Transforms\ValueMapping.cs (2)
971return _mapping.Keys.Cast<T>().ToArray(); 975return _mapping.Values.Cast<T>().ToArray();
Microsoft.ML.Fairlearn (1)
Reductions\Utilities.cs (1)
20var sensitiveFeatureColumnValue = moment.SensitiveFeatureColumn.Cast<string>().Distinct();
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLine.cs (1)
241foreach (var sc in subComponents.Cast<ICommandLineComponentFactory>())
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
273internal ImmutableArray<object> SubModelParameters => _impl.Predictors.Cast<object>().ToImmutableArray();
Microsoft.ML.Sweeper (4)
Algorithms\KdoSweeper.cs (4)
138var viableRuns = prevRuns.Cast<RunResult>().Where(run => run != null && run.HasMetricValue).Cast<IRunResult>().ToArray(); 379previousRuns.Cast<RunResult>().Where(r => r.HasMetricValue).Max(r => r.MetricValue) : 380previousRuns.Cast<RunResult>().Where(r => r.HasMetricValue).Min(r => r.MetricValue);
Microsoft.ML.Transforms (3)
Dracula\CountTableTransformer.cs (1)
91: this(env, labelColumnName, columns.Cast<ColumnOptionsBase>().ToArray())
Text\StopWordsRemovingTransformer.cs (2)
149var values = Enum.GetValues(typeof(StopWordsRemovingEstimator.Language)).Cast<int>(); 171var langsDictionary = Enum.GetValues(typeof(StopWordsRemovingEstimator.Language)).Cast<StopWordsRemovingEstimator.Language>()
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\TreeViewItemBase.cs (1)
125foreach (var item in items.Cast<TreeViewItemBase>())
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\FileCodeClassTests.cs (2)
65Assert.Equal(1, bases.Cast<CodeElement>().Count()); 84Assert.Equal(2, interfaces.Cast<CodeElement>().Count());
NativeIISSample (1)
Startup.cs (1)
73foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\PerformanceLoggersPage.cs (1)
70var functionIds = Enum.GetValues(typeof(FunctionId)).Cast<FunctionId>().Where(isEnabled).ToImmutableArray();
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
32TextView.Properties[ProjectionSpanTaggerProvider.PropertyName] = new List<Span>(e.AddedItems.Cast<SnapshotSpan>().Select(ss => ss.Span).Where(ss => !ss.IsEmpty));
Roslyn.VisualStudio.Next.UnitTests (1)
UnifiedSettings\UnifiedSettingsTests.cs (1)
365var expectedEnumValues = enumValues ?? [.. Enum.GetValues(nonNullableType).Cast<T>()];
System.ComponentModel.Composition (1)
Microsoft\Internal\GenerationServices.cs (1)
237ilGenerator.LoadInt(enumerable.Cast<object>().Count());
System.Composition.Runtime (2)
System\Composition\Hosting\Core\CompositionContract.cs (2)
204if (secondEnumerable == null || !Enumerable.SequenceEqual(firstEnumerable.Cast<object>(), secondEnumerable.Cast<object>()))
System.Data.Common (5)
System\Data\EnumerableRowCollection.cs (1)
93_enumerableRows = table.Rows.Cast<TRow>();
System\Data\EnumerableRowCollectionExtensions.cs (1)
155IEnumerable<TResult> typedEnumerable = Enumerable.Cast<TResult>(source);
System\Data\TypedTableBase.cs (1)
48return Rows.Cast<T>().GetEnumerator();
System\Data\TypeLimiter.cs (2)
110? dataTable.Columns.Cast<DataColumn>().Select(column => column.DataType) 121? dataSet.Tables.Cast<DataTable>().SelectMany(GetPreviouslyDeclaredDataTypes)
System.Drawing.Common.Tests (2)
Design\CategoryNameCollectionTests.cs (2)
13Assert.Equal(value, collection.Cast<string>()); 23Assert.Equal(value, collection.Cast<string>());
System.Private.Windows.Core.TestUtilities (1)
XUnit\ReadOnlyTheoryData.cs (1)
23=> _data = data.Cast<object>().Select(i => new object?[] { i }).ToArray();
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Emitter.cs (2)
156AppendHashtableContents(writer, rm.Tree.CaptureNumberSparseMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as int?)); 162AppendHashtableContents(writer, rm.Tree.CaptureNameToNumberMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as string, StringComparer.Ordinal));
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3936ToolStripItem[] itemsArray = [..items.Cast<ToolStripItem>()];
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
810List<ListItem> toBeDeleted = [.._listBox.SelectedItems.Cast<ListItem>()];
System\ComponentModel\Design\ExceptionCollection.cs (1)
25_exceptions = exceptions?.Cast<Exception>().ToList();
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
260List<IComponent> dragComps = [..e.DragComponents.Cast<IComponent>()]; 415List<IComponent> selComps = [.._selectionService.GetSelectedComponents().Cast<IComponent>()];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
169_styles = [..((TableLayoutStyleCollection)_changedProp.GetValue(_table)).Cast<TableLayoutStyle>()];
System\Windows\Forms\Design\CommandSet.cs (1)
807List<IComponent> selComps = [..SelectionService.GetSelectedComponents().Cast<IComponent>()];
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
148components.AddRange(panel.Controls.Cast<Control>());
System.Windows.Forms.Design.Tests (58)
CodeDomHelpers.cs (1)
70string parameters = string.Join(", ", coce.Parameters.Cast<CodeObject>().Select(GetConstructionString));
EnsureEditorsTests.cs (1)
171IEnumerable<EditorAttribute> attributes = method.GetCustomAttributes(typeof(EditorAttribute), false).Cast<EditorAttribute>();
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (2)
29Assert.Equal(new object[] { value1, value2 }, collection.Cast<object>()); 55Assert.Equal(new object[] { value2, value1 }, collection.Cast<object>());
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (9)
26Assert.Equal(value, collection.Cast<object>()); 49Assert.Equal(new object[] { value1, value2 }, collection.Cast<object>()); 54Assert.Equal(new object[] { value1, value2, null }, collection.Cast<object>()); 65Assert.Equal(value, collection.Cast<object>()); 69Assert.Equal(value.Concat(value), collection.Cast<object>()); 78Assert.Equal(value, collection.Cast<object>()); 82Assert.Equal(value.Concat(value), collection.Cast<object>()); 107Assert.Equal(new object[] { value2, value1 }, collection.Cast<object>()); 112Assert.Equal(new object[] { value2, null, value1 }, collection.Cast<object>());
System\ComponentModel\Design\DesignerHostTests.cs (6)
291Assert.Equal(new IComponent[] { component1, component2 }, host.Container.Components.Cast<IComponent>()); 302Assert.Equal(new IComponent[] { component1, component2, component3 }, host.Container.Components.Cast<IComponent>()); 313Assert.Equal(new IComponent[] { component1, component2, component3, component4 }, host.Container.Components.Cast<IComponent>()); 346Assert.Equal(new IComponent[] { component1, component2 }, host.Container.Components.Cast<IComponent>()); 357Assert.Equal(new IComponent[] { component1, component2, component3 }, host.Container.Components.Cast<IComponent>()); 368Assert.Equal(new IComponent[] { component1, component2, component3, component4 }, host.Container.Components.Cast<IComponent>());
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (9)
26Assert.Equal(value, collection.Cast<object>()); 49Assert.Equal(new object[] { value1, value2 }, collection.Cast<object>()); 54Assert.Equal(new object[] { value1, value2, null }, collection.Cast<object>()); 65Assert.Equal(value, collection.Cast<object>()); 69Assert.Equal(value.Concat(value), collection.Cast<object>()); 78Assert.Equal(value, collection.Cast<object>()); 82Assert.Equal(value.Concat(value), collection.Cast<object>()); 107Assert.Equal(new object[] { value2, value1 }, collection.Cast<object>()); 112Assert.Equal(new object[] { value2, null, value1 }, collection.Cast<object>());
System\ComponentModel\Design\SiteNestedContainerTests.cs (8)
89Assert.Equal(new IComponent[] { component1, component2 }, container.Components.Cast<IComponent>()); 99Assert.Equal(new IComponent[] { component1, component2 }, container.Components.Cast<IComponent>()); 193Assert.Equal(new IComponent[] { component1, component2 }, container.Components.Cast<IComponent>()); 204Assert.Equal(new IComponent[] { component1, component2, component3 }, container.Components.Cast<IComponent>()); 215Assert.Equal(new IComponent[] { component1, component2, component3, component4 }, container.Components.Cast<IComponent>()); 250Assert.Equal(new IComponent[] { component1, component2 }, container.Components.Cast<IComponent>()); 261Assert.Equal(new IComponent[] { component1, component2, component3 }, container.Components.Cast<IComponent>()); 272Assert.Equal(new IComponent[] { component1, component2, component3, component4 }, container.Components.Cast<IComponent>());
System\Drawing\Design\ToolboxItemTests.cs (3)
1368Assert.Equal(new string[] { type.Name, "Filter", "System.Drawing.Design.Tests.ToolboxItemTests+" + type.Name }, item.Filter.Cast<ToolboxItemFilterAttribute>().Select(a => a.FilterString).OrderBy(f => f)); 1376Assert.Equal(new string[] { type.Name, "Filter", "System.Drawing.Design.Tests.ToolboxItemTests+" + type.Name }, item.Filter.Cast<ToolboxItemFilterAttribute>().Select(a => a.FilterString).OrderBy(f => f)); 1405Assert.Equal(new string[] { "System.Object" }, item.Filter.Cast<ToolboxItemFilterAttribute>().Select(a => a.FilterString));
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
113var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 128var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 147var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList();
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
64_control.Controls.Cast<Control>().Should().Contain(control); 74_control.Controls.Cast<Control>().Should().Contain(controls);
System\Windows\Forms\Design\ImageListDesignerTests.cs (1)
18imageListDesigner.ActionLists.Cast<object>().Should().HaveCount(1);
System\Windows\Forms\Design\ListViewActionListTests.cs (1)
68var enumerableItems = items.Cast<DesignerActionItem>();
System\Windows\Forms\Design\TabControlDesignerTests.cs (3)
86var verbs = designer.Verbs.Cast<DesignerVerb>(); 104var removeVerb = verbs.Cast<DesignerVerb>().FirstOrDefault(v => v.Text == SR.TabControlRemove); 120var removeVerb = verbs.Cast<DesignerVerb>().FirstOrDefault(v => v.Text == SR.TabControlRemove);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
57SnapLine? baselineSnapLine = snapLines.Cast<SnapLine>().FirstOrDefault(sl => sl.SnapLineType == SnapLineType.Baseline);
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
166List<DesignerActionItem> itemList = items.Cast<DesignerActionItem>().ToList();
System\Windows\Forms\Design\ToolStripContentPanelDesignerTests.cs (2)
31IList<SnapLine> snapLines = _toolStripContentPanelDesigner.SnapLines.Cast<SnapLine>().ToList(); 41List<SnapLine> snapLines = _toolStripContentPanelDesigner.SnapLines.Cast<SnapLine>().ToList();
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (5)
36Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 60Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 77Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 84Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 100Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name));
System.Windows.Forms.Tests (1617)
CheckedListBoxTests.cs (4)
285Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 290Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 337Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 345Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>());
System\Windows\Forms\AxWebBrowserTests.cs (2)
40.Cast<PropertyDescriptor>() 46.Cast<EventDescriptor>()
System\Windows\Forms\ColumnHeaderCollectionTests.cs (14)
168using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 189using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 211using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 234using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 256using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 279using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 304using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 721using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 733using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 746using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 760using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 773using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 787using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 803using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>());
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
102comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\ControlTests.ControlCollection.cs (64)
42Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 67Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 82Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 97Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 117Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 143Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 148Assert.Equal(new Control[] { control1, control2 }, owner.Controls.Cast<Control>()); 159Assert.Equal(new Control[] { control2, control1 }, collection.Cast<Control>()); 164Assert.Equal(new Control[] { control2, control1 }, owner.Controls.Cast<Control>()); 174Assert.Equal(new Control[] { control2, control1 }, collection.Cast<Control>()); 195Assert.Same(collection2.Cast<Control>().Last(), e.AffectedControl); 231Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 289Assert.Equal(new Control[] { control1 }, collection.Cast<Control>()); 299Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 313Assert.Equal(new Control[] { control1, control2, control3 }, collection.Cast<Control>()); 1230Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 1244Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 1257Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 1356Assert.Equal(new Control[] { child1, child2, child3 }, sourceCollection.Cast<Control>()); 1357Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 1938Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 1948Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 1958Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2002Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2013Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2024Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2072Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2085Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2098Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2154Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2170Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2186Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 2221Assert.Equal(new Control[] { control1 }, collection1.Cast<Control>()); 2222Assert.Equal(new Control[] { control2 }, collection2.Cast<Control>()); 2228Assert.Equal(new Control[] { control1 }, collection1.Cast<Control>()); 2229Assert.Equal(new Control[] { control2 }, collection2.Cast<Control>()); 2872Assert.Equal(new Control[] { child1 }, collection.Cast<Control>()); 2883Assert.Empty(collection.Cast<Control>()); 2966Assert.Equal(new Control[] { child1, child3 }, collection.Cast<Control>()); 2979Assert.Equal(new Control[] { child1 }, collection.Cast<Control>()); 3025Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3029Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3063Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3073Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3083Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3131Assert.Equal(new Control[] { child2, child3, child1 }, collection.Cast<Control>()); 3141Assert.Equal(new Control[] { child2, child3, child1 }, collection.Cast<Control>()); 3191Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3204Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3217Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3276Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3292Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3308Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3365Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3378Assert.Equal(new Control[] { child2, child1, child3 }, collection.Cast<Control>()); 3391Assert.Equal(new Control[] { child1, child2, child3 }, collection.Cast<Control>()); 3440Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 3467Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 3472Assert.Equal(new Control[] { control1, control2 }, owner.Controls.Cast<Control>()); 3483Assert.Equal(new Control[] { control2, control1 }, collection.Cast<Control>()); 3488Assert.Equal(new Control[] { control2, control1 }, owner.Controls.Cast<Control>()); 3539Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 3549Assert.Equal(new Control[] { child2 }, collection.Cast<Control>()); 3559Assert.Equal(new Control[] { child2 }, collection.Cast<Control>());
System\Windows\Forms\ControlTests.Methods.cs (26)
139Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 154Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 163Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 181Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 203Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 215Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 236Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 264Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 279Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 303Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 326Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 338Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 1549Assert.Equal(new Control[] { child1, child2 }, control.Controls.Cast<Control>()); 1570Assert.Equal(new Control[] { child1, child2 }, control.Controls.Cast<Control>()); 6993Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 7008Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7017Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7035Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 7057Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7069Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7090Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 7118Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7133Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7157Assert.Equal(new Control[] { child1, child2 }, parent.Controls.Cast<Control>()); 7180Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>()); 7192Assert.Equal(new Control[] { child2, child1 }, parent.Controls.Cast<Control>());
System\Windows\Forms\CursorConverterTests.cs (1)
194ICollection<Cursor> values = converter.GetStandardValues().Cast<Cursor>().ToArray();
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (13)
45Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 53Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 73Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 81Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 123Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 131Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 197Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 205Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 231Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 239Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 273Assert.Equal(new DataGridViewColumn[] { column1 }, collection.Cast<DataGridViewColumn>()); 281Assert.Equal(new DataGridViewColumn[] { column1, column2 }, collection.Cast<DataGridViewColumn>()); 292Assert.Equal(new DataGridViewColumn[] { column1, column2, column3 }, collection.Cast<DataGridViewColumn>());
System\Windows\Forms\DataGridViewRowTests.cs (5)
3024Assert.Equal(new DataGridViewRow[] { row2, row1 }, control.SelectedRows.Cast<DataGridViewRow>()); 4074Assert.Null(Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 4104Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5688Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5704Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value);
System\Windows\Forms\DataObjectTests.cs (8)
637dataObject.GetFileDropList().Cast<string>().Should().BeEmpty(); 657dataObject.GetFileDropList().Cast<string>().Should().BeEquivalentTo(expected); 672mockDataObject.Object.GetFileDropList().Cast<string>().Should().BeEquivalentTo(expected); 680dataObject.GetFormats().Cast<string>().Should().BeEmpty(); 1534dataObject.GetData(DataFormats.FileDrop, autoConvert: true).Should().BeEquivalentTo(filePaths.Cast<string>()); 1535dataObject.GetData(DataFormats.FileDrop, autoConvert: false).Should().BeEquivalentTo(filePaths.Cast<string>()); 1536dataObject.GetData("FileName", autoConvert: true).Should().BeEquivalentTo(filePaths.Cast<string>()); 1538dataObject.GetData("FileNameW", autoConvert: true).Should().BeEquivalentTo(filePaths.Cast<string>());
System\Windows\Forms\DomainUpDownTests.cs (12)
667_sub.Items.Cast<string>().Should().Equal(expectedItems); 674_sub.Items.Cast<string>().Should().Equal(expectedItems); 682_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 710_sub.Items.Cast<string>().Should().Equal(expectedItems); 717_sub.Items.Cast<string>().Should().Equal(expectedItems); 725_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 797_sub.Items.Cast<string>().Should().Equal(expectedItems); 807_sub.Items.Cast<string>().Should().Equal(expectedItems); 818_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 848_sub.Items.Cast<string>().Should().Equal(expectedItems); 858_sub.Items.Cast<string>().Should().Equal(expectedItems); 869_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (32)
455Assert.Equal(new string[] { "Key1", "Key2" }, collection.Keys.Cast<string>()); 461Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.Keys.Cast<string>()); 468Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.Keys.Cast<string>()); 475Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 500Assert.Equal(new string[] { "Key1", "Key2" }, collection.Keys.Cast<string>()); 506Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.Keys.Cast<string>()); 513Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.Keys.Cast<string>()); 520Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 544Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 569Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 613Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 638Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 670Assert.Equal(new string[] { "Key1", "Key2" }, collection.Keys.Cast<string>()); 676Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.Keys.Cast<string>()); 683Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.Keys.Cast<string>()); 690Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 715Assert.Equal(new string[] { "Key1", "Key2" }, collection.Keys.Cast<string>()); 721Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.Keys.Cast<string>()); 728Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.Keys.Cast<string>()); 735Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 759Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 784Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 825Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 832Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 850Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 857Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 914Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 932Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 1550Assert.Equal(expectedKeys, collection.Keys.Cast<string>()); 1555Assert.Equal(expectedKeys, collection.Keys.Cast<string>()); 1572Assert.Equal(expectedKeys, collection.Keys.Cast<string>()); 1577Assert.Equal(expectedKeys, collection.Keys.Cast<string>());
System\Windows\Forms\InputLanguageTests.cs (1)
19Assert.All(collection.Cast<InputLanguage>(), VerifyInputLanguage);
System\Windows\Forms\ListBindingHelperTests.cs (55)
291IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list)?.Cast<PropertyDescriptor>(); 295properties = ListBindingHelper.GetListItemProperties(list, null)?.Cast<PropertyDescriptor>(); 299properties = ListBindingHelper.GetListItemProperties(list, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 303properties = ListBindingHelper.GetListItemProperties(list, null, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 307properties = ListBindingHelper.GetListItemProperties(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 313yield return new object[] { null, TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 315yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 316yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 318yield return new object[] { new ListDataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 319yield return new object[] { new ListDataClass() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 320yield return new object[] { typeof(ListDataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 322yield return new object[] { new MultiListDataClass(), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 323yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] }, TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().Take(0).ToArray(), new string[] { "ParentListProperty" } }; 327yield return new object[] { typeof(MultiListDataClass), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 329yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 334PropertyDescriptor[] descriptors = TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(); 364yield return new object[] { new EnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 365yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 366yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 367yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 372yield return new object[] { new NonEnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 373yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 374yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 375yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 379yield return new object[] { new ITypedListDataClass(), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 380yield return new object[] { typedListDataClass, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 381yield return new object[] { typeof(ITypedListDataClass), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 382yield return new object[] { new ITypedListDataClass[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 383yield return new object[] { new ITypedListDataClass[] { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 384yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 385yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 386yield return new object[] { new ArrayList { new ITypedListDataClass() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 387yield return new object[] { new ArrayList { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 388yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 389yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 390yield return new object[] { typeof(ITypedListDataClass[]), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 393yield return new object[] { new ITypedListParent(), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 394yield return new object[] { typedListParent, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 395yield return new object[] { new ITypedListParent[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 396yield return new object[] { new ITypedListParent[] { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 397yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 398yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 399yield return new object[] { new ArrayList { new ITypedListParent() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 400yield return new object[] { new ArrayList { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 401yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 402yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 409IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list, listAccessors)?.Cast<PropertyDescriptor>(); 413properties = ListBindingHelper.GetListItemProperties(list, null, listAccessors)?.Cast<PropertyDescriptor>(); 417properties = ListBindingHelper.GetListItemProperties(list, string.Empty, listAccessors)?.Cast<PropertyDescriptor>(); 425yield return new object[] { new MultiListDataClass(), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 428yield return new object[] { typeof(MultiListDataClass), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 435IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list, dataMember, listAccessors)?.Cast<PropertyDescriptor>(); 456Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 457Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 458Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (156)
93Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 99Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 105Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 119Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 120Assert.Equal(new int[] { 4, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 125Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 126Assert.Equal(new int[] { 4, 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 131Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 132Assert.Equal(new int[] { 4, 1, 4 }, owner.CustomTabOffsets.Cast<int>()); 152Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 161Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 170Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 194Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 195Assert.Equal(new int[] { 4, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 203Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 204Assert.Equal(new int[] { 4, 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 212Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 213Assert.Equal(new int[] { 4, 1, 4 }, owner.CustomTabOffsets.Cast<int>()); 262Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 269Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 276Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 283Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 305Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 306Assert.Equal(new int[] { 2 }, owner.CustomTabOffsets.Cast<int>()); 312Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 313Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 319Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 320Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 326Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 327Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 355Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 365Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 375Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 385Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 417Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 418Assert.Equal(new int[] { 2 }, owner.CustomTabOffsets.Cast<int>()); 427Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 428Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 437Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 438Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 447Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 448Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 471Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 478Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 499Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 500Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 506Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 507Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 534Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 544Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 575Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 576Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 585Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 586Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 612Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 619Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 643Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 644Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 650Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 651Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 681Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 691Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 725Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 726Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 735Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 736Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 1109Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1116Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1153Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1154Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1160Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1161Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 1204Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1214Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1267Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1268Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1277Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1278Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 1323Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1330Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1360Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1361Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1367Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1368Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 1404Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1414Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1457Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 1458Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1467Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 1468Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 1566Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 1572Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 1578Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 1595Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 1596Assert.Equal(new int[] { 4, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 1601Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 1602Assert.Equal(new int[] { 4, 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1607Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 1608Assert.Equal(new int[] { 4, 1, 4 }, owner.CustomTabOffsets.Cast<int>()); 1633Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 1642Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 1651Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 1678Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 1679Assert.Equal(new int[] { 4, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 1687Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 1688Assert.Equal(new int[] { 4, 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 1696Assert.Equal(new int[] { 4, 1, 4 }, collection.Cast<int>()); 1697Assert.Equal(new int[] { 4, 1, 4 }, owner.CustomTabOffsets.Cast<int>()); 1760Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 1767Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1774Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1781Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 1803Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 1804Assert.Equal(new int[] { 2 }, owner.CustomTabOffsets.Cast<int>()); 1810Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1811Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 1817Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1818Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 1824Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 1825Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 1853Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 1863Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1873Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1883Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 1915Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 1916Assert.Equal(new int[] { 2 }, owner.CustomTabOffsets.Cast<int>()); 1925Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1926Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 1935Assert.Equal(new int[] { 1, 2 }, collection.Cast<int>()); 1936Assert.Equal(new int[] { 1, 2 }, owner.CustomTabOffsets.Cast<int>()); 1945Assert.Equal(new int[] { 1, 2, 3 }, collection.Cast<int>()); 1946Assert.Equal(new int[] { 1, 2, 3 }, owner.CustomTabOffsets.Cast<int>()); 2346Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2353Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2393Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2394Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 2400Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2401Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 2449Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2459Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2515Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2516Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 2525Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2526Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 2586Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2593Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2626Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2627Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 2633Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2634Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>()); 2675Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2685Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2731Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 2732Assert.Equal(new int[] { 1, 3 }, owner.CustomTabOffsets.Cast<int>()); 2741Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 2742Assert.Equal(new int[] { 1 }, owner.CustomTabOffsets.Cast<int>());
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (988)
27Assert.Equal(new object[] { 3, 2, 1 }, collection.Cast<object>()); 40Assert.Equal(new object[] { 3, 2, 1 }, collection.Cast<object>()); 169Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 176Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 183Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 190Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 210Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 217Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 224Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 231Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 248Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 249Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 255Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 256Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 262Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 263Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 269Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 270Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 289Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 290Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 296Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 297Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 303Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 304Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 310Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 311Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 512Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 513Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 529Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 530Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 546Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 547Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 563Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 564Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 601Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 602Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 618Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 619Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 635Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 636Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 652Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 653Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 683Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 684Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 691Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 692Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 699Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 700Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 707Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 708Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 732Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 733Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 740Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 741Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 748Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 749Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 756Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 757Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 785Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 786Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 793Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 794Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 801Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 802Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 809Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 810Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 817Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 818Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 825Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 826Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 855Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 856Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 863Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 864Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 871Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 872Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 879Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 880Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 887Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 888Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 895Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 896Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 929Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 930Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 940Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 941Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 951Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 952Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 962Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 963Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1002Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1003Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1013Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1014Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1024Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1025Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1035Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1036Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1079Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1080Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1090Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1091Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1101Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 1102Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1112Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 1113Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1123Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1124Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1134Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1135Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1179Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1180Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1190Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1191Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1201Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 1202Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1212Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 1213Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1223Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1224Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1234Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 1235Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1307Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1315Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 1323Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 1331Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 1348Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1349Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 1356Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 1357Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 1364Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 1365Assert.Equal(new object[] { 2, 1, 1 }, owner.Items.Cast<object>()); 1372Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 1373Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 1392Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1400Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 1408Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 1416Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 1436Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1437Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 1444Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 1445Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 1452Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 1453Assert.Equal(new object[] { 1, 1, 2 }, owner.Items.Cast<object>()); 1460Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 1461Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 1483Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1496Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 1511Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 1528Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 1562Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1563Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 1575Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 1576Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 1590Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 1591Assert.Equal(new object[] { 2, 1, 1 }, owner.Items.Cast<object>()); 1607Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 1608Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 1644Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1657Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 1672Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 1689Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 1726Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 1727Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 1739Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 1740Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 1754Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 1755Assert.Equal(new object[] { 1, 1, 2 }, owner.Items.Cast<object>()); 1771Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 1772Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 1802Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1803Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 1810Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1811Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 1834Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1835Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1842Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1843Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 1870Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1871Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 1878Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1879Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 1886Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1887Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 1914Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1915Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 1921Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1922Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 1928Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 1929Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 1955Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1956Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 1966Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 1967Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 2000Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2001Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2011Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2012Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2049Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2050Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2060Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2061Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2071Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2072Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2109Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2110Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 2120Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2121Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2131Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2132Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2225Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2233Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2249Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2250Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2257Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2258Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2276Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2284Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2303Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2304Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 2311Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2312Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 2333Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2352Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2385Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2386Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2404Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2405Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2440Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2459Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2495Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2496Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 2514Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2515Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 2544Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2545Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 2552Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2553Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 2575Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2576Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2583Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2584Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2610Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2611Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2618Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2619Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2645Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2646Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2652Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2653Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2678Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2679Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 2689Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2690Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 2722Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2723Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2733Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 2734Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 2770Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2771Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2781Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2782Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 2818Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2819Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2829Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 2830Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 2882Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2892Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2911Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2912Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2921Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 2922Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 2943Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2953Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2975Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2976Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 2985Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 2986Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 3010Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 3031Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 3067Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 3068Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 3088Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 3089Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 3127Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 3148Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 3187Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 3188Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 3208Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 3209Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 3241Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3242Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 3251Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3252Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 3277Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3278Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 3287Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3288Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 3317Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3318Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 3327Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3328Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 3357Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3358Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 3366Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3367Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 3395Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3396Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 3408Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3409Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 3444Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3445Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 3457Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 3458Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 3497Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3498Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 3510Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3511Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 3550Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3551Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 3563Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 3564Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 3627Assert.Equal(new object[] { 1, 1 }, collection.Cast<object>()); 3640Assert.Equal(new object[] { 1, 2, 1 }, collection.Cast<object>()); 4130Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4138Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 4146Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 4154Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 4171Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4172Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 4179Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 4180Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 4187Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 4188Assert.Equal(new object[] { 2, 2, 1 }, owner.Items.Cast<object>()); 4195Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 4196Assert.Equal(new object[] { 2, 2, 1, 3 }, owner.Items.Cast<object>()); 4215Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4223Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 4231Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 4239Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 4259Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4260Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 4267Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 4268Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 4275Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 4276Assert.Equal(new object[] { 1, 2, 2 }, owner.Items.Cast<object>()); 4283Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 4284Assert.Equal(new object[] { 1, 2, 2, 3 }, owner.Items.Cast<object>()); 4306Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4319Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 4334Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 4351Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 4385Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4386Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 4398Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 4399Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 4413Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 4414Assert.Equal(new object[] { 2, 2, 1 }, owner.Items.Cast<object>()); 4430Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 4431Assert.Equal(new object[] { 2, 2, 1, 3 }, owner.Items.Cast<object>()); 4467Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4480Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 4495Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 4512Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 4549Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 4550Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 4562Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 4563Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 4577Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 4578Assert.Equal(new object[] { 1, 2, 2 }, owner.Items.Cast<object>()); 4594Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 4595Assert.Equal(new object[] { 1, 2, 2, 3 }, owner.Items.Cast<object>()); 4625Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4626Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 4633Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4634Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 4655Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4656Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 4661Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4662Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 4687Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4688Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4695Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4696Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4703Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4704Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4729Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4730Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 4736Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4737Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 4743Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4744Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 4770Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4771Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 4781Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4782Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 4815Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4816Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 4826Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 4827Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 4864Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4865Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4875Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4876Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4886Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4887Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 4924Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4925Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 4935Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4936Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 4946Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 4947Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 5069Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5077Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5085Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 5113Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5114Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 5120Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5121Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 5127Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 5128Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 5159Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5167Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5175Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 5206Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5207Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 5213Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5214Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 5220Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 5221Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 5253Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5268Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5283Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 5327Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5328Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 5343Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 5344Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 5359Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 5360Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 5405Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5420Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5435Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 5482Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5483Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 5498Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 5499Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 5514Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 5515Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 5552Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5553Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5560Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5561Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5593Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5594Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5601Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5602Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5638Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5639Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5646Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5647Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5654Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 5655Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5690Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5691Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5698Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5699Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5706Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 5707Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5747Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5748Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5758Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5759Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5809Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5810Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5820Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 5821Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5870Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5871Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5880Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5881Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5890Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 5891Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 5938Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5939Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5948Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 5949Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 5958Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 5959Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6016Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 6024Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 6052Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 6053Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 6059Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 6060Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 6091Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 6099Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 6130Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 6131Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 6137Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 6138Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 6170Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 6185Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 6229Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 6230Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 6245Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 6246Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 6291Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 6306Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 6353Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 6354Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 6369Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 6370Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 6407Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6408Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6415Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6416Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6448Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6449Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6456Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6457Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6493Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6494Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6501Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6502Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6509Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 6510Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6545Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6546Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6553Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6554Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6561Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 6562Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6602Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6603Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6613Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6614Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6664Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6665Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6675Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 6676Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6725Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6726Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6735Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6736Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6745Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 6746Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6793Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6794Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6803Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 6804Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 6813Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 6814Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 6958Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 6965Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 6972Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 6979Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 7003Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 7010Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 7017Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7024Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7043Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 7044Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 7050Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 7051Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 7057Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 7058Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 7064Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 7065Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 7086Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 7087Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 7093Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 7094Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 7100Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7101Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 7107Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7108Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 7315Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 7316Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 7332Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 7333Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 7349Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 7350Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 7366Assert.Equal(new int[] { 4, 2, 5 }, collection.Cast<int>()); 7367Assert.Equal(new int[] { 4, 2, 5 }, owner.Items.Cast<int>()); 7406Assert.Equal(new int[] { 4, 2, 3 }, collection.Cast<int>()); 7407Assert.Equal(new int[] { 4, 2, 3 }, owner.Items.Cast<int>()); 7423Assert.Equal(new int[] { 4, 1, 3 }, collection.Cast<int>()); 7424Assert.Equal(new int[] { 4, 1, 3 }, owner.Items.Cast<int>()); 7440Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7441Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 7457Assert.Equal(new int[] { 4, 1, 5 }, collection.Cast<int>()); 7458Assert.Equal(new int[] { 4, 1, 5 }, owner.Items.Cast<int>()); 7488Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7489Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7496Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7497Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7504Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7505Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7512Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7513Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7537Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7538Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7545Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7546Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7553Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7554Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7561Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7562Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7590Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7591Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7598Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7599Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7606Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7607Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7614Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7615Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7622Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 7623Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7630Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 7631Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7660Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7661Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7668Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7669Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7676Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7677Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7684Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7685Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7692Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 7693Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7700Assert.Equal(new object[] { 2, 4 }, owner.SelectedItems.Cast<object>()); 7701Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7734Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7735Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7745Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7746Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7756Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7757Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7767Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7768Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7807Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7808Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7818Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 7819Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7829Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7830Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7840Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7841Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7884Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7885Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7895Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7896Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7906Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7907Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7917Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 7918Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7928Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7929Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7939Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 7940Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 7984Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7985Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 7995Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 7996Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 8006Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 8007Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 8017Assert.Equal(new object[] { 2, 3 }, owner.SelectedItems.Cast<object>()); 8018Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 8028Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 8029Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8039Assert.Equal(new object[] { 2 }, owner.SelectedItems.Cast<object>()); 8040Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8112Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8120Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 8128Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 8136Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 8153Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8154Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 8161Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 8162Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 8169Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 8170Assert.Equal(new object[] { 2, 1, 1 }, owner.Items.Cast<object>()); 8177Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 8178Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 8197Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8205Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 8213Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 8221Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 8241Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8242Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 8249Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 8250Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 8257Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 8258Assert.Equal(new object[] { 1, 1, 2 }, owner.Items.Cast<object>()); 8265Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 8266Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 8288Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8301Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 8316Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 8333Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 8367Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8368Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 8380Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 8381Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 8395Assert.Equal(new object[] { 2, 1, 1 }, collection.Cast<object>()); 8396Assert.Equal(new object[] { 2, 1, 1 }, owner.Items.Cast<object>()); 8412Assert.Equal(new object[] { 2, 1, 1, 3 }, collection.Cast<object>()); 8413Assert.Equal(new object[] { 2, 1, 1, 3 }, owner.Items.Cast<object>()); 8449Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8462Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 8477Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 8494Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 8531Assert.Equal(new object[] { 2 }, collection.Cast<object>()); 8532Assert.Equal(new object[] { 2 }, owner.Items.Cast<object>()); 8544Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 8545Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 8559Assert.Equal(new object[] { 1, 1, 2 }, collection.Cast<object>()); 8560Assert.Equal(new object[] { 1, 1, 2 }, owner.Items.Cast<object>()); 8576Assert.Equal(new object[] { 1, 1, 2, 3 }, collection.Cast<object>()); 8577Assert.Equal(new object[] { 1, 1, 2, 3 }, owner.Items.Cast<object>()); 8607Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8608Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 8615Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8616Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 8639Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8640Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8647Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8648Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8675Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8676Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8683Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8684Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8691Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8692Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8719Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8720Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 8726Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8727Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 8733Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8734Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 8760Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8761Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 8771Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8772Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 8805Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8806Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8816Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 8817Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 8854Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8855Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8865Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8866Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8876Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8877Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 8914Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8915Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 8925Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8926Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 8936Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 8937Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 9452Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9460Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 9468Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 9476Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 9493Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9494Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 9501Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 9502Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 9509Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 9510Assert.Equal(new object[] { 2, 2, 1 }, owner.Items.Cast<object>()); 9517Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 9518Assert.Equal(new object[] { 2, 2, 1, 3 }, owner.Items.Cast<object>()); 9537Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9545Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 9553Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 9561Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 9581Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9582Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 9589Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 9590Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 9597Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 9598Assert.Equal(new object[] { 1, 2, 2 }, owner.Items.Cast<object>()); 9605Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 9606Assert.Equal(new object[] { 1, 2, 2, 3 }, owner.Items.Cast<object>()); 9628Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9641Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 9656Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 9673Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 9707Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9708Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 9720Assert.Equal(new object[] { 2, 1 }, collection.Cast<object>()); 9721Assert.Equal(new object[] { 2, 1 }, owner.Items.Cast<object>()); 9735Assert.Equal(new object[] { 2, 2, 1 }, collection.Cast<object>()); 9736Assert.Equal(new object[] { 2, 2, 1 }, owner.Items.Cast<object>()); 9752Assert.Equal(new object[] { 2, 2, 1, 3 }, collection.Cast<object>()); 9753Assert.Equal(new object[] { 2, 2, 1, 3 }, owner.Items.Cast<object>()); 9789Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9802Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 9817Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 9834Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 9871Assert.Equal(new object[] { 1 }, collection.Cast<object>()); 9872Assert.Equal(new object[] { 1 }, owner.Items.Cast<object>()); 9884Assert.Equal(new object[] { 1, 2 }, collection.Cast<object>()); 9885Assert.Equal(new object[] { 1, 2 }, owner.Items.Cast<object>()); 9899Assert.Equal(new object[] { 1, 2, 2 }, collection.Cast<object>()); 9900Assert.Equal(new object[] { 1, 2, 2 }, owner.Items.Cast<object>()); 9916Assert.Equal(new object[] { 1, 2, 2, 3 }, collection.Cast<object>()); 9917Assert.Equal(new object[] { 1, 2, 2, 3 }, owner.Items.Cast<object>()); 9947Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 9948Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 9955Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 9956Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 9977Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 9978Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 9983Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 9984Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 10009Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10010Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10017Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10018Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10025Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10026Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10051Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10052Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 10058Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10059Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 10065Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10066Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 10092Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10093Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10103Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10104Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10137Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10138Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 10148Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10149Assert.Equal(new int[] { 1 }, owner.SelectedIndices.Cast<int>()); 10186Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10187Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10197Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10198Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10208Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10209Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10246Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10247Assert.Equal(new int[] { 1, 2 }, owner.SelectedIndices.Cast<int>()); 10257Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10258Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 10268Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10269Assert.Equal(new int[] { 1, 3 }, owner.SelectedIndices.Cast<int>()); 10391Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10399Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10407Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 10435Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10436Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 10442Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10443Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 10449Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 10450Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 10481Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10489Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10497Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 10528Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10529Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 10535Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10536Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 10542Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 10543Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 10575Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10590Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10605Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 10649Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10650Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 10665Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 10666Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 10681Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 10682Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 10727Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10742Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10757Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 10804Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10805Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 10820Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 10821Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 10836Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 10837Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 10874Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10875Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10882Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10883Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10915Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10916Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10923Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 10924Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 10960Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10961Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10968Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 10969Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 10976Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 10977Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11012Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11013Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11020Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11021Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11028Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 11029Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11069Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11070Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11080Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11081Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11131Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11132Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11142Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11143Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11192Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11193Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11202Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11203Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11212Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 11213Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11260Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11261Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11270Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11271Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11280Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 11281Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11338Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 11346Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 11374Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 11375Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 11381Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 11382Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 11413Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 11421Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 11452Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 11453Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 11459Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 11460Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 11492Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 11507Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 11551Assert.Equal(new int[] { 2, 3 }, collection.Cast<int>()); 11552Assert.Equal(new int[] { 2, 3 }, owner.Items.Cast<int>()); 11567Assert.Equal(new int[] { 2 }, collection.Cast<int>()); 11568Assert.Equal(new int[] { 2 }, owner.Items.Cast<int>()); 11613Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 11628Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 11675Assert.Equal(new int[] { 1, 3 }, collection.Cast<int>()); 11676Assert.Equal(new int[] { 1, 3 }, owner.Items.Cast<int>()); 11691Assert.Equal(new int[] { 1 }, collection.Cast<int>()); 11692Assert.Equal(new int[] { 1 }, owner.Items.Cast<int>()); 11729Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11730Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11737Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11738Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11770Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11771Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11778Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11779Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11815Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11816Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11823Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11824Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11831Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 11832Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11867Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11868Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11875Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 11876Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 11883Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 11884Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11924Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11925Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11935Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11936Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11986Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11987Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 11997Assert.Equal(new object[] { 1 }, owner.SelectedItems.Cast<object>()); 11998Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 12047Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 12048Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 12057Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 12058Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 12067Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 12068Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>()); 12115Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 12116Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 12125Assert.Equal(new object[] { 1, 3 }, owner.SelectedItems.Cast<object>()); 12126Assert.Equal(new int[] { 0, 1 }, owner.SelectedIndices.Cast<int>()); 12135Assert.Equal(new object[] { 3 }, owner.SelectedItems.Cast<object>()); 12136Assert.Equal(new int[] { 0 }, owner.SelectedIndices.Cast<int>());
System\Windows\Forms\ListBoxTests.cs (55)
1089Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<object>()); 1097Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<object>()); 1178Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<object>()); 1189Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<object>()); 1516Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 1522Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 1528Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 1612Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 1621Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 1630Assert.Equal(new string[] { "item1", "item2", "item1" }, control.Items.Cast<string>()); 2422Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 2423Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<string>()); 2597Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 2598Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<string>()); 2904Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 2905Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<string>()); 3110Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3111Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<string>()); 3314Assert.Equal(new int[] { 2 }, control.SelectedIndices.Cast<int>()); 3320Assert.Equal(new int[] { 0, 2 }, control.SelectedIndices.Cast<int>()); 3511Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3512Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3520Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3521Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3529Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3530Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3553Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3554Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3562Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3563Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3571Assert.Equal(new int[] { 0, 1 }, control.SelectedIndices.Cast<int>()); 3572Assert.Equal(new string[] { "item1", "item2" }, control.SelectedItems.Cast<object>()); 3974Assert.Equal(expected, control.Items.Cast<string>()); 3980Assert.Equal(expected, control.Items.Cast<string>()); 3986Assert.Equal(new string[] { "item1", "item2" }, control.Items.Cast<string>()); 4088Assert.Equal(expected, control.Items.Cast<string>()); 4097Assert.Equal(expected, control.Items.Cast<string>()); 4106Assert.Equal(new string[] { "item1", "item2" }, control.Items.Cast<string>()); 4561Assert.Equal(new string[] { "item1", "item2" }, control.Items.Cast<object>()); 4566Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 4571Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 4576Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 4594Assert.Equal(new string[] { "item1", "item2" }, control.Items.Cast<object>()); 4602Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 4610Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 4618Assert.Equal(new string[] { "item1", "item2", "item3" }, control.Items.Cast<object>()); 5904Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 5909Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 5956Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 5964Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>()); 6021Assert.Equal(value, control.Items.Cast<object>()); 6026Assert.Equal(value, control.Items.Cast<object>()); 6044Assert.Equal(value, control.Items.Cast<object>()); 6052Assert.Equal(value, control.Items.Cast<object>()); 6074Assert.Equal(new object[] { "item1", "item2" }, control.Items.Cast<object>());
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
165Assert.Same(oldGroup, Assert.Single(collection.Cast<ListViewGroup>())); 380Assert.Equal(new ListViewGroup[] { group1, group2 }, collection.Cast<ListViewGroup>()); 399Assert.Equal(new ListViewGroup[] { group1, group2 }, collection.Cast<ListViewGroup>()); 509ListViewGroup group = Assert.Single(collection.Cast<ListViewGroup>()); 589Assert.Same(group, Assert.Single(collection.Cast<ListViewGroup>()));
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
283Assert.Equal(expected, converter.GetStandardValues(mockContext.Object)?.Cast<object>());
System\Windows\Forms\ListViewGroupTests.cs (2)
1350Assert.Equal(group.Items.Cast<ListViewItem>().Select(i => i.Text), result.Items.Cast<ListViewItem>().Select(i => i.Text));
System\Windows\Forms\ListViewItemTests.cs (23)
33ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 72AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 110AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 148AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 186AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 223AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 260AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 298AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 336AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 373ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 411ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 449AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 486AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 524AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 562AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 600AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 637ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 675ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 713ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 750ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 789AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 819ListViewItem.ListViewSubItem subItem = Assert.Single(item.SubItems.Cast<ListViewItem.ListViewSubItem>()); 1057ListViewItem.ListViewSubItem subItem = Assert.Single(actual.Cast<ListViewItem.ListViewSubItem>());
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
250ListViewItem.ListViewSubItem subItem = Assert.Single(collection.Cast<ListViewItem.ListViewSubItem>()); 271ListViewItem.ListViewSubItem subItem = Assert.Single(collection.Cast<ListViewItem.ListViewSubItem>());
System\Windows\Forms\ListViewTests.cs (2)
878Assert.Equal(new ListViewItem[] { item1, item2 }, listView.Items.Cast<ListViewItem>()); 1051Assert.Equal(new ListViewItem[] { item1, item2 }, listView.Items.Cast<ListViewItem>());
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (3)
73Assert.Equal(expected, converter.GetStandardValues(null).Cast<Environment.SpecialFolder>()); 82Assert.Equal(new Environment.SpecialFolder[] { Environment.SpecialFolder.Personal }, converter.GetStandardValues(null).Cast<Environment.SpecialFolder>()); 91Assert.Equal(new CustomEnum[] { CustomEnum.Value }, converter.GetStandardValues(null).Cast<CustomEnum>());
System\Windows\Forms\TabControl.ControlCollectionTests.cs (28)
86Assert.Equal(new Control[] { value1, value2 }, collection.Cast<Control>()); 87Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 114Assert.Equal(new Control[] { value2, value1 }, collection.Cast<Control>()); 115Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 225Assert.Equal(new Control[] { value1, value2 }, collection.Cast<Control>()); 226Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 266Assert.Equal(new Control[] { value2, value1 }, collection.Cast<Control>()); 267Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 386Assert.Equal(new Control[] { value1, value2 }, collection.Cast<Control>()); 387Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 420Assert.Equal(new Control[] { value2, value1 }, collection.Cast<Control>()); 421Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 543Assert.Equal(new Control[] { value1, value2 }, collection.Cast<Control>()); 544Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 590Assert.Equal(new Control[] { value2, value1 }, collection.Cast<Control>()); 591Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 741Assert.Equal(items, collection.Cast<Control>()); 742Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 1367Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 1372Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 1377Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 1405Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 1410Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 1415Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 1436Assert.Equal(items, collection.Cast<Control>()); 1437Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 1445Assert.Equal(items, collection.Cast<Control>()); 1446Assert.Equal(items, owner.TabPages.Cast<TabPage>());
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (90)
72Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 73Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 74Assert.Equal(new Control[] { value1, value2 }, owner.Controls.Cast<Control>()); 101Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 102Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 103Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 214Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 215Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 216Assert.Equal(new Control[] { value1, value2 }, owner.Controls.Cast<Control>()); 256Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 257Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 258Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 378Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 379Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 380Assert.Equal(new Control[] { value1, value2 }, owner.Controls.Cast<Control>()); 413Assert.Equal(new TabPage[] { value1, value2, value1, }, collection.Cast<TabPage>()); 414Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 415Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 538Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 539Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 540Assert.Equal(new Control[] { value1, value2 }, owner.Controls.Cast<Control>()); 586Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 587Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 588Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 744Assert.Equal(items, collection.Cast<TabPage>()); 745Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 746Assert.Equal(items, owner.Controls.Cast<Control>()); 1019Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 1020Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 1047Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 1048Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 1114Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>()); 1126Assert.Equal(new TabPage[] { child1, child2, child3, child1, child2, child3 }, collection.Cast<TabPage>()); 1139Assert.Equal(new TabPage[] { child1, child2, child3, child1, child2, child3 }, collection.Cast<TabPage>()); 2014Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2015Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2016Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2045Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2046Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2047Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2151Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2152Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2153Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2195Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2196Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2197Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2321Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2322Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2323Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2358Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2359Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2360Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2487Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2488Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2489Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2537Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2538Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2539Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 2694Assert.Equal(items, collection.Cast<TabPage>()); 2695Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 2696Assert.Equal(items, owner.Controls.Cast<TabPage>()); 3060Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 3061Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 3062Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 3091Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 3092Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 3093Assert.Equal(new Control[] { value2, value1 }, owner.Controls.Cast<Control>()); 3378Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3423Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3463Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3519Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3777Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3821Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3860Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 3915Assert.Equal(new Control[] { page1, page2, page3 }, owner.Controls.Cast<Control>()); 4471Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 4476Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 4481Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 4511Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 4516Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 4521Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 4542Assert.Equal(items, collection.Cast<TabPage>()); 4543Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 4551Assert.Equal(items, collection.Cast<TabPage>()); 4552Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 4838Assert.Equal(new TabPage[] { child1 }, collection.Cast<TabPage>()); 4932Assert.Equal(new TabPage[] { child1, child3 }, collection.Cast<TabPage>()); 4945Assert.Equal(new TabPage[] { child1 }, collection.Cast<TabPage>()); 4991Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>()); 4995Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>());
System\Windows\Forms\TabControlTests.cs (8)
2134Assert.Equal(expectedVisible, control.TabPages.Cast<TabPage>().Select(p => p.Visible)); 2143Assert.Equal(expectedVisible, control.TabPages.Cast<TabPage>().Select(p => p.Visible)); 4889Assert.Equal(new Control[] { page1, page2 }, control.Controls.Cast<Control>()); 4890Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>()); 4897Assert.Equal(new Control[] { page1, page2 }, control.Controls.Cast<Control>()); 4898Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>()); 4906Assert.Equal(new Control[] { page1, page2 }, control.Controls.Cast<Control>()); 4907Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>());
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (6)
36Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 62Assert.Equal(new Control[] { control1, control2 }, collection.Cast<Control>()); 67Assert.Equal(new Control[] { control1, control2 }, owner.Controls.Cast<Control>()); 78Assert.Equal(new Control[] { control2, control1 }, collection.Cast<Control>()); 83Assert.Equal(new Control[] { control2, control1 }, owner.Controls.Cast<Control>()); 93Assert.Equal(new Control[] { control2, control1 }, collection.Cast<Control>());
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
187_toolStripComboBox.Items.Cast<string>().Should().Contain(items);
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
341Assert.Equal(expectedDropDownItems, item.DropDownItems.Cast<ToolStripItem>());
System\Windows\Forms\ToolStripDropDownTests.cs (2)
3580Assert.Equal(new ToolStripItem[] { item1, item2 }, control.Items.Cast<ToolStripItem>()); 3599Assert.Equal(new ToolStripItem[] { item1, item2 }, control.Items.Cast<ToolStripItem>());
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
164toolStripSplitButton.DropDownItems.Cast<ToolStripItem>().Should().ContainInOrder(new[] { item1, item2 });
System\Windows\Forms\ToolStripTests.cs (3)
273Assert.Equal(items, control.Items.Cast<ToolStripItem>()); 4734Assert.Equal(new ToolStripItem[] { item1, item2 }, control.Items.Cast<ToolStripItem>()); 4753Assert.Equal(new ToolStripItem[] { item1, item2 }, control.Items.Cast<ToolStripItem>());
System\Windows\Forms\TreeNodeTests.cs (2)
125Assert.Equal(children, node.Nodes.Cast<TreeNode>()); 216Assert.Equal(children, node.Nodes.Cast<TreeNode>());
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
104var originalPages = tabControl.TabPages.Cast<TabPage>().ToArray();
XmlFileLogger (2)
LogProcessNode.cs (1)
117return _childNodes.ContainsKey(t) ? _childNodes[t].Cast<T>() : new List<T>();
ObjectModel\Project.cs (1)
132Properties.AddProperties(projectStartedEventArgs.Properties.Cast<DictionaryEntry>());
xunit.assert (9)
CollectionAsserts.cs (2)
629 return Single(collection.Cast<object>()); 652 GetSingleResult(collection.Cast<object>(), item => object.Equals(item, expected), ArgumentFormatter.Format(expected));
Sdk\AssertHelper.cs (2)
561 var expectedValues = expected.Cast<object?>().ToList(); 562 var actualValues = actual.Cast<object?>().ToList();
Sdk\CollectionTracker.cs (5)
201 var dictionaryYKeys = new HashSet<object>(dictionaryY.Keys.Cast<object>()); 208 foreach (var key in dictionaryX.Keys.Cast<object>()) 344 var setX = new HashSet<object>(enumX.Cast<object>()); 345 var setY = new HashSet<object>(enumY.Cast<object>()); 452 new CollectionTracker<object>(enumerable, enumerable.Cast<object>());
xunit.console (2)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (2)
108CreateLibraries(compileTarget?.Libraries, false, libraryStubs).Cast<CompilationLibrary>().ToArray(), 109CreateLibraries(runtimeTarget.Libraries, true, libraryStubs).Cast<RuntimeLibrary>().ToArray(),
Xunit.NetCore.Extensions (1)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
39.Cast<AssemblyFixtureAttribute>()