12952 references to Same
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureAIOpenAIExtensionsTests.cs (1)
52Assert.Same(azureClient, unbrandedClient);
Aspire.Components.Common.Tests (3)
ConformanceTests.cs (3)
197Assert.Same(serviceFromFirstScope, serviceFromSecondScope); 198Assert.Same(serviceFromSecondScope, secondServiceFromSecondScope); 202Assert.Same(serviceFromSecondScope, secondServiceFromSecondScope);
Aspire.Dashboard.Tests (2)
Model\ResourceViewModelTests.cs (2)
108Assert.Same(kp, p.Value.KnownProperty); 118Assert.Same(kp, p.Value.KnownProperty);
Aspire.Hosting.Tests (2)
Dashboard\DashboardResourceTests.cs (2)
105Assert.Same(container.Resource, dashboard); 521Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, annotation);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
EnrichSqlServerTests.cs (1)
169Assert.Same(oldOptionsDescriptor, optionsDescriptor);
Aspire.MySqlConnector.Tests (1)
ConformanceTests.cs (1)
115Assert.Same(mySqlDataSource, dbDataSource);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
EnrichNpgsqlTests.cs (1)
174Assert.Same(oldOptionsDescriptor, optionsDescriptor);
Aspire.Npgsql.Tests (1)
ConformanceTests.cs (1)
117Assert.Same(npgsqlDataSource, dbDataSource);
Aspire.Oracle.EntityFrameworkCore.Tests (1)
EnrichOracleDatabaseTests.cs (1)
170Assert.Same(oldOptionsDescriptor, optionsDescriptor);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
EnrichMySqlTests.cs (1)
183Assert.Same(oldOptionsDescriptor, optionsDescriptor);
Client.ChannelLayer.IntegrationTests (2)
DuplexChannelWithSynchronizationContext.cs (2)
62Assert.Same(syncCtx, callbackSyncContext); 126Assert.Same(syncCtx, callbackSyncContext);
IIS.Tests (2)
MaxRequestBodySizeTests.cs (2)
362Assert.Same(thrownError, appErrorLog.Exception); 363Assert.Same(thrownError, badRequestLog.Exception);
InMemory.FunctionalTests (34)
EventSourceTests.cs (20)
87Assert.Same(KestrelEventSource.Log, connectionStart.EventSource); 95Assert.Same(KestrelEventSource.Log, firstRequestStart.EventSource); 103Assert.Same(KestrelEventSource.Log, firstRequestStop.EventSource); 113Assert.Same(KestrelEventSource.Log, secondRequestStart.EventSource); 121Assert.Same(KestrelEventSource.Log, secondRequestStop.EventSource); 130Assert.Same(KestrelEventSource.Log, connectionStop.EventSource); 211Assert.Same(KestrelEventSource.Log, connectionStart.EventSource); 219Assert.Same(KestrelEventSource.Log, tlsHandshakeStart.EventSource); 228Assert.Same(KestrelEventSource.Log, tlsHandshakeStop.EventSource); 239Assert.Same(KestrelEventSource.Log, requestStart.EventSource); 247Assert.Same(KestrelEventSource.Log, requestStop.EventSource); 257Assert.Same(KestrelEventSource.Log, connectionStop.EventSource); 316Assert.Same(KestrelEventSource.Log, connectionStart.EventSource); 323Assert.Same(KestrelEventSource.Log, tlsHandshakeStart.EventSource); 331Assert.Same(KestrelEventSource.Log, tlsHandshakeFailed.EventSource); 339Assert.Same(KestrelEventSource.Log, tlsHandshakeStop.EventSource); 347Assert.Same(KestrelEventSource.Log, connectionStop.EventSource); 397Assert.Same(KestrelEventSource.Log, connectionStart.EventSource); 404Assert.Same(KestrelEventSource.Log, connectionRejected.EventSource); 412Assert.Same(KestrelEventSource.Log, connectionStop.EventSource);
Http2\Http2ConnectionTests.cs (5)
208Assert.Same(contentType1, contentType2); 209Assert.Same(authority1, authority2); 210Assert.Same(path1, path2); 5311Assert.Same(ioException, logMessage.Exception); 5330Assert.Same(exception, logMessage.Exception);
Http3\Http3ConnectionTests.cs (4)
407Assert.Same(streamContext1, streamContext2); 442Assert.Same(contentType1, contentType2); 443Assert.Same(authority1, authority2); 516Assert.Same(first, last);
HttpsTests.cs (1)
728Assert.Same(testCert, authOptions.ServerCertificate);
RequestTests.cs (2)
1318Assert.Same(originalRequestHeaders, requestFeature.Headers); 2125Assert.Same(initialContentTypeValue, contentTypeHeaderValue);
ResponseTests.cs (2)
2494Assert.Same(onStartingException, writeException.InnerException); 2897Assert.Same(originalResponseHeaders, responseFeature.Headers);
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
302Assert.Same(headers, ctx.Features.Get<IHttpRequestFeature>().Headers); 307Assert.Same(body, ctx.Request.Body); 342Assert.Same(headers, ctx.Features.Get<IHttpResponseFeature>().Headers); 348Assert.Same(body, ctx.Response.Body);
Interop.FunctionalTests (4)
Http3\Http3RequestTests.cs (4)
363Assert.Same(contentType1, contentType2); 364Assert.Same(authority1, authority2); 952Assert.Same((string)request2Headers["alt-used"], (string)request3Headers["alt-used"]); 1509Assert.Same(request1HeaderValue, request2HeaderValue);
Microsoft.AspNetCore.App.Analyzers.Test (56)
Components\DisallowNonLiteralSequenceNumbersTest.cs (3)
46Assert.Same(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers, diagnostic.Descriptor); 67Assert.Same(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers, diagnostic.Descriptor); 88Assert.Same(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers, diagnostic.Descriptor);
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (11)
45Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 77Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 110Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 138Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 166Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 195Assert.Same(DiagnosticDescriptors.RoutePatternIssue, diagnostic.Descriptor); 227Assert.Same(DiagnosticDescriptors.RoutePatternIssue, d.Descriptor); 232Assert.Same(DiagnosticDescriptors.RoutePatternIssue, d.Descriptor); 294Assert.Same(DiagnosticDescriptors.RoutePatternIssue, d.Descriptor); 334Assert.Same(DiagnosticDescriptors.RoutePatternUnusedParameter, d.Descriptor); 488Assert.Same(DiagnosticDescriptors.RoutePatternUnusedParameter, d.Descriptor);
RouteHandlers\DetectMisplacedLambdaAttributeTest.cs (6)
48Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor); 70Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor); 96Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor); 102Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor); 129Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor); 218Assert.Same(DiagnosticDescriptors.DetectMisplacedLambdaAttribute, diagnostic.Descriptor);
RouteHandlers\DisallowMvcBindArgumentsOnParametersTest.cs (2)
61Assert.Same(DiagnosticDescriptors.DoNotUseModelBindingAttributesOnRouteHandlerParameters, diagnostic.Descriptor); 83Assert.Same(DiagnosticDescriptors.DoNotUseModelBindingAttributesOnRouteHandlerParameters, diagnostic.Descriptor);
RouteHandlers\DisallowReturningActionResultsFromMapMethodsTest.cs (6)
130Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor); 153Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor); 181Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor); 213Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor); 251Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor); 289Assert.Same(DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, diagnostic.Descriptor);
WebApplicationBuilder\DisallowConfigureHostBuilderConfigureWebHostTest.cs (7)
45Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 66Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 88Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 128Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 156Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 185Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor); 219Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, diagnostic.Descriptor);
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (1)
273Assert.Same(DiagnosticDescriptors.DoNotUseHostConfigureLogging, diagnostic.Descriptor);
WebApplicationBuilder\DisallowConfigureServicesTest.cs (1)
284Assert.Same(DiagnosticDescriptors.DoNotUseHostConfigureServices, diagnostic.Descriptor);
WebApplicationBuilder\DisallowConfigureWebHostBuilderConfigureTest.cs (4)
47Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, diagnostic.Descriptor); 68Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, diagnostic.Descriptor); 95Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, diagnostic.Descriptor); 123Assert.Same(DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, diagnostic.Descriptor);
WebApplicationBuilder\DisallowConfigureWebHostBuilderUseStartupTest.cs (6)
46Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor); 67Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor); 87Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor); 108Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor); 135Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor); 163Assert.Same(DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, diagnostic.Descriptor);
WebApplicationBuilder\UseTopLevelRouteRegistrationInsteadOfUseEndpointsTest.cs (9)
122Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic.Descriptor); 163Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic1.Descriptor); 167Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic2.Descriptor); 171Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic3.Descriptor); 175Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic2.Descriptor); 207Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic.Descriptor); 233Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic.Descriptor); 263Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic1.Descriptor); 267Assert.Same(DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints, diagnostic2.Descriptor);
Microsoft.AspNetCore.AsyncState.Tests (2)
AsyncContextHttpContextOfTTests.cs (2)
40Assert.Same(value, stored); 91Assert.Same(value, stored);
Microsoft.AspNetCore.Authentication.Core.Test (10)
AuthenticationPropertiesTests.cs (6)
24Assert.Same(items, props.Items); 25Assert.Same(parameters, props.Parameters); 54Assert.Same(items, props.Items); 71Assert.Same(items, props.Items); 72Assert.Same(parameters, props.Parameters); 156Assert.Same(list, props.Parameters["foo"]);
AuthenticationSchemeProviderTests.cs (2)
190Assert.Same(a, b); 191Assert.Same(b, c);
AuthenticationTicketTests.cs (2)
27Assert.Same(items, ticket.Properties.Items); 28Assert.Same(parameters, ticket.Properties.Parameters);
Microsoft.AspNetCore.Authentication.Test (4)
AuthenticationMiddlewareTests.cs (4)
80Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 123Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 149Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 153Assert.Same(context.User, newTicket.Principal);
Microsoft.AspNetCore.Authorization.Test (8)
AuthorizationMiddlewareTests.cs (8)
788Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 851Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 875Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 901Assert.Same(context.User, authenticateResultFeature.AuthenticateResult.Principal); 905Assert.Same(context.User, newTicket.Principal); 943Assert.Same(testAuthenticateResultFeature, authenticateResultFeature); 969Assert.Same(testAuthenticateResultFeature, authenticateResultFeature); 970Assert.Same(authenticateResult, authenticateResultFeature.AuthenticateResult);
Microsoft.AspNetCore.Components.Analyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
34Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 39Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 44Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 49Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 54Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 59Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 78Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 83Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 88Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 93Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 98Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor);
Microsoft.AspNetCore.Components.Authorization.Tests (4)
AuthorizeViewTest.cs (1)
472Assert.Same(resource, call.resource);
src\Components\Shared\test\AssertFrame.cs (3)
126Assert.Same(action, frame.ElementReferenceCaptureAction); 140Assert.Same(action, frame.ComponentReferenceCaptureAction); 147Assert.Same(mode, frame.ComponentRenderMode);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentResultTest.cs (1)
39Assert.Same(paramsDict, result.Parameters);
Microsoft.AspNetCore.Components.Forms.Tests (24)
EditContextDataAnnotationsExtensionsTest.cs (1)
28Assert.Same(editContext, returnValue);
EditContextTest.cs (8)
20Assert.Same(model, editContext.Model); 32Assert.Same(model, fieldIdentifier.Model); 113Assert.Same(editContext, sender); 221Assert.Same(editContext, sender); 286Assert.Same(value1, editContext.Properties[key1]); 287Assert.Same(value2, editContext.Properties[key2]); 312Assert.Same(value1, retrievedValue1); 313Assert.Same(value2, retrievedValue2);
FieldIdentifierTest.cs (12)
49Assert.Same(model, fieldIdentifier.Model); 138Assert.Same(model, fieldIdentifier.Model); 174Assert.Same(model, fieldIdentifier.Model); 186Assert.Same(model, fieldIdentifier.Model); 194Assert.Same(this, fieldIdentifier.Model); 203Assert.Same(parentModel.Child, fieldIdentifier.Model); 212Assert.Same(models[1], fieldIdentifier.Model); 221Assert.Same(model, fieldIdentifier.Model); 229Assert.Same(model, fieldIdentifier.Model); 242Assert.Same(Model2, fieldIdentifier.Model); 254Assert.Same(model3, fieldIdentifier.Model); 262Assert.Same(@ÖvrigAnställning, fieldIdentifier.Model);
src\Components\Shared\test\AssertFrame.cs (3)
126Assert.Same(action, frame.ElementReferenceCaptureAction); 140Assert.Same(action, frame.ComponentReferenceCaptureAction); 147Assert.Same(mode, frame.ComponentRenderMode);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
34Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 39Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 44Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 49Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 54Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 59Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 78Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 83Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 88Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 93Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor); 98Assert.Same(DiagnosticDescriptors.DoNotUseRenderTreeTypes, diagnostic.Descriptor);
Microsoft.AspNetCore.Components.Server.Tests (7)
Circuits\CircuitHostTest.cs (3)
154Assert.Same(componentException, eventArgs.ExceptionObject); 285Assert.Same(ex, aex.InnerExceptions.Single()); 745Assert.Same(Dispatcher, SynchronizationContext.Current);
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (2)
23Assert.Same(hostAuthStateTask, provider.GetAuthenticationStateAsync()); 28Assert.Same(hostAuthStateTask2, provider.GetAuthenticationStateAsync());
Circuits\ServerAuthenticationStateProviderTest.cs (2)
33Assert.Same(expectedAuthenticationState1, actualAuthenticationState1); 43Assert.Same(expectedAuthenticationState2, actualAuthenticationState2);
Microsoft.AspNetCore.Components.Tests (164)
CascadingParameterStateTest.cs (5)
85Assert.Same(states[1].Component, match.ValueSupplier); 158Assert.Same(states[0].Component, match.ValueSupplier); 177Assert.Same(states[0].Component, match.ValueSupplier); 211Assert.Same(states[0].Component, match.ValueSupplier); 305Assert.Same(states[0].Component, match.ValueSupplier);
CascadingParameterTest.cs (2)
485Assert.Same(component.GetCascadingParameterValue(), anotherConsumer.GetCascadingParameterValue()); 710Assert.Same(updatedValue, component.GetCascadingParameterValue());
ComponentBaseTest.cs (4)
415Assert.Same(expected, actual); 431Assert.Same(expected, actual); 447Assert.Same(expected, actual); 463Assert.Same(expected, actual);
ComponentFactoryTest.cs (3)
152Assert.Same(resolvedComponent, instance); 202Assert.Same(resolvedComponent, instance); 206Assert.Same(callSiteRenderMode, renderer.SuppliedRenderMode);
DependencyInjectionTest.cs (10)
94Assert.Same(serviceInstance, instance.MyService); 108Assert.Same(serviceInstance, instance.MyService); 127Assert.Same(serviceInstance, instance.PublicReadWrite); 128Assert.Same(serviceInstance, instance.PublicReadOnly); 129Assert.Same(serviceInstance, instance.PrivateValue); 130Assert.Same(otherServiceInstance, instance.DifferentServiceType); 131Assert.Same(concreteServiceInstance, instance.ConcreteServiceType); 132Assert.Same(serviceInstance, instance.KeyedService); 146Assert.Same(serviceInstance, instance.MyService); 160Assert.Same(serviceInstance, instance.PrivateMyService);
EventCallbackFactoryTest.cs (64)
22Assert.Same(@delegate, callback.Delegate); 23Assert.Same(component, callback.Receiver); 38Assert.Same(@delegate, callback.Delegate); 39Assert.Same(component, callback.Receiver); 56Assert.Same(@delegate, callback.Delegate); 57Assert.Same(component, callback.Receiver); 74Assert.Same(@delegate, callback.Delegate); 75Assert.Same(anotherComponent, callback.Receiver); 90Assert.Same(component, callback.Receiver); 105Assert.Same(@delegate, callback.Delegate); 106Assert.Same(component, callback.Receiver); 123Assert.Same(@delegate, callback.Delegate); 124Assert.Same(component, callback.Receiver); 141Assert.Same(@delegate, callback.Delegate); 142Assert.Same(anotherComponent, callback.Receiver); 157Assert.Same(component, callback.Receiver); 172Assert.Same(@delegate, callback.Delegate); 173Assert.Same(component, callback.Receiver); 190Assert.Same(@delegate, callback.Delegate); 191Assert.Same(component, callback.Receiver); 208Assert.Same(@delegate, callback.Delegate); 209Assert.Same(anotherComponent, callback.Receiver); 224Assert.Same(@delegate, callback.Delegate); 225Assert.Same(component, callback.Receiver); 240Assert.Same(component, callback.Receiver); 257Assert.Same(@delegate, callback.Delegate); 258Assert.Same(component, callback.Receiver); 275Assert.Same(@delegate, callback.Delegate); 276Assert.Same(anotherComponent, callback.Receiver); 291Assert.Same(component, callback.Receiver); 309Assert.Same(@delegate, callback.Delegate); 310Assert.Same(component, callback.Receiver); 325Assert.Same(@delegate, callback.Delegate); 326Assert.Same(component, callback.Receiver); 343Assert.Same(@delegate, callback.Delegate); 344Assert.Same(component, callback.Receiver); 361Assert.Same(@delegate, callback.Delegate); 362Assert.Same(anotherComponent, callback.Receiver); 377Assert.Same(component, callback.Receiver); 392Assert.Same(@delegate, callback.Delegate); 393Assert.Same(component, callback.Receiver); 410Assert.Same(@delegate, callback.Delegate); 411Assert.Same(component, callback.Receiver); 426Assert.Same(component, callback.Receiver); 443Assert.Same(@delegate, callback.Delegate); 444Assert.Same(anotherComponent, callback.Receiver); 459Assert.Same(@delegate, callback.Delegate); 460Assert.Same(component, callback.Receiver); 477Assert.Same(@delegate, callback.Delegate); 478Assert.Same(component, callback.Receiver); 495Assert.Same(@delegate, callback.Delegate); 496Assert.Same(anotherComponent, callback.Receiver); 511Assert.Same(component, callback.Receiver); 526Assert.Same(@delegate, callback.Delegate); 527Assert.Same(component, callback.Receiver); 544Assert.Same(@delegate, callback.Delegate); 545Assert.Same(component, callback.Receiver); 562Assert.Same(@delegate, callback.Delegate); 563Assert.Same(anotherComponent, callback.Receiver); 578Assert.Same(component, callback.Receiver); 593Assert.Same(@delegate, callback.Delegate); 594Assert.Same(component, callback.Receiver); 609Assert.Same(@delegate, callback.Delegate); 610Assert.Same(component, callback.Receiver);
ParameterViewTest.Assignment.cs (3)
32Assert.Same(someObject, target.ObjectPropCurrentValue); 109Assert.Same(existingObjectValue, target.ObjectPropCurrentValue); 334Assert.Same(value, target.CaptureUnmatchedValues);
ParameterViewTest.cs (5)
161Assert.Same(myEntryValue, result); 180Assert.Same(myEntryValue, result); 293Assert.Same(entry2Value, entry.Value); 317Assert.Same(myEntryValue, result); 576Assert.Same(expectedValue, parameter.Value);
RendererTest.cs (32)
595Assert.Same(eventArgs, receivedArgs); 618Assert.Same(typeof(DerivedEventArgs), eventArgsType); 641Assert.Same(typeof(EventArgs), eventArgsType); 749Assert.Same(eventArgs, receivedArgs); 818Assert.Same(eventArgs, receivedArgs); 856Assert.Same(eventArgs, receivedArgs); 899Assert.Same(eventArgs, receivedArgs); 996Assert.Same(eventArgs, receivedArgs); 2096Assert.Same(objectThatWillNotChange, childComponentInstance.ObjectProperty); 2105Assert.Same(objectThatWillNotChange, childComponentInstance.ObjectProperty); 2338Assert.Same(exception1, aex); 2461Assert.Same(exception1, aex); 2604Assert.Same(exception1, ex); 2611Assert.Same(exception2, ex); 3678Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3694Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3734Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3901Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3957Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3977Assert.Same(ConstructorThrowingComponent.Exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 4017Assert.Same(AttachThrowingComponent.Exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 4286Assert.Same(exception1, handledException); 4319Assert.Same(exception1, handledException); 4487Assert.Same(parameterValue, capturingComponent.SomeParam); 4566component => Assert.Same(exception, component.ReceivedException)); 4602component => Assert.Same(exception, component.ReceivedException)); 4642component => Assert.Same(exception, component.ReceivedException)); 4680component => Assert.Same(exception, component.ReceivedException)); 4724component => Assert.Same(exception, component.ReceivedException)); 4779component => Assert.Same(exception, component.ReceivedException)); 4927Assert.Same(exception1, Assert.Single(renderer.HandledExceptions)); 4935Assert.Same(exception2, renderer.HandledExceptions[1]);
Rendering\ArrayBuilderTest.cs (5)
214Assert.Same(buffer, returnedBuffer); 231Assert.Same(buffer, returnedBuffer); 261Assert.Same(buffer, returnedBuffer); 280Assert.Same(buffer, returnedBuffer); 323Assert.Same(buffer, Assert.Single(ArrayPool.ReturnedBuffers));
Rendering\RendererSynchronizationContextTest.cs (8)
154Assert.Same(CultureInfo.CurrentCulture, capturedCulture); 245Assert.Same(Thread.CurrentThread, capturedThread); 250Assert.Same(Thread.CurrentThread, capturedThread); 287Assert.Same(CultureInfo.CurrentCulture, capturedCulture); 306Assert.Same(thread, capturedThread); 396Assert.Same(CultureInfo.CurrentCulture, capturedCulture); 416Assert.Same(thread, capturedThread); 597Assert.Same(thread, capturedThread);
Rendering\RenderTreeBuilderTest.cs (2)
1708Assert.Same(keyValue, frame.ElementKey); 1734Assert.Same(keyValue, frame.ComponentKey);
RenderTreeDiffBuilderTest.cs (14)
244Assert.Same(oldComponent, newComponents[1]); 281Assert.Same(oldComponents[1], newComponent); 313Assert.Same(oldComponents[1], newComponent); 342Assert.Same(oldComponents[0], newComponents[1]); 1606Assert.Same(testObject, componentInstance.ObjectProperty); 1643Assert.Same(originalFakeComponentInstance, newFrame1.Component); 1644Assert.Same(originalFakeComponent2Instance, newFrame2.Component); 1725Assert.Same(originalComponentInstance, newComponentInstance); 1727Assert.Same(objectWillNotChange, newComponentInstance.ObjectProperty); 1780Assert.Same(originalComponentInstance, newComponentInstance); 1924Assert.Same(capturedInstance1, capturedInstance2); 1937Assert.Same(capturedInstance1, frame.Component); 2060Assert.Same(oldComponents[0], newComponents[1]); 2061Assert.Same(oldComponents[1], newComponents[0]);
Routing\RouteTableFactoryTests.cs (1)
1110Assert.Same(typeof(TestHandler1), context.Handler);
src\Components\Shared\test\AssertFrame.cs (3)
126Assert.Same(action, frame.ElementReferenceCaptureAction); 140Assert.Same(action, frame.ComponentReferenceCaptureAction); 147Assert.Same(mode, frame.ComponentRenderMode);
StackObjectPoolTest.cs (3)
54Assert.Same(instance1, instance1b); 55Assert.Same(instance2, instance2b); 84Assert.Same(instance1, instance1b);
Microsoft.AspNetCore.Components.Web.Tests (7)
Forms\EditFormTest.cs (2)
77Assert.Same(model, returnedEditContext.Model); 97Assert.Same(editContext, returnedEditContext);
Forms\InputBaseTest.cs (1)
72Assert.Same(rootComponent.EditContext, inputComponent.EditContext);
Forms\InputFileChangeEventArgsTest.cs (1)
54Assert.Same(files, instance.GetMultipleFiles());
src\Components\Shared\test\AssertFrame.cs (3)
126Assert.Same(action, frame.ElementReferenceCaptureAction); 140Assert.Same(action, frame.ComponentReferenceCaptureAction); 147Assert.Same(mode, frame.ComponentRenderMode);
Microsoft.AspNetCore.Cors.Test (7)
CorsOptionsTest.cs (3)
22Assert.Same(expectedPolicy, actualPolicy); 38Assert.Same(expectedPolicy, actualPolicy); 61Assert.Same(expectedPolicy, actualPolicy);
CorsPolicyBuilderTests.cs (2)
41Assert.Same(originalPolicy.IsOriginAllowed, corsPolicy.IsOriginAllowed); 186Assert.Same(corsPolicy.IsOriginAllowed, isOriginAllowed);
DefaultCorsPolicyProviderTests.cs (2)
26Assert.Same(policy, actualPolicy); 46Assert.Same(policy, actualPolicy);
Microsoft.AspNetCore.Cryptography.Internal.Tests (6)
WeakReferenceHelpersTests.cs (6)
26Assert.Same(newInstance, target); 27Assert.Same(newInstance, retVal); 44Assert.Same(newInstance, target); 45Assert.Same(newInstance, retVal); 68Assert.Same(instanceThatWillBeCreatedFirst, target); 69Assert.Same(instanceThatWillBeCreatedFirst, retVal);
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (7)
DataProtectionCommonExtensionsTests.cs (7)
69Assert.Same(finalExpectedProtector, retVal); 89Assert.Same(finalExpectedProtector, retVal); 106Assert.Same(finalExpectedProtector, retVal); 133Assert.Same(expected, actual); 196Assert.Same(finalExpectedProtector, retVal); 220Assert.Same(finalExpectedProtector, retVal); 240Assert.Same(finalExpectedProtector, retVal);
Microsoft.AspNetCore.DataProtection.Tests (45)
ActivatorTests.cs (2)
29Assert.Same(services, retVal2.Services); 32Assert.Same(services, retVal3.Services);
KeyManagement\CacheableKeyRingTests.cs (1)
54Assert.Same(keyRing, cacheableKeyRing.KeyRing);
KeyManagement\DefaultKeyResolverTests.cs (11)
42Assert.Same(key1, resolution.DefaultKey); 58Assert.Same(key2, resolution.DefaultKey); 73Assert.Same(key1, resolution.DefaultKey); 88Assert.Same(key1, resolution.DefaultKey); 105Assert.Same(key1, resolution.DefaultKey); 152Assert.Same(key1, resolution.DefaultKey); 184Assert.Same(key3, resolution.DefaultKey); 202Assert.Same(key2, resolution.FallbackKey); 220Assert.Same(key2, resolution.FallbackKey); 237Assert.Same(key2, resolution.FallbackKey); 273Assert.Same(key1, resolution.DefaultKey);
KeyManagement\DeferredKeyTests.cs (1)
41Assert.Same(mockDescriptor, key.Descriptor);
KeyManagement\KeyRingProviderTests.cs (13)
593Assert.Same(expectedKeyRing, retVal1); 594Assert.Same(expectedKeyRing, retVal2); 633Assert.Same(expectedKeyRing1, retVal1); 634Assert.Same(expectedKeyRing1, retVal2); 635Assert.Same(expectedKeyRing2, retVal3); 667Assert.Same(expectedKeyRing1, retVal1); 668Assert.Same(expectedKeyRing2, retVal2); 718Assert.Same(expectedKeyRing, foregroundRetVal); 742Assert.Same(originalKeyRing, keyRingProvider.GetCurrentKeyRingCore(originalKeyRingTime)); 745Assert.Same(originalKeyRing, keyRingProvider.GetCurrentKeyRingCore(throwKeyRingTime)); // Seeing the exception didn't clobber the cache 746Assert.Same(updatedKeyRing, keyRingProvider.GetCurrentKeyRingCore(updatedKeyRingTime, forceRefresh: true)); // forceRefresh to wait for updated value 837Assert.Same(expectedKeyRing1, keyRingProvider.GetCurrentKeyRingCore(time1)); // Ensure the cache is populated 873Assert.Same(expectedKeyRing1, updatedKeyRing);
KeyManagement\KeyRingTests.cs (7)
26Assert.Same(expectedEncryptorInstance, keyRing.DefaultAuthenticatedEncryptor); 28Assert.Same(expectedEncryptorInstance, keyRing.DefaultAuthenticatedEncryptor); 77Assert.Same(expectedEncryptorInstance1, keyRing.GetAuthenticatedEncryptorByKeyId(key1.KeyId, out var isRevoked)); 80Assert.Same(expectedEncryptorInstance1, keyRing.GetAuthenticatedEncryptorByKeyId(key1.KeyId, out isRevoked)); 84Assert.Same(expectedEncryptorInstance2, keyRing.GetAuthenticatedEncryptorByKeyId(key2.KeyId, out isRevoked)); 87Assert.Same(expectedEncryptorInstance2, keyRing.GetAuthenticatedEncryptorByKeyId(key2.KeyId, out isRevoked)); 90Assert.Same(expectedEncryptorInstance2, keyRing.DefaultAuthenticatedEncryptor);
KeyManagement\KeyTests.cs (1)
31Assert.Same(descriptor, key.Descriptor);
KeyManagement\XmlKeyManagerTests.cs (9)
71Assert.Same(expectedXmlEncryptor, keyManager.KeyEncryptor); 133Assert.Same(expectedDescriptor, newKey.Descriptor); 135Assert.Same(expectedAuthenticatedEncryptor, testEncryptorFactory.CreateEncryptorInstance(newKey)); 231Assert.Same(expectedDescriptor, newKey.Descriptor); 233Assert.Same(expectedAuthenticatedEncryptor, testEncryptorFactory.CreateEncryptorInstance(newKey)); 377Assert.Same(descriptorA, keys[0].Descriptor); 383Assert.Same(descriptorB, keys[1].Descriptor); 488Assert.Same(expectedDescriptor, keys[0].Descriptor); 527Assert.Same(expectedDescriptor, keys[0].Descriptor);
Microsoft.AspNetCore.HeaderParsing.Tests (2)
HeaderParsingFeatureTests.cs (2)
205Assert.Same(value1, value2); 206Assert.Same(value1, value3);
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationMiddlewareTest.cs (1)
138Assert.Same(Context, receivedContext);
Microsoft.AspNetCore.Hosting.Tests (7)
HostingApplicationTests.cs (2)
63Assert.Same(previousContext, context.HttpContext); 67Assert.Same(previousContext, context.HttpContext);
Http\DefaultHttpContextFactoryTests.cs (3)
26Assert.Same(context, accessor.HttpContext); 44Assert.Same(context, accessor.HttpContext); 80Assert.Same(services.GetRequiredService<IServiceScopeFactory>(), context.ServiceScopeFactory);
WebHostTests.cs (2)
881Assert.Same(httpContext.TraceIdentifier, featuresTraceIdentifier); 902Assert.Same(requestIdentifierFeature, httpContext.Features.Get<IHttpRequestIdentifierFeature>());
Microsoft.AspNetCore.Html.Abstractions.Tests (2)
HtmlContentBuilderExtensionsTest.cs (2)
57entry => Assert.Same(content, entry), 108entry => Assert.Same(content, entry));
Microsoft.AspNetCore.Http.Abstractions.Tests (14)
EndpointMetadataCollectionTests.cs (2)
54Assert.Same(Array.Empty<string>(), ordered); 67Assert.Same(ordered1, ordered2);
HttpMethodslTests.cs (1)
41Assert.Same(expectedMethod, canonicalizedValue);
RouteValueDictionaryTests.cs (10)
73Assert.Same(otherStorage, storage); 421Assert.Same(StringComparer.OrdinalIgnoreCase, dict.Comparer); 1610Assert.Same(value, removedValue); 1627Assert.Same(value, removedValue); 1666Assert.Same(value, removedValue); 1686Assert.Same(value, removedValue); 1708Assert.Same(value, removedValue); 1733Assert.Same(value, removedValue); 1758Assert.Same(value, removedValue); 2157Assert.Same(Array.Empty<KeyValuePair<string, object?>>(), value._arrayStorage);
UseMiddlewareTest.cs (1)
279Assert.Same(middlewareFactory.Created, middlewareFactory.Released);
Microsoft.AspNetCore.Http.Connections.Tests (11)
HttpConnectionDispatcherTests.cs (2)
1867Assert.Same(currentUser, connection.User); 1919Assert.Same(currentUser, connection.User);
HttpConnectionManagerTests.cs (9)
153Assert.Same(newConnection, connection); 171Assert.Same(newConnection, connection); 172Assert.Same(transport, newConnection.Transport); 190Assert.Same(newConnection, connection); 191Assert.Same(transport, newConnection.Transport); 212Assert.Same(newConnection, connection); 213Assert.Same(transport, newConnection.Transport); 234Assert.Same(newConnection, connection); 235Assert.Same(transport, newConnection.Transport);
Microsoft.AspNetCore.Http.Extensions.Tests (35)
ProblemDetailsServiceCollectionExtensionsTest.cs (2)
82Assert.Same(customService, service.ImplementationInstance); 240Assert.Same(customProblemDetailsResolver.LastProblemDetailsInfo, pdTypeInfo);
RequestDelegateFactoryTests.cs (9)
1209Assert.Same(httpContext, httpContextArgument); 1950Assert.Same(exception, logMessage.Exception); 1983Assert.Same(exception, logMessage.Exception); 2569m => Assert.Same(customMetadata, m), 2888Assert.Same(options.EndpointBuilder.Metadata, result.EndpointMetadata); 3067Assert.Same(initialRequestDelegate, result.RequestDelegate); 3083Assert.Same(options.EndpointBuilder.RequestDelegate, result.RequestDelegate); 3084Assert.Same(options.EndpointBuilder.Metadata, result.EndpointMetadata); 3100Assert.Same(Results.Empty, response);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
944Assert.Same(ioException, logMessage.Exception);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (6)
239Assert.Same(httpContext.Request.Body, stream); 280Assert.Same(httpContext.Request.Body, stream); 324Assert.Same(httpContext.Request.Body, stream); 325Assert.Same(httpContext.Request.BodyReader, pipeReader); 365Assert.Same(httpContext.Request.Body, stream); 366Assert.Same(httpContext.Request.BodyReader, pipeReader);
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (8)
27Assert.Same(myOriginalService, httpContext.Items["arg"]); 75Assert.Same(myOriginalService1, httpContext1.Items["arg"]); 76Assert.Same(myOriginalService2, httpContext2.Items["arg"]); 93Assert.Same(myOriginalService, httpContext.Items["arg"]); 113Assert.Same(myOriginalService, httpContext.Items["arg"]); 170Assert.Same(myOriginalService1, httpContext.Items["arg1"]); 199Assert.Same(myOriginalService1, httpContext.Items["arg1"]); 201Assert.Same(myOriginalService2, httpContext.Items["arg3"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (3)
495Assert.Same(ioException, logMessage.Exception); 533Assert.Same(jsonException, logMessage.Exception); 576Assert.Same(jsonException, badHttpRequestException.InnerException);
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (6)
40Assert.Same(httpContext, httpContext.Items["arg"]); 84Assert.Same(user, httpContext.Items["arg"]); 147Assert.Same(httpContext, httpContext.Items["input"]); 148Assert.Same(httpContext.User, httpContext.Items["user"]); 149Assert.Same(httpContext.Request, httpContext.Items["request"]); 150Assert.Same(httpContext.Response, httpContext.Items["response"]);
Microsoft.AspNetCore.Http.Results.Tests (6)
CreatedOfTResultTests.cs (1)
42Assert.Same(location, result.Location);
CreatedResultTests.cs (1)
27Assert.Same(location, result.Location);
LocalRedirectResultTests.cs (3)
24Assert.Same(url, result.Url); 39Assert.Same(url, result.Url); 54Assert.Same(url, result.Url);
RedirectResultTests.cs (1)
22Assert.Same(url, result.Url);
Microsoft.AspNetCore.Http.Tests (45)
DefaultHttpContextTests.cs (13)
40Assert.Same(session, context.Session); 56Assert.Same(session, context.Session); 115Assert.Same(items, context.Items); 118Assert.Same(item, context.Items["foo"]); 129Assert.Same(traceIdentifier, context.TraceIdentifier); 132Assert.Same("Hello", context.TraceIdentifier); 143Assert.Same(items, context.Items); 146Assert.Same(item, context.Items["foo"]); 200Assert.Same(serviceProvider, context.RequestServices); 379Assert.Same(features, field.GetValue(value)); 384Assert.Same(features[field.FieldType], v); 397Assert.Same(features, property.GetValue(value)); 404Assert.Same(features[property.PropertyType], v);
Features\FormFeatureTests.cs (17)
25Assert.Same(FormCollection.Empty, formCollection); 75Assert.Same(formFeature.Form, formCollection); 112Assert.Same(formFeature.Form, formCollection); 219Assert.Same(formCollection, formFeature.Form); 220Assert.Same(formCollection, await context.Request.ReadFormAsync()); 254Assert.Same(formCollection, formFeature.Form); 255Assert.Same(formCollection, await context.Request.ReadFormAsync()); 291Assert.Same(formFeature.Form, formCollection); 292Assert.Same(formCollection, context.Request.Form); 339Assert.Same(formCollection, formFeature.Form); 340Assert.Same(formCollection, await context.Request.ReadFormAsync()); 376Assert.Same(formFeature.Form, formCollection); 377Assert.Same(formCollection, context.Request.Form); 424Assert.Same(formFeature.Form, formCollection); 425Assert.Same(formCollection, context.Request.Form); 573Assert.Same(formFeature.Form, formCollection); 574Assert.Same(formCollection, context.Request.Form);
HeaderDictionaryTests.cs (3)
126Assert.Same(Array.Empty<string>(), (string[])emptyHeaders["Header1"]); 129Assert.Same(Array.Empty<string>(), (string[])asIHeaderDictionary["Header1"]); 130Assert.Same(Array.Empty<string>(), (string[])asIHeaderDictionary.Host);
HttpContextAccessorTests.cs (4)
19Assert.Same(context, accessor.HttpContext); 45Assert.Same(context, accessor.HttpContext); 90Assert.Same(context, accessor.HttpContext); 116Assert.Same(context2, accessor.HttpContext);
Internal\DefaultHttpRequestTests.cs (1)
158Assert.Same(query2, request.Query);
Internal\DefaultHttpResponseTests.cs (5)
85Assert.Same(originalStream, context.Response.Body); 86Assert.Same(responseBodyMock.Object, context.Features.Get<IHttpResponseBodyFeature>()); 90Assert.Same(replacementStream, context.Response.Body); 95Assert.Same(originalStream, context.Response.Body); 96Assert.Same(responseBodyMock.Object, context.Features.Get<IHttpResponseBodyFeature>());
QueryCollectionTests.cs (2)
17Assert.Same(Array.Empty<string>(), (string[])query["query1"]); 20Assert.Same(Array.Empty<string>(), (string[])QueryCollection.Empty["query1"]);
Microsoft.AspNetCore.Identity.Test (7)
SignInManagerTest.cs (4)
1153Assert.Same(SignInResult.Failed, result); 1208Assert.Same(SignInResult.Failed, result); 1242Assert.Same(expectedSignInResult, result); 1274Assert.Same(expectedSignInResult, result);
UserManagerTest.cs (3)
44Assert.Same(provider.GetRequiredService<UserManager<PocoUser>>(), 46Assert.Same(provider.GetRequiredService<RoleManager<PocoRole>>(), 1772Assert.Same(describer, manager.ErrorDescriber);
Microsoft.AspNetCore.InternalTesting.Tests (2)
AssemblyTestLogTests.cs (1)
32Assert.Same(
LoggedTestXunitTests.cs (1)
114Assert.Same(loggerFactory, serviceCollection.BuildServiceProvider().GetRequiredService<ILoggerFactory>());
Microsoft.AspNetCore.JsonPatch.Tests (8)
IntegrationTests\ListIntegrationTest.cs (2)
339Assert.Same(simpleObject2, targetObject.SimpleObjectList[0]); 340Assert.Same(simpleObject1, targetObject.SimpleObjectList[1]);
IntegrationTests\NestedObjectIntegrationTest.cs (1)
329Assert.Same(iDto, targetObject.SimpleObject);
Internal\ObjectVisitorTest.cs (5)
56Assert.Same(expectedTargetObject, targetObject); 89Assert.Same(expectedTargetObject, targetObject); 119Assert.Same(expectedTargetObject, targetObject); 120Assert.Same(typeof(DictionaryAdapter<string, object>), adapter.GetType()); 151Assert.Same(expectedTargetObject, targetObject);
Microsoft.AspNetCore.Localization.Tests (1)
RequestLocalizationOptionsExtensionsTest.cs (1)
21Assert.Same(provider, options.RequestCultureProviders[0]);
Microsoft.AspNetCore.Mvc.Abstractions.Test (19)
Filters\FilterContextTest.cs (1)
89Assert.Same(filters.Last(), result);
ModelBinding\BindingInfoTest.cs (14)
26Assert.Same("Test", bindingInfo.BinderModelName); 27Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 45Assert.Same(bindAttribute, bindingInfo.PropertyFilterProvider); 79Assert.Same("PropertyPrefix", bindingInfo.BinderModelName); 119Assert.Same(typeof(ComplexObjectModelBinder), bindingInfo.BinderType); 120Assert.Same("Test", bindingInfo.BinderModelName); 168Assert.Same(typeof(ComplexObjectModelBinder), bindingInfo.BinderType); 169Assert.Same("Different", bindingInfo.BinderModelName); 170Assert.Same(BindingSource.Custom, bindingInfo.BindingSource); 191Assert.Same(typeof(ComplexObjectModelBinder), bindingInfo.BinderType); 217Assert.Same(BindingSource.Services, bindingInfo.BindingSource); 244Assert.Same(propertyFilterProvider, bindingInfo.PropertyFilterProvider); 309Assert.Same(BindingSource.Services, bindingInfo.BindingSource); 310Assert.Same(key, bindingInfo.ServiceKey);
ModelBinding\ModelStateDictionaryTest.cs (4)
299Assert.Same(exception, error.Exception); 339Assert.Same(exception, kvp.Value.Errors[1].Exception); 970Assert.Same(exception, error.Exception); 1083Assert.Same(exception, error.Exception);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (61)
DefaultApiDescriptionProviderTest.cs (61)
73Assert.Same(action, description.ActionDescriptor); 1205Assert.Same(formatters[0], apiResponseFormat.Formatter); 1308Assert.Same(formatters[1], format.Formatter); 1327Assert.Same(BindingSource.ModelBinding, parameter.Source); 1331Assert.Same(BindingSource.ModelBinding, parameter.Source); 1335Assert.Same(BindingSource.ModelBinding, parameter.Source); 1352Assert.Same(BindingSource.ModelBinding, parameter.Source); 1372Assert.Same(BindingSource.Path, parameter.Source); 1389Assert.Same(BindingSource.Query, parameter.Source); 1406Assert.Same(BindingSource.Body, parameter.Source); 1425Assert.Same(BindingSource.Form, parameter.Source); 1429Assert.Same(BindingSource.Form, parameter.Source); 1433Assert.Same(BindingSource.Form, parameter.Source); 1455Assert.Same(BindingSource.FormFile, parameter.Source); 1476Assert.Same(BindingSource.Header, parameter.Source); 1508Assert.Same(BindingSource.Custom, parameter.Source); 1527Assert.Same(BindingSource.ModelBinding, parameter.Source); 1531Assert.Same(BindingSource.ModelBinding, parameter.Source); 1535Assert.Same(BindingSource.ModelBinding, parameter.Source); 1554Assert.Same(BindingSource.Path, id.Source); 1558Assert.Same(BindingSource.Body, product.Source); 1562Assert.Same(BindingSource.Header, userId.Source); 1566Assert.Same(BindingSource.ModelBinding, comments.Source); 1585Assert.Same(BindingSource.Query, id.Source); 1604Assert.Same(BindingSource.Query, id.Source); 1623Assert.Same(BindingSource.Query, id.Source); 1642Assert.Same(BindingSource.Query, id.Source); 1661Assert.Same(BindingSource.Query, id.Source); 1680Assert.Same(BindingSource.Query, id.Source); 1699Assert.Same(BindingSource.Query, id.Source); 1718Assert.Same(BindingSource.Query, id.Source); 1722Assert.Same(BindingSource.Query, product.Source); 1742Assert.Same(BindingSource.Path, id.Source); 1746Assert.Same(BindingSource.Body, product.Source); 1750Assert.Same(BindingSource.Header, userId.Source); 1754Assert.Same(BindingSource.Query, comments.Source); 1773Assert.Same(BindingSource.Path, id.Source); 1777Assert.Same(BindingSource.ModelBinding, quantity.Source); 1781Assert.Same(BindingSource.ModelBinding, productId.Source); 1785Assert.Same(BindingSource.Query, price.Source); 1805Assert.Same(BindingSource.Path, id.Source); 1809Assert.Same(BindingSource.Query, quantity.Source); 1813Assert.Same(BindingSource.Query, productId.Source); 1817Assert.Same(BindingSource.Query, productPrice.Source); 1840Assert.Same(BindingSource.Query, id.Source); 1844Assert.Same(BindingSource.Query, name.Source); 1871Assert.Same(BindingSource.Query, id.Source); 1875Assert.Same(BindingSource.Query, name.Source); 1894Assert.Same(BindingSource.Query, c.Source); 1912Assert.Same(BindingSource.Query, products.Source); 1931Assert.Same(BindingSource.ModelBinding, items.Source); 1953Assert.Same(BindingSource.Query, id.Source); 1957Assert.Same(BindingSource.Query, name.Source); 1975Assert.Same(BindingSource.Header, name.Source); 1979Assert.Same(BindingSource.Form, id.Source); 1998Assert.Same(BindingSource.Query, name.Source); 2002Assert.Same(BindingSource.Path, id.Source); 2006Assert.Same(BindingSource.Body, product.Source); 2010Assert.Same(BindingSource.Header, userId.Source); 2014Assert.Same(BindingSource.ModelBinding, comments.Source); 2163Assert.Same(defaultValue, description.DefaultValue);
Microsoft.AspNetCore.Mvc.Core.Test (424)
AcceptedAtActionResultTests.cs (2)
103Assert.Same(value, result.Value); 143Assert.Same(value, actual);
AcceptedAtRouteResultTests.cs (2)
44Assert.Same(value, result.Value); 77Assert.Same(value, actual);
AcceptedResultTests.cs (2)
40Assert.Same(value, result.Value); 63Assert.Same(value, actual);
ActionConstraints\ActionConstraintCacheTest.cs (11)
38a => Assert.Same(action.ActionConstraints[0], a), // Copied by provider 39a => Assert.Same(action.ActionConstraints[1], a)); // Copied by provider 44Assert.Same(actionConstraints1, actionConstraints2); 48a => Assert.Same(actionConstraints1[0], a), // Cached 49a => Assert.Same(actionConstraints1[1], a)); // Cached 76a => Assert.Same(action.ActionConstraints[1], a)); // Copied by provider 81Assert.Same(actionConstraints1, actionConstraints2); 85a => Assert.Same(actionConstraints1[0], a), // Cached 86a => Assert.Same(actionConstraints1[1], a)); // Cached 113a => Assert.Same(action.ActionConstraints[1], a)); // Copied by provider 123a => Assert.Same(actionConstraints1[1], a)); // Cached
ActionResultOfTTest.cs (4)
56Assert.Same(expected, result); 72Assert.Same(value, objectResult.Value); 90Assert.Same(value, objectResult.Value); 108Assert.Same(value, objectResult.Value);
ApplicationModels\ActionModelTest.cs (2)
53Assert.Same(action2, action2.Parameters[0].Action); 135Assert.Same(value1, value2);
ApplicationModels\AttributeRouteModelTests.cs (1)
48Assert.Same(value1, value2);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
69Assert.Same(globalFilter, filter1.Filter);
ApplicationModels\ControllerModelTest.cs (3)
55Assert.Same(controller2, controller2.Actions[0].Controller); 57Assert.Same(controller2, controller2.ControllerProperties[0].Controller); 137Assert.Same(value1, value2);
ApplicationModels\DefaultApplicationModelProviderTest.cs (11)
82Assert.Same(controllerModel, property.Controller); 91Assert.Same(controllerModel, property.Controller); 99Assert.Same(controllerModel, property.Controller); 108Assert.Same(controllerModel, property.Controller); 134Assert.Same(controllerModel, property.Controller); 143Assert.Same(controllerModel, property.Controller); 151Assert.Same(controllerModel, property.Controller); 160Assert.Same(controllerModel, property.Controller); 187Assert.Same(action, parameter.Action); 196Assert.Same(action, parameter.Action); 204Assert.Same(action, parameter.Action);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (46)
31Assert.Same(BindingSource.Custom, parameterModel.BindingInfo.BindingSource); 131Assert.Same(BindingSource.Body, bindingInfo.BindingSource); 165Assert.Same(BindingSource.Body, bindingInfo.BindingSource); 191Assert.Same(BindingSource.Body, bindingInfo.BindingSource); 217Assert.Same(BindingSource.Body, bindingInfo.BindingSource); 238Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 259Assert.Same(BindingSource.Custom, bindingInfo.BindingSource); 280Assert.Same(BindingSource.Custom, bindingInfo.BindingSource); 296Assert.Same(BindingSource.Path, result); 311Assert.Same(BindingSource.Path, result); 326Assert.Same(BindingSource.Path, result); 341Assert.Same(BindingSource.Body, result); 356Assert.Same(BindingSource.Path, result); 371Assert.Same(BindingSource.Path, result); 386Assert.Same(BindingSource.Path, result); 401Assert.Same(BindingSource.Path, result); 416Assert.Same(BindingSource.Path, result); 431Assert.Same(BindingSource.Query, result); 446Assert.Same(BindingSource.Path, result); 461Assert.Same(BindingSource.Path, result); 476Assert.Same(BindingSource.Path, result); 491Assert.Same(BindingSource.Query, result); 506Assert.Same(BindingSource.Body, result); 528Assert.Same(BindingSource.Body, model.BindingInfo.BindingSource); 531Assert.Same(BindingSource.Special, cancellationToken.BindingInfo.BindingSource); 546Assert.Same(BindingSource.Query, result); 561Assert.Same(BindingSource.Body, result); 576Assert.Same(BindingSource.Body, result); 591Assert.Same(BindingSource.Body, result); 606Assert.Same(BindingSource.Body, result); 624Assert.Same(BindingSource.Services, result); 642Assert.Same(BindingSource.Services, result); 662Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 683Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 704Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 724Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 745Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 766Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 787Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 808Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 829Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 850Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 870Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 893Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 894Assert.Same(expectedPredicate, bindingInfo.RequestPredicate); 895Assert.Same(expectedPropertyFilter, bindingInfo.PropertyFilterProvider.PropertyFilter);
ApplicationModels\ParameterModelTest.cs (1)
71Assert.Same(value1, value2);
ApplicationModels\PropertyModelTest.cs (1)
62Assert.Same(value1, value2);
ApplicationModels\RouteTokenTransformerConventionTest.cs (1)
28Assert.Same(transformer, model.RouteParameterTransformer);
Authorization\AuthorizeFilterTest.cs (3)
432Assert.Same(authorizeFilter, result); 448Assert.Same(authorizeFilter, result); 507Assert.Same(policyProvider, actual.PolicyProvider);
ControllerBaseTest.cs (50)
54Assert.Same(url, result.Url); 71Assert.Same(url, result.Url); 88Assert.Same(url, result.Url); 105Assert.Same(url, result.Url); 152Assert.Same(url, result.Url); 169Assert.Same(url, result.Url); 186Assert.Same(url, result.Url); 203Assert.Same(url, result.Url); 884Assert.Same(routeName, resultTemporary.RouteName); 901Assert.Same(routeName, resultTemporary.RouteName); 918Assert.Same(routeName, resultPermanent.RouteName); 935Assert.Same(routeName, resultPermanent.RouteName); 955Assert.Same(routeName, resultTemporary.RouteName); 976Assert.Same(routeName, resultTemporary.RouteName); 997Assert.Same(routeName, resultPermanent.RouteName); 1222Assert.Same(url, result.PageName); 1242Assert.Same(pageName, resultPermanent.PageName); 1263Assert.Same(routeName, resultPermanent.PageName); 1284Assert.Same(routeName, resultPermanent.RouteName); 1301Assert.Same(uri, result.Location); 1438Assert.Same(routeName, result.RouteName); 1479Assert.Same(routeName, result.RouteName); 1510Assert.Same(value, result.Value); 1526Assert.Same(uri, result.Location); 1658Assert.Same(routeName, result.RouteName); 1674Assert.Same(fileContents, result.FileContents); 1692Assert.Same(fileContents, result.FileContents); 1716Assert.Same(fileContents, result.FileContents); 1736Assert.Same(fileContents, result.FileContents); 1760Assert.Same(fileContents, result.FileContents); 1873Assert.Same(fileStream, result.FileStream); 1902Assert.Same(fileStream, result.FileStream); 1926Assert.Same(fileStream, result.FileStream); 1954Assert.Same(fileStream, result.FileStream); 2222Assert.Same(Encoding.UTF8, MediaType.GetEncoding(actualContentResult.ContentType)); 2617Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.ValueProvider)[0]); 2645Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.ValueProvider)[0]); 2672Assert.Same(valueProvider, context.ValueProvider); 2728Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.ValueProvider)[0]); 2761Assert.Same(valueProvider, context.ValueProvider); 2793Assert.Same( 2827Assert.Same(valueProvider.Object, context.ValueProvider); 2857Assert.Same( 2911Assert.Same(valueProvider, context.ValueProvider); 2941Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.ValueProvider)[0]); 2969Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.ValueProvider)[0]); 3004Assert.Same(serviceProvider, innerServiceProvider); 3024Assert.Same(request, innerRequest); 3044Assert.Same(response, innerResponse); 3060Assert.Same(routeData, innerRouteData);
Controllers\ControllerActivatorProviderTest.cs (2)
34Assert.Same(expected, result); 66Assert.Same(expected, actual.TestService);
Controllers\ControllerFactoryProviderTest.cs (5)
34Assert.Same(result, expected); 139Assert.Same(expectedController, actual); 140Assert.Same(expectedProperty1, actual.ActivatedValue1); 141Assert.Same(expectedProperty2, actual.ActivatedValue2); 173Assert.Same(expected, actual);
Controllers\DefaultControllerActivatorTest.cs (1)
144Assert.Same(testService, controller.TestService);
Controllers\DefaultControllerFactoryTest.cs (3)
46Assert.Same(expected, controller); 74Assert.Same(context, controller.ActionContext); 101Assert.Same(context, controller.ControllerContext);
Controllers\ServiceBasedControllerActivatorTest.cs (1)
39Assert.Same(controller, instance);
CreatedResultTests.cs (1)
38Assert.Same(location, result.Location);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
122Assert.Same(manager, builder.PartManager); 142Assert.Same(manager, builder.PartManager);
Filters\FilterCollectionTest.cs (4)
22Assert.Same(typeFilter, Assert.Single(collection)); 37Assert.Same(typeFilter, Assert.Single(collection)); 93Assert.Same(serviceFilter, Assert.Single(collection)); 108Assert.Same(serviceFilter, Assert.Single(collection));
Filters\FilterFactoryTest.cs (16)
72f => Assert.Same(staticFilter1, f), 73f => Assert.Same(staticFilter2, f)); 84f => Assert.Same(staticFilter1, f), 85f => Assert.Same(staticFilter2, f)); 109f => Assert.Same(filter2, f), 110f => Assert.Same(filter3, f), 111f => Assert.Same(filter1, f)); 139f => Assert.Same(filter2, f), 140f => Assert.Same(filter3, f), 141f => Assert.Same(filter1, f)); 163Assert.Same(staticFilter, filters[1]); // Cached and the same statically created filter instance 170Assert.Same(currentFactoryCreatedFilter, cachedFactoryCreatedFilter); // Cached 171Assert.Same(staticFilter, filters[1]); // Cached 198Assert.Same(staticFilter, filters[1]); // Cached 238Assert.Same(staticFilter, filters[1]); // Cached and the same statically created filter instance 250Assert.Same(staticFilter, filters[1]); // Cached and the same statically created filter instance
Filters\FilterProviderTest.cs (9)
34Assert.Same(filter, item.Filter); 35Assert.Same(filter, item.Descriptor.Filter); 65Assert.Same(filter, item.Filter); 66Assert.Same(filterFactory.Object, item.Descriptor.Filter); 97Assert.Same(filter, item.Filter); 98Assert.Same(filterFactory.Object, item.Descriptor.Filter); 128Assert.Same(filter.Object, item.Filter); 129Assert.Same(filterFactory.Object, ((IFilterContainer)item.Filter).FilterDefinition); 130Assert.Same(filterFactory.Object, item.Descriptor.Filter);
Filters\MiddlewareFilterBuilderTest.cs (1)
71Assert.Same(pipeline1, pipeline2);
Filters\MiddlewareFilterTest.cs (4)
42Assert.Same(resourceExecutingContext, feature.ResourceExecutingContext); 43Assert.Same(resourceExecutionDelegate, feature.ResourceExecutionDelegate); 365Assert.Same(_controller, controller); 372Assert.Same(_controller, controller);
Formatters\TextOutputFormatterTests.cs (2)
123Assert.Same(firstContentType.Buffer, secondContentType.Buffer); 174Assert.Same(contentType, formatterContext.ContentType.Buffer);
HttpOkObjectResultTest.cs (1)
43Assert.Same(value, result.Value);
Infrastructure\ActionResultTypeMapperTest.cs (3)
24Assert.Same(expected, result); 40Assert.Same(returnValue, httpResult.Result); 71Assert.Same(returnValue, objectResult.Value);
Infrastructure\ActionSelectorTest.cs (14)
62Assert.Collection(candidates, (a) => Assert.Same(actions[0], a)); 105Assert.Collection(candidates, (a) => Assert.Same(actions[0], a)); 352Assert.Same(actions[0], action); 386Assert.Same(actions[0], action); 420Assert.Same(actions[0], action); 454Assert.Same(actions[0], action); 488Assert.Same(actions[0], action); 546Assert.Same(action, actionWithConstraints); 644Assert.Same(action, actionWithConstraints); 670Assert.Same(action, nullConstraint); 700Assert.Same(action, actionWithConstraints); 733Assert.Same(action, best); 770Assert.Same(action, best); 808Assert.Same(action, best);
Infrastructure\AsyncEnumerableReaderTest.cs (2)
79Assert.Same(reader1, reader2); 96Assert.Same(reader1, reader2);
Infrastructure\ClientErrorResultFilterTest.cs (5)
29Assert.Same(actionResult, context.Result); 50Assert.Same(actionResult, context.Result); 66Assert.Same(Result, context.Result); 84Assert.Same(Result, context.Result); 102Assert.Same(actionResult, context.Result);
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
57Assert.Same(cacheEntry, cacheEntry2);
Infrastructure\ControllerActionInvokerTest.cs (16)
224Assert.Same(valueProviderFactory1, controllerContext.ValueProviderFactories[0]); 225Assert.Same(valueProviderFactory2, controllerContext.ValueProviderFactories[1]); 256Assert.Same(valueProviderFactory2, controllerContext.ValueProviderFactories[0]); 285Assert.Same(Result, result); 314Assert.Same(Result, result); 371Assert.Same(context.Result, result.Object); 440Assert.Same(context.Result, result.Object); 554Assert.Same(Exception, context.Exception); 597Assert.Same(exception, context.Exception); 640Assert.Same(exception, context.Exception); 719Assert.Same(expected, context.Result); 757Assert.Same(expected, context.Exception); 758Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 796Assert.Same(expected, context.Exception); 797Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 814Assert.Same(Exception, context.Exception);
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (9)
36descriptor => Assert.Same(expected1, descriptor), 37descriptor => Assert.Same(expected2, descriptor), 38descriptor => Assert.Same(expected3, descriptor)); 62Assert.Same(collection1, collection2); 116item => Assert.Same(expected1, item)); 135Assert.Same(captured, collection2); 138item => Assert.Same(expected2, item)); 152Assert.Same(captured, collection3); 155item => Assert.Same(expected3, item));
Infrastructure\DefaultOutputFormatterSelectorTest.cs (7)
42Assert.Same(formatters[1], formatter); 72Assert.Same(formatters[1], formatter); 172Assert.Same(formatters[1], formatter); 201Assert.Same(formatters[1], formatter); 231Assert.Same(formatters[0], formatter); 328Assert.Same(formatters[0], formatter); 359Assert.Same(formatters[0], formatter);
Infrastructure\ModelStateInvalidFilterTest.cs (2)
31Assert.Same(expected, context.Result); 69Assert.Same(expected, context.Result);
LocalRedirectResultTest.cs (3)
29Assert.Same(url, result.Url); 44Assert.Same(url, result.Url); 59Assert.Same(url, result.Url);
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
211Assert.Same(model, bindingContext.Result.Model);
ModelBinding\Binders\BodyModelBinderTests.cs (1)
586Assert.Same(canReadFormatter1, bindingContext.Result.Model);
ModelBinding\Binders\CollectionModelBinderTest.cs (3)
117Assert.Same(list, bindingContext.Result.Model); 169Assert.Same(list, bindingContext.Result.Model); 375Assert.Same(list, bindingContext.Result.Model);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
454Assert.Same(originalModel, bindingContext.Model); 1014Assert.Same(originalCollection, model.ReadOnlyList);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
330Assert.Same(model, returnedPerson); 610Assert.Same(originalModel, bindingContext.Model); 1176Assert.Same(originalCollection, model.ReadOnlyList);
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
86Assert.Same(dictionary, bindingContext.Result.Model);
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (4)
66Assert.Same(testBinder, headerModelBinder.InnerModelBinder); 89Assert.Same(testBinder, headerModelBinder.InnerModelBinder); 115Assert.Same(testBinder, headerModelBinder.InnerModelBinder); 159Assert.Same(testBinder, headerModelBinder.InnerModelBinder);
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
248Assert.Same(expectedValueProvider, bindingContext.ValueProvider); 272Assert.Same(testValueProvider.Object, bindingContext.ValueProvider);
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (2)
33Assert.Same(value, bindingContext.Result.Model); 61Assert.Same(value, bindingContext.Result.Model);
ModelBinding\BindingSourceValueProviderTest.cs (1)
72Assert.Same(valueProvider, result);
ModelBinding\CompositeValueProviderTest.cs (1)
134Assert.Same(valueProvider1.Object, filteredProvider);
ModelBinding\DefaultModelBindingContextTest.cs (7)
51Assert.Same(newModelMetadata.BinderModelName, bindingContext.BinderModelName); 52Assert.Same(newModelMetadata.BindingSource, bindingContext.BindingSource); 56Assert.Same(newModelMetadata, bindingContext.ModelMetadata); 58Assert.Same(originalValueProvider, bindingContext.ValueProvider); 82vp => Assert.Same(original[1], vp)); 110vp => Assert.Same(original[1], vp)); 139vp => Assert.Same(original[2], vp));
ModelBinding\EnumerableValueProviderTest.cs (1)
268Assert.Same(result, provider);
ModelBinding\FormFileValueProviderFactoryTest.cs (3)
71Assert.Same(exception, ex.InnerException); 85Assert.Same(exception, ex.InnerException); 99Assert.Same(exception, ex);
ModelBinding\FormValueProviderFactoryTest.cs (3)
59Assert.Same(exception, ex.InnerException); 73Assert.Same(exception, ex.InnerException); 87Assert.Same(exception, ex);
ModelBinding\JQueryFormValueProviderFactoryTest.cs (3)
144Assert.Same(exception, ex.InnerException); 158Assert.Same(exception, ex.InnerException); 172Assert.Same(exception, ex);
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (15)
38Assert.Same(metadata1, metadata2); 39Assert.Same(metadata1.Attributes, metadata2.Attributes); 40Assert.Same(metadata1.BindingMetadata, metadata2.BindingMetadata); 41Assert.Same(metadata1.DisplayMetadata, metadata2.DisplayMetadata); 42Assert.Same(metadata1.ValidationMetadata, metadata2.ValidationMetadata); 56Assert.Same(metadata1, metadata2); 129Assert.Same(properties1[i], properties2[i]); 130Assert.Same(properties1[i].Attributes, properties2[i].Attributes); 131Assert.Same(properties1[i].BindingMetadata, properties2[i].BindingMetadata); 132Assert.Same(properties1[i].DisplayMetadata, properties2[i].DisplayMetadata); 133Assert.Same(properties1[i].ValidationMetadata, properties2[i].ValidationMetadata); 148Assert.Same(metadata1.Properties, metadata2.Properties); 261Assert.Same(metadata1, metadata2); 329Assert.Same(metadata1, metadata2); 412Assert.Same(metadata1, metadata2);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (3)
499Assert.Same(expectedProperties[i], properties[i]); 701Assert.Same(SinglePropertiesEvaluation, secondPropertiesEvaluation); 893Assert.Same(value, validationFilter);
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (3)
124Assert.Same(attribute, validatorMetadata); 143Assert.Same(attribute, validatorMetadata); 163Assert.Same(attribute, validatorMetadata);
ModelBinding\Metadata\ModelBinderAttributeTest.cs (2)
36Assert.Same(BindingSource.Custom, source); 49Assert.Same(BindingSource.Custom, source);
ModelBinding\ModelBinderFactoryTest.cs (7)
277Assert.Same(result1, result2); 364Assert.Same(expectedInfo.PropertyFilterProvider, context.BindingInfo.PropertyFilterProvider); 386Assert.Same(modelBinder, result); 410Assert.Same(inner, binder); 472Assert.Same(inner, binder); 565Assert.Same(inner, result2); 629Assert.Same(inner, result2);
ModelBinding\ModelBindingHelperTest.cs (3)
1306element => { Assert.Same(value[0], element); }, 1307element => { Assert.Same(value[1], element); }, 1308element => { Assert.Same(value[2], element); });
ModelBinding\ModelBindingResultTest.cs (1)
19Assert.Same(model, result.Model);
ModelBinding\ParameterBinderTest.cs (4)
345Assert.Same(model, result.Model); 400Assert.Same(model, result.Model); 455Assert.Same(model, result.Model); 509Assert.Same(model, result.Model);
ModelBinding\RouteValueProviderTests.cs (1)
248Assert.Same(result, provider);
ModelBinding\Validation\ClientValidatorCacheTest.cs (2)
32Assert.Same(validators1, validators2); 61Assert.Same(validator1, Assert.Single(validators2.OfType<RequiredAttributeAdapter>())); // cached
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (9)
29Assert.Same(metadata.ElementMetadata, e.Metadata); 35Assert.Same(metadata.ElementMetadata, e.Metadata); 41Assert.Same(metadata.ElementMetadata, e.Metadata); 69Assert.Same(metadata.ElementMetadata, e.Metadata); 75Assert.Same(metadata.ElementMetadata, e.Metadata); 81Assert.Same(metadata.ElementMetadata, e.Metadata); 104Assert.Same(metadata.ElementMetadata, e.Metadata); 110Assert.Same(metadata.ElementMetadata, e.Metadata); 116Assert.Same(metadata.ElementMetadata, e.Metadata);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (12)
36Assert.Same(metadata.Properties["Age"], entry.Metadata); 42Assert.Same(metadata.Properties["Id"], entry.Metadata); 48Assert.Same(metadata.Properties["Name"], entry.Metadata); 76Assert.Same(metadata.Properties["Age"], entry.Metadata); 82Assert.Same(metadata.Properties["Id"], entry.Metadata); 88Assert.Same(metadata.Properties["Name"], entry.Metadata); 110Assert.Same(metadata.Properties["Age"], entry.Metadata); 116Assert.Same(metadata.Properties["Id"], entry.Metadata); 122Assert.Same(metadata.Properties["Name"], entry.Metadata); 145Assert.Same(metadata.Properties["Age"], entry.Metadata); 151Assert.Same(metadata.Properties["Id"], entry.Metadata); 157Assert.Same(metadata.Properties["Name"], entry.Metadata);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (13)
29Assert.Same(metadata.ElementMetadata, e.Metadata); 35Assert.Same(metadata.ElementMetadata, e.Metadata); 41Assert.Same(metadata.ElementMetadata, e.Metadata); 69Assert.Same(metadata.ElementMetadata, e.Metadata); 75Assert.Same(metadata.ElementMetadata, e.Metadata); 81Assert.Same(metadata.ElementMetadata, e.Metadata); 104Assert.Same(metadata.ElementMetadata, e.Metadata); 110Assert.Same(metadata.ElementMetadata, e.Metadata); 116Assert.Same(metadata.ElementMetadata, e.Metadata); 140Assert.Same(metadata.ElementMetadata, e.Metadata); 146Assert.Same(metadata.ElementMetadata, e.Metadata); 170Assert.Same(metadata.ElementMetadata, e.Metadata); 176Assert.Same(metadata.ElementMetadata, e.Metadata);
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (7)
40Assert.Same(valueMetadata, e.Metadata); 46Assert.Same(valueMetadata, e.Metadata); 52Assert.Same(valueMetadata, e.Metadata); 87Assert.Same(valueMetadata, e.Metadata); 93Assert.Same(valueMetadata, e.Metadata); 128Assert.Same(valueMetadata, e.Metadata); 134Assert.Same(valueMetadata, e.Metadata);
ModelBinding\Validation\ValidatorCacheTest.cs (1)
32Assert.Same(validators1, validators2);
ProducesAttributeTests.cs (1)
140Assert.Same(personType, producesAttribute.Type);
ProducesResponseTypeAttributeTests.cs (1)
57Assert.Same(typeof(Person), producesResponseTypeAttribute.Type);
RedirectResultTest.cs (3)
46Assert.Same(url, result.Url); 61Assert.Same(url, result.Url); 76Assert.Same(url, result.Url);
Routing\ActionEndpointDataSourceBaseTest.cs (1)
62Assert.Same(endpoints1, endpoints2);
Routing\ActionEndpointFactoryTest.cs (1)
287Assert.Same(del, endpoint.RequestDelegate);
Routing\AttributeRouteTest.cs (1)
92Assert.Same(actions[1], selected);
Routing\ControllerActionEndpointDataSourceTest.cs (15)
95Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 100Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 122Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 177Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 183Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 204Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 264Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 269Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 291Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 346Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 352Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 373Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 440Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 447Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 472Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (6)
189Assert.Same(ControllerEndpoints[0], candidates[0].Endpoint); 267Assert.Same(ControllerEndpoints[0], candidates[0].Endpoint); 288Assert.Same(State, kvp.Value); 388Assert.Same(State, kvp.Value); 433Assert.Same(ControllerEndpoints[1], candidates[0].Endpoint); 434Assert.Same(ControllerEndpoints[2], candidates[1].Endpoint);
Routing\UrlHelperTestBase.cs (8)
637Assert.Same(id, dictionary["ID"]); 638Assert.Same(isprint, dictionary["isprint"]); 682Assert.Same(action, dict["ACTION"]); 683Assert.Same(controller, dict["Controller"]); 684Assert.Same(id, dict["ID"]); 902Assert.Same(expectedUrlHelper, urlHelper); 921Assert.Same(urlHelper, actionContext.HttpContext.Items[typeof(IUrlHelper)] as IUrlHelper); 944Assert.Same(urlHelper, actionContext.HttpContext.Items[typeof(IUrlHelper)] as IUrlHelper);
Routing\ViewEnginePathTest.cs (2)
32Assert.Same(input, result); 47Assert.Same(input, result);
ServiceFilterAttributeTest.cs (1)
26Assert.Same(expected, filter);
TypeFilterAttributeTest.cs (6)
29Assert.Same(value, testFilter.Value); 30Assert.Same(uri, testFilter.Uri); 54Assert.Same(value, testFilter.Value); 55Assert.Same(uri, testFilter.Uri); 79Assert.Same(value, testFilter.Value); 80Assert.Same(uri, testFilter.Uri);
VirtualFileResultTest.cs (2)
61Assert.Same(webHostFileProvider, fileProvider); 78Assert.Same(fileProvider, actual);
Microsoft.AspNetCore.Mvc.Core.TestCommon (38)
CommonResourceInvokerTest.cs (38)
112Assert.Same(Exception, exception); 158Assert.Same(Exception, exception); 727Assert.Same(expected, thrown); 879Assert.Same(Result, context.Result); 921Assert.Same(Result, context.Result); 1021Assert.Same(exception, context.Exception); 1063Assert.Same(exception, context.Exception); 1107Assert.Same(exception, context.Exception); 1149Assert.Same(exception, context.Exception); 1229Assert.Same(Result, context.Result); 1266Assert.Same(expected, context.Result); 1305Assert.Same(expected, context.Result); 1333Assert.Same(Exception, context.Exception); 1334Assert.Same(Exception, context.ExceptionDispatchInfo.SourceException); 1372Assert.Same(expected, context.Exception); 1373Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1392Assert.Same(Exception, context.Exception); 1393Assert.Same(Exception, context.ExceptionDispatchInfo.SourceException); 1441Assert.Same(expected, exception); 1442Assert.Same(expected, context.Exception); 1443Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1477Assert.Same(expected, exception); 1478Assert.Same(expected, context.Exception); 1479Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1513Assert.Same(expected, exception); 1514Assert.Same(expected, context.Exception); 1515Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1569Assert.Same(expected.Object, context.Result); 1666Assert.Same(expected.Object, context.Result); 1737.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1740.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1769Assert.Same(Result, c.Result); 1840.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1843.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1872Assert.Same(Result, c.Result); 1937.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1940.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1969Assert.Same(Result, c.Result);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (10)
DataAnnotationsClientModelValidatorProviderTest.cs (1)
66Assert.Same(expectedValidatorItem.Validator, validatorItem.Validator);
DataAnnotationsMetadataProviderTest.cs (5)
121Assert.Same(displayFormat.DataFormatString, context.DisplayMetadata.DisplayFormatString); 144Assert.Same(displayFormat.DataFormatString, context.DisplayMetadata.DisplayFormatString); 1534Assert.Same(attribute, validatorMetadata); 1555Assert.Same(attribute, validatorMetadata); 1576Assert.Same(attribute, validatorMetadata);
DataAnnotationsModelValidatorTest.cs (1)
32Assert.Same(attribute, validator.Attribute);
DataTypeClientModelValidatorProviderTest.cs (1)
57Assert.Same(expectedValidatorItem.Validator, validatorItem.Validator);
ModelMetadataProviderTest.cs (2)
637Assert.Same(typeof(ComplexObjectModelBinder), metadata.BinderType); 656Assert.Same(typeof(ComplexObjectModelBinder), metadata.BinderType);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
DelegatingEnumerableTest.cs (1)
52Assert.Same(errors[i], errorWrapper.SerializableError);
ProblemDetailsWrapperProviderFactoryTest.cs (2)
36Assert.Same(instance, wrapper.ProblemDetails); 53Assert.Same(instance, wrapper.ProblemDetails);
SerializableErrorWrapperProviderTest.cs (1)
36Assert.Same(serializableError, errorWrapper.SerializableError);
SerializableErrorWrapperTests.cs (1)
38Assert.Same(serializableError, wrapper.SerializableError);
XmlDataContractSerializerOutputFormatterTest.cs (1)
170Assert.Same(writerSettings, formatter.WriterSettings);
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
TryUpdateModelIntegrationTest.cs (9)
44Assert.Same(oldModel, model); 187Assert.Same(oldModel, model); 269Assert.Same(collection, model.Address); 651Assert.Same(oldModel, model); 787Assert.Same(oldModel, model); 864Assert.Same(collection, model.Address); 1121Assert.Same(oldModel, model); 1189Assert.Same(oldModel, model); 1241Assert.Same(oldModel, model);
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
122Assert.Same(dataAnnotationLocalizerProvider, actualOptions.Value.DataAnnotationLocalizerProvider);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
122Assert.Same(dataAnnotationLocalizerProvider, actualOptions.Value.DataAnnotationLocalizerProvider);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (3)
45Assert.Same(typeof(NewtonsoftJsonHelper), jsonHelper.ImplementationType); 60Assert.Same(typeof(BsonTempDataSerializer), tempDataSerializer.ImplementationType); 75Assert.Same(typeof(NewtonsoftJsonResultExecutor), jsonResultExecutor.ImplementationType);
NewtonsoftJsonInputFormatterTest.cs (2)
148Assert.Same(serializerSettings, formatter.SerializerSettings); 192Assert.Same(settings.ContractResolver, actual.ContractResolver);
NewtonsoftJsonOutputFormatterTest.cs (1)
44Assert.Same(serializerSettings, jsonFormatter.SerializerSettings);
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (2)
79Assert.Same(reader1, reader2); 96Assert.Same(reader1, reader2);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
CSharpCompilerTest.cs (2)
31Assert.Same(DependencyContextCompilationOptions.Default, options); 45Assert.Same(DependencyContextCompilationOptions.Default, options);
PageLoaderMatcherPolicyTest.cs (3)
31Assert.Same(compiled.Endpoint, candidateSet[0].Endpoint); 56Assert.Same(compiled.Endpoint, candidateSet[0].Endpoint); 84Assert.Same(compiled.Endpoint, candidateSet[0].Endpoint);
Microsoft.AspNetCore.Mvc.Razor.Test (74)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (3)
141Assert.Same(item.Item, item1); 145Assert.Same(typeof(TestReloadedPage), item.Item.Type); 146Assert.Same("Item2", item.Item.Identifier);
Compilation\DefaultRazorPageFactoryProviderTest.cs (1)
39Assert.Same(descriptor, result.ViewDescriptor);
Compilation\RazorPagePropertyActivatorTest.cs (2)
190Assert.Same(original, viewDataDictionary); 214Assert.Same(original, viewDataDictionary);
DefaultTagHelperFactoryTest.cs (1)
46Assert.Same(viewDataValue, helper.ViewDataValue);
RazorPageActivatorTest.cs (20)
61Assert.Same(DiagnosticListener, instance.DiagnosticSource); 62Assert.Same(HtmlEncoder, instance.HtmlEncoder); 63Assert.Same(JsonHelper, instance.Json); 64Assert.Same(urlHelper, instance.Url); 65Assert.Same(viewContext.ViewData, instance.ViewData); 78Assert.Same(viewContext, service.ViewContext); 79Assert.Same(viewContext, keyedService.ViewContext); 99Assert.Same(DiagnosticListener, instance.DiagnosticSource); 100Assert.Same(HtmlEncoder, instance.HtmlEncoder); 126Assert.Same(DiagnosticListener, instance.DiagnosticSource); 127Assert.Same(HtmlEncoder, instance.HtmlEncoder); 128Assert.Same(JsonHelper, instance.Json); 129Assert.Same(urlHelper, instance.Url); 130Assert.Same(viewContext.ViewData, instance.ViewData); 150Assert.Same(viewContext, service.ViewContext); 151Assert.Same(viewContext, keyedService.ViewContext); 186Assert.Same(viewContext.ViewData, page.ViewData); 205Assert.Same(result1, result2); 220Assert.Same(result1, result2); 228Assert.Same(result3, result4);
RazorPageCreateModelExpressionTest.cs (2)
40Assert.Same(modelExplorer, modelExpression.ModelExplorer); 65Assert.Same(modelExplorer, modelExpression.ModelExplorer);
RazorPageTest.cs (8)
151Assert.Same(encoder, page.HtmlEncoder); 169Assert.Same(originalEncoder, page.HtmlEncoder); 225Assert.Same(originalWriter, page.Output); 940Assert.Same(HtmlString.Empty, actual); 1275Assert.Same(writer, page.ViewContext.Writer); 1292Assert.Same(writer, page.ViewContext.Writer); 1298Assert.Same(defaultWriter, poppedWriter); 1299Assert.Same(defaultWriter, page.ViewContext.Writer);
RazorViewEngineTest.cs (31)
158Assert.Same(page, view.RazorPage); 190Assert.Same(page, view1.RazorPage); 201Assert.Same(page, view2.RazorPage); 325Assert.Same(page, view.RazorPage); 356Assert.Same(page, view.RazorPage); 522Assert.Same(page, view.RazorPage); 558Assert.Same(areaPage, view1.RazorPage); 572Assert.Same(nonAreaPage, view2.RazorPage); 584Assert.Same(areaPage, view3.RazorPage); 586Assert.Same(nonAreaPage, view4.RazorPage); 622Assert.Same(areaPage1, view1.RazorPage); 637Assert.Same(areaPage2, view2.RazorPage); 649Assert.Same(areaPage1, view3.RazorPage); 651Assert.Same(areaPage2, view4.RazorPage); 844Assert.Same(page, view1.RazorPage); 857Assert.Same(page, view2.RazorPage); 881Assert.Same(page, view1.RazorPage); 894Assert.Same(page, view2.RazorPage); 932Assert.Same(page1, view1.RazorPage); 941Assert.Same(page2, view2.RazorPage); 1055Assert.Same(page, view.RazorPage); 1190Assert.Same(page, result.Page); 1249Assert.Same(page, result.Page); 1309Assert.Same(page.Object, result.Page); 1435Assert.Same(page, result.Page); 1463Assert.Same(page, result.Page); 1491Assert.Same(page, result.Page); 1516Assert.Same(pagePath, result); 1569Assert.Same(pagePath, result); 2003Assert.Same(page, view.RazorPage); 2021Assert.Same(hotReloadedPage, view.RazorPage);
RazorViewTest.cs (5)
65Assert.Same(viewData, v.ViewContext.ViewData); 82Assert.Same(c, viewContext); 92Assert.Same(expectedWriter, viewContext.Writer); 103Assert.Same(viewData, v.ViewContext.ViewData); 125Assert.Same(c, viewContext);
TagHelpers\TagHelperComponentPropertyActivatorTest.cs (1)
28Assert.Same(viewContext, tagHelperComponent.ViewContext);
Microsoft.AspNetCore.Mvc.RazorPages.Test (228)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (21)
38Assert.Same(actionDescriptor.ActionConstraints, actual.ActionConstraints); 39Assert.Same(actionDescriptor.AttributeRouteInfo, actual.AttributeRouteInfo); 40Assert.Same(actionDescriptor.RelativePath, actual.RelativePath); 41Assert.Same(actionDescriptor.RouteValues, actual.RouteValues); 42Assert.Same(actionDescriptor.ViewEnginePath, actual.ViewEnginePath); 86Assert.Same(pageApplicationModel.PageType, actual.PageTypeInfo); 87Assert.Same(pageApplicationModel.DeclaredModelType, actual.DeclaredModelTypeInfo); 88Assert.Same(pageApplicationModel.ModelType, actual.ModelTypeInfo); 89Assert.Same(pageApplicationModel.HandlerType, actual.HandlerTypeInfo); 90Assert.Same(pageApplicationModel.Properties, actual.Properties); 174Assert.Same(globalFilters[0], filterDescriptor.Filter); 179Assert.Same(pageApplicationModel.Filters[0], filterDescriptor.Filter); 296Assert.Same(parameterModel2.BindingInfo, p.BindingInfo); 336Assert.Same(propertyModel.PropertyName, p.Name); 337Assert.Same(typeof(int), p.ParameterType); 338Assert.Same(propertyModel.PropertyInfo, p.Property); 339Assert.Same(propertyModel.BindingInfo, p.BindingInfo); 385Assert.Same(propertyModel1.PropertyName, p.Name); 386Assert.Same(typeof(int), p.ParameterType); 387Assert.Same(propertyModel1.PropertyInfo, p.Property); 388Assert.Same(propertyModel1.BindingInfo, p.BindingInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (17)
457Assert.Same(typeof(EmptyPage).GetTypeInfo(), pageModel.HandlerType); 458Assert.Same(typeof(EmptyPage).GetTypeInfo(), pageModel.ModelType); 459Assert.Same(typeof(EmptyPage).GetTypeInfo(), pageModel.PageType); 478Assert.Same(typeof(EmptyPageModel).GetTypeInfo(), pageModel.DeclaredModelType); 479Assert.Same(typeof(EmptyPageModel).GetTypeInfo(), pageModel.ModelType); 480Assert.Same(typeof(EmptyPageModel).GetTypeInfo(), pageModel.HandlerType); 481Assert.Same(typeof(EmptyPageWithPageModel).GetTypeInfo(), pageModel.PageType); 591Assert.Same(typeof(ModelWithHandler).GetTypeInfo(), pageModel.HandlerType); 592Assert.Same(typeof(ModelWithHandler).GetTypeInfo(), pageModel.ModelType); 593Assert.Same(typeof(PageWithHandlerThatGetsIgnored).GetTypeInfo(), pageModel.PageType); 640Assert.Same(typeof(PageWithHandler).GetTypeInfo(), pageModel.HandlerType); 641Assert.Same(typeof(PocoModel).GetTypeInfo(), pageModel.ModelType); 642Assert.Same(typeof(PageWithHandler).GetTypeInfo(), pageModel.PageType); 785handler => Assert.Same(expected, handler.MethodInfo)); 815handler => Assert.Same(expected, handler.MethodInfo)); 843handler => Assert.Same(expected, handler.MethodInfo)); 875Assert.Same(typeInfo.GetMethod(nameof(PageModelWithHandlerNames.OnPutDeleteAsync)), handler.MethodInfo);
ApplicationModels\PageRouteTransformerConventionTest.cs (1)
24Assert.Same(transformer, model.RouteParameterTransformer);
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (2)
37convention => Assert.Same(applicationModelConvention, convention), 38convention => Assert.Same(routeModelConvention, convention));
DependencyInjection\PageConventionCollectionExtensionsTest.cs (3)
37model => Assert.Same(filter, Assert.Single(model.Filters)), 38model => Assert.Same(filter, Assert.Single(model.Filters)), 39model => Assert.Same(filter, Assert.Single(model.Filters)));
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (2)
60actual => Assert.Same(expected, actual)); 85actual => Assert.Same(expected, actual));
Filters\PageSaveTempDataPropertyFilterFactoryTest.cs (1)
28Assert.Same(lifecycleProperties, pageFilter.Properties);
Filters\PageViewDataAttributeFilterFactoryTest.cs (1)
27Assert.Same(properties, filter.Properties);
Filters\PageViewDataAttributeFilterTest.cs (1)
51Assert.Same(handler, filter.Subject);
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (9)
24Assert.Same(model, m); 51Assert.Same(model, m); 58Assert.Same(model, m); 90Assert.Same(handlerModel, m); 117Assert.Same(handlerModel, m); 179Assert.Same(parameterModel, m); 210Assert.Same(parameterModel, m); 279Assert.Same(propertyModel, m); 310Assert.Same(propertyModel, m);
Infrastructure\DefaultPageFactoryProviderTest.cs (4)
62Assert.Same(pageContext, testPage.PageContext); 98Assert.Same(urlHelper, testPage.UrlHelper); 99Assert.Same(htmlEncoder, testPage.HtmlEncoder); 242Assert.Same(pageContext.ViewData, testPage.ViewData);
Infrastructure\DefaultPageLoaderTest.cs (6)
60Assert.Same(pageApplicationModel1, c.PageApplicationModel); 69Assert.Same(pageApplicationModel2, c.PageApplicationModel); 77Assert.Same(pageApplicationModel2, c.PageApplicationModel); 269Assert.Same(result1, result2); 351Assert.Same(pageDescriptor, result1); 352Assert.Same(pageDescriptor, result2);
Infrastructure\DefaultPageModelActivatorProviderTest.cs (1)
87Assert.Same(generator, modelWithServices.Generator);
Infrastructure\DefaultPageModelFactoryProviderTest.cs (3)
78Assert.Same(pageContext, testModel.ContextWithAttribute); 101Assert.Same(disposer, actual); 123Assert.Same(disposer, actual);
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (3)
39Assert.Same(expected, context.Result); 72Assert.Same(expected, context.Result); 106Assert.Same(expected, context.Result);
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (6)
205Assert.Same(LoadedEndpoints[0], candidates[0].Endpoint); 246Assert.Same(LoadedEndpoints[0], candidates[0].Endpoint); 262Assert.Same(State, kvp.Value); 389Assert.Same(State, kvp.Value); 433Assert.Same(LoadedEndpoints[0], candidates[0].Endpoint); 434Assert.Same(LoadedEndpoints[1], candidates[1].Endpoint);
Infrastructure\PageActionDescriptorProviderTest.cs (1)
199Assert.Same(expected, actual);
Infrastructure\PageActionEndpointDataSourceTest.cs (5)
88Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 158Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 165Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 208Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 256Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
Infrastructure\PageActionInvokerProviderTest.cs (11)
68Assert.Same(factory, entry.PageFactory); 69Assert.Same(releaser, entry.ReleasePage); 133Assert.Same(factory, entry.PageFactory); 134Assert.Same(releaser, entry.ReleasePage); 135Assert.Same(modelFactory, entry.ModelFactory); 136Assert.Same(modelDisposer, entry.ReleaseModel); 140Assert.Same(compiledPageActionDescriptor, pageContext.ActionDescriptor); 141Assert.Same(context.ActionContext.HttpContext, pageContext.HttpContext); 142Assert.Same(context.ActionContext.ModelState, pageContext.ModelState); 143Assert.Same(context.ActionContext.RouteData, pageContext.RouteData); 241Assert.Same(entry1, entry2);
Infrastructure\PageActionInvokerTest.cs (54)
112Assert.Same(valueProviderFactory1, pageContext.ValueProviderFactories[0]); 113Assert.Same(valueProviderFactory2, pageContext.ValueProviderFactories[1]); 146Assert.Same(valueProviderFactory2, pageContext.ValueProviderFactories[0]); 172Assert.Same(instance, c.HandlerInstance); 180Assert.Same(instance, c.Controller); 187Assert.Same(instance, c.Controller); 188Assert.Same(result, c.Result); 201Assert.Same(page, page.ViewContext.ViewData.Model); 204Assert.Same(page, pageResult.Page); 205Assert.Same(page, pageResult.Model); 206Assert.Same(page.ViewContext.ViewData, pageResult.ViewData); 228Assert.Same(instance, c.HandlerInstance); 236Assert.Same(instance, c.Controller); 243Assert.Same(instance, c.Controller); 244Assert.Same(result, c.Result); 260Assert.Same(page, pageResult.Page); 262Assert.Same(page.ViewContext.ViewData, pageResult.ViewData); 285Assert.Same(instance, c.HandlerInstance); 293Assert.Same(instance, c.Controller); 300Assert.Same(instance, c.Controller); 301Assert.Same(result, c.Result); 317Assert.Same(pageModel, pageModel.ViewData.Model); 321Assert.Same(pageModel, pageResult.Model); 322Assert.Same(pageModel.PageContext.ViewData, pageResult.ViewData); 371.Callback<PageHandlerExecutingContext>(c => Assert.Same(handler, c.HandlerMethod)) 375.Callback<PageHandlerExecutedContext>(c => Assert.Same(handler, c.HandlerMethod)) 381.Callback<PageHandlerSelectedContext>(c => Assert.Same(handler, c.HandlerMethod)) 385.Callback<PageHandlerExecutingContext>(c => Assert.Same(handler, c.HandlerMethod)) 389.Callback<PageHandlerExecutedContext>(c => Assert.Same(handler, c.HandlerMethod)) 428Assert.Same(handler, c.HandlerMethod); 436.Callback<PageHandlerSelectedContext>(c => Assert.Same(handler, c.HandlerMethod)) 443Assert.Same(handler, c.HandlerMethod); 517Assert.Same(Result, result); 547Assert.Same(Result, result); 579Assert.Same(expectedResult, pageResult); 613Assert.Same(expectedResult, pageResult); 648Assert.Same(expectedResult, pageResult); 682Assert.Same(expectedResult, pageResult); 717Assert.Same(expectedResult, pageResult); 751Assert.Same(expectedResult, pageResult); 787Assert.Same(expectedResult, pageResult); 822Assert.Same(expectedResult, pageResult); 885Assert.Same(context.Result, result.Object); 957Assert.Same(context.Result, result.Object); 1062Assert.Same(Exception, c.Exception); 1077Assert.Same(Exception, context.Exception); 1122Assert.Same(exception, context.Exception); 1167Assert.Same(exception, context.Exception); 1248Assert.Same(expected, context.Result); 1287Assert.Same(expected, context.Exception); 1288Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1326Assert.Same(expected, context.Exception); 1327Assert.Same(expected, context.ExceptionDispatchInfo.SourceException); 1344Assert.Same(Exception, context.Exception);
Infrastructure\PageBinderFactoryTest.cs (6)
45Assert.Same(PageBinderFactory.NullPropertyBinder, factory); 71Assert.Same(PageBinderFactory.NullPropertyBinder, factory); 96Assert.Same(PageBinderFactory.NullPropertyBinder, factory); 122Assert.Same(PageBinderFactory.NullPropertyBinder, factory); 147Assert.Same(PageBinderFactory.NullPropertyBinder, factory); 173Assert.Same(PageBinderFactory.NullPropertyBinder, factory);
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (1)
55Assert.Same(simpleModel, instance);
PageModelTest.cs (33)
62Assert.Same(url, result.Url); 79Assert.Same(url, result.Url); 96Assert.Same(url, result.Url); 143Assert.Same(url, result.Url); 160Assert.Same(url, result.Url); 177Assert.Same(url, result.Url); 194Assert.Same(url, result.Url); 875Assert.Same(routeName, resultTemporary.RouteName); 892Assert.Same(routeName, resultTemporary.RouteName); 909Assert.Same(routeName, resultPermanent.RouteName); 926Assert.Same(routeName, resultPermanent.RouteName); 1242Assert.Same(url, result.PageName); 1262Assert.Same(pageName, resultPermanent.PageName); 1283Assert.Same(routeName, resultPermanent.PageName); 1304Assert.Same(routeName, resultTemporary.RouteName); 1325Assert.Same(routeName, resultTemporary.RouteName); 1346Assert.Same(routeName, resultPermanent.RouteName); 1367Assert.Same(routeName, resultPermanent.RouteName); 1383Assert.Same(fileContents, result.FileContents); 1400Assert.Same(fileContents, result.FileContents); 1461Assert.Same(fileStream, result.FileStream); 1487Assert.Same(fileStream, result.FileStream); 1607Assert.Same(Encoding.UTF8, MediaType.GetEncoding(actualContentResult.ContentType)); 1743Assert.Same(pageContext, pageModel.PageContext); 1744Assert.Same(httpContext, pageModel.HttpContext); 1745Assert.Same(httpContext.Request, pageModel.Request); 1746Assert.Same(httpContext.Response, pageModel.Response); 1747Assert.Same(modelState, pageModel.ModelState); 1748Assert.Same(viewData, pageModel.ViewData); 1807Assert.Same(urlHelper, pageModel.Url); 2003Assert.Same(viewData, result.ViewData); 2025Assert.Same(viewData, result.ViewData); 2042Assert.Same(arguments, result.Arguments);
PageTest.cs (35)
42Assert.Same(pageContext, page.PageContext); 43Assert.Same(viewContext, page.ViewContext); 44Assert.Same(httpContext, page.HttpContext); 45Assert.Same(httpContext.Request, page.Request); 46Assert.Same(httpContext.Response, page.Response); 47Assert.Same(modelState, page.ModelState); 48Assert.Same(tempData, page.TempData); 65Assert.Same(url, result.Url); 82Assert.Same(url, result.Url); 99Assert.Same(url, result.Url); 116Assert.Same(url, result.Url); 163Assert.Same(url, result.Url); 180Assert.Same(url, result.Url); 197Assert.Same(url, result.Url); 214Assert.Same(url, result.Url); 895Assert.Same(routeName, resultTemporary.RouteName); 912Assert.Same(routeName, resultTemporary.RouteName); 929Assert.Same(routeName, resultPermanent.RouteName); 946Assert.Same(routeName, resultPermanent.RouteName); 966Assert.Same(routeName, resultTemporary.RouteName); 987Assert.Same(routeName, resultTemporary.RouteName); 1008Assert.Same(routeName, resultPermanent.RouteName); 1029Assert.Same(routeName, resultPermanent.RouteName); 1316Assert.Same(url, result.PageName); 1336Assert.Same(pageName, resultPermanent.PageName); 1357Assert.Same(routeName, resultPermanent.PageName); 1373Assert.Same(fileContents, result.FileContents); 1390Assert.Same(fileContents, result.FileContents); 1451Assert.Same(fileStream, result.FileStream); 1477Assert.Same(fileStream, result.FileStream); 1597Assert.Same(Encoding.UTF8, MediaType.GetEncoding(actualContentResult.ContentType)); 1778Assert.Same(viewData, result.ViewData); 1800Assert.Same(viewData, result.ViewData); 1825Assert.Same(arguments, result.Arguments); 1826Assert.Same(viewData, result.ViewData);
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
62Assert.Same(endpoints1, endpoints2);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
VirtualPathDataTests.cs (3)
21Assert.Same(router, pathData.Router); 40Assert.Same(router, pathData.Router); 58Assert.Same(router, pathData.Router);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (13)
DefaultTagHelperActivatorTest.cs (6)
35Assert.Same(CacheProvider.Cache, scriptTagHelper.Cache); 36Assert.Same(HostingEnvironment, scriptTagHelper.HostingEnvironment); 37Assert.Same(FileVersionProvider, scriptTagHelper.FileVersionProvider); 49Assert.Same(CacheProvider.Cache, linkTagHelper.Cache); 50Assert.Same(HostingEnvironment, linkTagHelper.HostingEnvironment); 51Assert.Same(FileVersionProvider, linkTagHelper.FileVersionProvider);
PartialTagHelperTest.cs (5)
34Assert.Same(expectedModel, model); 82Assert.Same(expectedModel, model); 101Assert.Same(expectedModel, model); 333Assert.Same(expected, actual); 466Assert.Same(model, v.ViewData.Model);
SelectTagHelperTest.cs (2)
623Assert.Same(currentValues, actualCurrentValues.Values); 699Assert.Same(currentValues, actualCurrentValues.Values);
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
389Assert.Same(manager, descriptor.ImplementationInstance);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (185)
CachedExpressionCompilerTest.cs (15)
23Assert.Same(model, result); 39Assert.Same(func1, func2); 56Assert.Same(differentModel, result); 88Assert.Same(differentModel, result); 105Assert.Same(differentModel, result1); 112Assert.Same(differentModel, result2); 128Assert.Same(differentModel, result1); 136Assert.Same(differentModel, result2); 184Assert.Same(func1, func2); 218Assert.Same(func1, func2); 298Assert.Same(func1, func2); 541Assert.Same(func1, func2); 557Assert.Same(func1, func2); 833Assert.Same(differentModel, result); 850Assert.Same(differentModel, result);
ControllerTest.cs (33)
49Assert.Same(replacementViewData, controller.ViewData); 79Assert.Same(controller.ViewData, actualViewResult.ViewData); 80Assert.Same(controller.TempData, actualViewResult.TempData); 103Assert.Same(controller.ViewData, actualViewResult.ViewData); 104Assert.Same(controller.TempData, actualViewResult.TempData); 105Assert.Same(model, actualViewResult.ViewData.Model); 124Assert.Same(controller.ViewData, actualViewResult.ViewData); 125Assert.Same(controller.TempData, actualViewResult.TempData); 146Assert.Same(controller.ViewData, actualViewResult.ViewData); 147Assert.Same(controller.TempData, actualViewResult.TempData); 148Assert.Same(model, actualViewResult.ViewData.Model); 168Assert.Same(controller.ViewData, actualViewResult.ViewData); 169Assert.Same(controller.TempData, actualViewResult.TempData); 170Assert.Same(model, actualViewResult.ViewData.Model); 190Assert.Same(controller.ViewData, actualViewResult.ViewData); 191Assert.Same(controller.TempData, actualViewResult.TempData); 214Assert.Same(controller.ViewData, actualViewResult.ViewData); 215Assert.Same(controller.TempData, actualViewResult.TempData); 216Assert.Same(model, actualViewResult.ViewData.Model); 237Assert.Same(controller.ViewData, actualViewResult.ViewData); 238Assert.Same(controller.TempData, actualViewResult.TempData); 239Assert.Same(model, actualViewResult.ViewData.Model); 259Assert.Same(controller.ViewData, actualViewResult.ViewData); 260Assert.Same(controller.TempData, actualViewResult.TempData); 261Assert.Same(model, actualViewResult.ViewData.Model); 281Assert.Same(controller.ViewData, actualViewResult.ViewData); 282Assert.Same(controller.TempData, actualViewResult.TempData); 283Assert.Same(model, actualViewResult.ViewData.Model); 303Assert.Same(controller.ViewData, actualViewResult.ViewData); 304Assert.Same(controller.TempData, actualViewResult.TempData); 320Assert.Same(data, actualJsonResult.Value); 336Assert.Same(data, actualJsonResult.Value); 337Assert.Same(serializerSettings, actualJsonResult.SerializerSettings);
ControllerUnitTestabilityTests.cs (18)
32Assert.Same(model, viewResult.Model); 33Assert.Same(model, viewResult.ViewData.Model); 34Assert.Same(controller.ViewData, viewResult.ViewData); 35Assert.Same(controller.TempData, viewResult.TempData); 54Assert.Same(model, viewResult.Model); 55Assert.Same(model, viewResult.ViewData.Model); 56Assert.Same(controller.ViewData, viewResult.ViewData); 57Assert.Same(controller.TempData, viewResult.TempData); 202Assert.Same(model, jsonResult.Value); 234Assert.Same(model, jsonResult.Value); 302Assert.Same(error, httpBadRequest.Value); 337Assert.Same(value, createdAtRouteResult.Value); 373Assert.Same(value, acceptedAtRouteResult.Value); 411Assert.Same(value, createdAtActionResult.Value); 450Assert.Same(value, acceptedAtActionResult.Value); 611Assert.Same(httpContext, controller.HttpContext); 612Assert.Same(routeData, controller.RouteData); 614Assert.Same(actionDescriptor, controllerContext.ActionDescriptor);
CookieTempDataProviderTest.cs (2)
111Assert.Same(Dictionary, actualValues); 310Assert.Same(Dictionary, tempData);
ExpressionHelperTest.cs (2)
387Assert.Same(text1, text2); // cached 417Assert.Same(text1, text2); // cached
ExpressionMetadataProviderTest.cs (2)
109Assert.Same(myModel, metadata.Container.Model); 152Assert.Same(myModel, metadata.Container.Model);
Filters\ControllerSaveTempDataPropertyFilterFactoryTest.cs (1)
24Assert.Same(lifecycleProperties, tempDataFilter.Properties);
Filters\ControllerViewDataAttributeFilterFactoryTest.cs (1)
26Assert.Same(properties, filter.Properties);
Filters\ControllerViewDataAttributeFilterTest.cs (1)
46Assert.Same(controller, filter.Subject);
HtmlAttributePropertyHelperTest.cs (2)
83Assert.Same(helpers1, helpers2); 84Assert.Same(helpers1[0], helpers2[0]);
ModelExplorerTest.cs (3)
54Assert.Same(modelExplorer, baseProperty.Container); 59Assert.Same(modelExplorer, derivedProperty.Container); 78Assert.Same(modelExplorer, baseProperty.Container);
ModelStateDictionaryExtensionsTest.cs (13)
92Assert.Same(exception, modelError.Exception); 112Assert.Same(exception, modelError.Exception); 130Assert.Same(exception, modelError.Exception); 150Assert.Same(exception, modelError.Exception); 168Assert.Same(exception, modelError.Exception); 188Assert.Same(exception, modelError.Exception); 207Assert.Same(exception, modelError.Exception); 228Assert.Same(exception, modelError.Exception); 306Assert.Same(expected, modelState.Value); 326Assert.Same(expected, modelState.Value); 345Assert.Same(expected, modelState.Value); 368Assert.Same(expected, modelState.Value); 390Assert.Same(expected, modelState.Value);
PartialViewResultTest.cs (1)
38Assert.Same(customModel, viewResult.Model);
Rendering\HtmlHelperPartialExtensionsTest.cs (8)
60Assert.Same(htmlContent, result); 86Assert.Same(expected, actual); 134Assert.Same(htmlContent, result); 177Assert.Same(expected, actual); 281Assert.Same(expected, actual); 300Assert.Same(expected, actual); 326Assert.Same(expected, actual); 346Assert.Same(expected, actual);
Rendering\HtmlHelperSelectTest.cs (2)
1338Assert.Same(htmlHelper.SelectListItems, result); // No replacement of the underlying List 1398Assert.Same(htmlHelper.SelectListItems, result); // No replacement of the underlying List
Rendering\HtmlHelperTest.cs (1)
305Assert.Same(helperToContextualize.ViewContext, viewContext);
Rendering\ViewContextTests.cs (13)
38Assert.Same(replacementViewData, context.ViewData); 64Assert.Same(originalContext.ActionDescriptor, context.ActionDescriptor); 66Assert.Same(originalContext.ExecutingFilePath, context.ExecutingFilePath); 67Assert.Same(originalContext.FormContext, context.FormContext); 69Assert.Same(originalContext.HttpContext, context.HttpContext); 70Assert.Same(originalContext.ModelState, context.ModelState); 71Assert.Same(originalContext.RouteData, context.RouteData); 72Assert.Same(originalContext.TempData, context.TempData); 73Assert.Same(originalContext.ValidationMessageElement, context.ValidationMessageElement); 74Assert.Same(originalContext.ValidationSummaryMessageElement, context.ValidationSummaryMessageElement); 76Assert.Same(view, context.View); 77Assert.Same(viewData, context.ViewData); 78Assert.Same(writer, context.Writer);
SessionStateTempDataProviderTest.cs (1)
70Assert.Same(Dictionary, result);
TempDataDictionaryFactoryTest.cs (1)
43Assert.Same(tempData1, tempData2);
TempDataDictionaryTest.cs (1)
140Assert.Same(item, value);
ViewComponentResultTest.cs (1)
47Assert.Same(customModel, viewResult.Model);
ViewComponents\DefaultViewComponentActivatorTests.cs (2)
35Assert.Same(context, instance.ViewComponentContext); 59Assert.Same(context, instance.ViewComponentContext);
ViewComponents\DefaultViewComponentFactoryTest.cs (2)
31Assert.Same(component, activablePropertiesComponent); 32Assert.Same(component.Context, activablePropertiesComponent.Context);
ViewComponents\DefaultViewComponentHelperTest.cs (1)
112Assert.Same(expectedValue, item.Value);
ViewComponents\DefaultViewComponentSelectorTest.cs (9)
23Assert.Same(typeof(ViewComponentContainer.SuffixViewComponent).GetTypeInfo(), result.TypeInfo); 36Assert.Same(typeof(ViewComponentContainer.SuffixViewComponent).GetTypeInfo(), result.TypeInfo); 49Assert.Same(typeof(ViewComponentContainer.WithoutSuffix).GetTypeInfo(), result.TypeInfo); 62Assert.Same(typeof(ViewComponentContainer.WithoutSuffix).GetTypeInfo(), result.TypeInfo); 75Assert.Same(typeof(ViewComponentContainer.ByAttribute).GetTypeInfo(), result.TypeInfo); 88Assert.Same(typeof(ViewComponentContainer.ByNamingConventionViewComponent).GetTypeInfo(), result.TypeInfo); 141Assert.Same(typeof(ViewComponentContainer.Ambiguous1).GetTypeInfo(), result.TypeInfo); 154Assert.Same(typeof(ViewComponentContainer.DerivedAmbiguousWithOverriddenName).GetTypeInfo(), result.TypeInfo); 169Assert.Same(typeof(ViewComponentContainer.FullNameInAttribute).GetTypeInfo(), result.TypeInfo);
ViewComponents\ViewComponentContextTest.cs (7)
46Assert.Same(tempData, viewComponentContext.TempData); 47Assert.Same(viewContext.View, viewComponentContext.ViewContext.View); 48Assert.Same(viewContext.Writer, viewComponentContext.ViewContext.Writer); 51Assert.Same(viewComponentContext.ViewContext.ViewData, viewComponentContext.ViewData); 52Assert.Same(viewComponentContext.ViewContext.TempData, viewComponentContext.TempData); 53Assert.Same(viewComponentContext.ViewContext.Writer, viewComponentContext.Writer); 57Assert.Same(viewData.ModelMetadata, viewComponentContext.ViewData.ModelMetadata);
ViewComponents\ViewViewComponentResultTest.cs (1)
294Assert.Same(expected, actual);
ViewComponentTests.cs (6)
62Assert.Same(expectedContent, actualResult.Content); 97Assert.Same(model, actualResult.ViewData.Model); 135Assert.Same(model, actualResult.ViewData.Model); 213Assert.Same(model, actualResult.ViewData.Model); 233Assert.Same(viewComponent.ViewData, viewComponent.ViewContext.ViewData); 254Assert.Same(viewComponent.TempData, viewComponent.ViewContext.TempData);
ViewDataDictionaryOfTModelTest.cs (14)
22Assert.Same(modelState, viewData.ModelState); 51Assert.Same(model, viewData1.Model); 54Assert.Same(source.ModelMetadata, viewData1.ModelMetadata); 63Assert.Same(model, viewData2.Model); 66Assert.Same(source.ModelMetadata, viewData2.ModelMetadata); 93Assert.Same(source.ModelMetadata, viewData1.ModelMetadata); 105Assert.Same(source.ModelMetadata, viewData2.ModelMetadata); 126Assert.Same(model, viewData.Model); 129Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 147Assert.Same(model, viewData.Model); 150Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 279Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 319Assert.Same(source.ModelExplorer, viewData.ModelExplorer); 320Assert.Same(source.ModelMetadata, viewData.ModelMetadata);
ViewDataDictionaryTest.cs (13)
40Assert.Same(modelState, viewData.ModelState); 181Assert.Same(model, vdd.Model); 205Assert.Same(model, viewData.Model); 208Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 249Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 263Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 314Assert.Same(source.ModelMetadata, viewData.ModelMetadata); 338Assert.Same(originalMetadata, viewData.ModelMetadata); 387Assert.Same(metadata, viewData.ModelMetadata); 430Assert.Same(originalMetadata, viewData.ModelMetadata); 455Assert.Same(originalMetadata, viewData.ModelMetadata); 456Assert.Same(originalExplorer, viewData.ModelExplorer); 665Assert.Same(model, result);
ViewDataOfTTest.cs (1)
46Assert.Same(value, viewDataOfT.Model);
ViewEngines\CompositeViewEngineTest.cs (6)
89Assert.Same(view, result.View); 123Assert.Same(view2, result.View); 224Assert.Same(view, result.View); 261Assert.Same(view2, result.View); 356Assert.Same(view, result.View); 390Assert.Same(view2, result.View);
ViewResultTest.cs (1)
48Assert.Same(customModel, viewResult.Model);
Microsoft.AspNetCore.OpenApi.Tests (3)
Transformers\OpenApiOptionsTests.cs (3)
43Assert.Same(transformer, insertedTransformer); 100Assert.Same(transformer, insertedTransformer); 157Assert.Same(transformer, insertedTransformer);
Microsoft.AspNetCore.Owin.Tests (4)
OwinEnvironmentTests.cs (4)
40Assert.Same(Stream.Null, Get<Stream>(env, "owin.RequestBody")); 50Assert.Same(Stream.Null, Get<Stream>(env, "owin.ResponseBody")); 85Assert.Same(Stream.Null, context.Request.Body); 93Assert.Same(Stream.Null, context.Response.Body);
Microsoft.AspNetCore.Razor.Runtime.Test (8)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (6)
186Assert.Same(updatedItems, context.Items); 226Assert.Same(expectedItems, executionContext.Items); 311Assert.Same(encoder, passedEncoder); 562Assert.Same(tagHelper, singleTagHelper); 580Assert.Same(tagHelper1, tagHelpers[0]); 581Assert.Same(tagHelper2, tagHelpers[1]);
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
203Assert.Same(tagHelper.ContextProcessedWith.Items, executionContext.Items);
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
60Assert.Same(parentComplexObject, executionContextItem.Value);
Microsoft.AspNetCore.Razor.Test (9)
TagHelpers\TagHelperContextTest.cs (3)
38Assert.Same(expectedItems, context.Items); 62Assert.Same(expectedItems, context.Items); 85Assert.Same(expectedItems, context.Items);
TagHelpers\TagHelperOutputTest.cs (6)
86Assert.Same(content, result); 127Assert.Same(encoder, passedEncoder); 128Assert.Same(content, result); 157Assert.Same(content, result); 202Assert.Same(encoder, passedEncoder); 203Assert.Same(content, result);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
20Assert.Same(segments, body.Segments);
Microsoft.AspNetCore.Routing.Tests (225)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (2)
106Assert.Same(endpoint, httpContext.GetEndpoint()); 341Assert.Same(local, global);
Builder\GroupTest.cs (1)
198Assert.Same(serviceProvider, endpointBuilderServiceProvider);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (2)
257Assert.Same(Results.Empty, response); 343Assert.Same(initialRequestDelegate, endpoint.RequestDelegate);
CompositeEndpointDataSourceTest.cs (21)
77Assert.Same(ex, Assert.Throws<Exception>(() => compositeDataSource.Endpoints)); 78Assert.Same(ex, Assert.Throws<Exception>(() => compositeDataSource.Endpoints)); 79Assert.Same(ex, Assert.Throws<Exception>(() => compositeDataSource.GetGroupedEndpoints(groupContext))); 80Assert.Same(ex, Assert.Throws<Exception>(() => compositeDataSource.GetGroupedEndpoints(groupContext))); 105(ep) => Assert.Same(endpoint1, ep), 106(ep) => Assert.Same(endpoint2, ep), 107(ep) => Assert.Same(endpoint3, ep), 108(ep) => Assert.Same(endpoint4, ep), 109(ep) => Assert.Same(endpoint5, ep)); 125Assert.Same(endpoint1, endpoint); 136(ep) => Assert.Same(endpoint1, ep), 137(ep) => Assert.Same(endpoint2, ep)); 148(ep) => Assert.Same(endpoint1, ep), 149(ep) => Assert.Same(endpoint2, ep), 150(ep) => Assert.Same(endpoint3, ep)); 307Assert.Same(context, receivedContext); 312m => Assert.Same(metadata, m), 353Assert.Same(context, receivedContext); 408Assert.Same(context, receivedContext); 473receivedContext => Assert.Same(context, receivedContext), 474receivedContext => Assert.Same(context, receivedContext));
DecisionTreeBuilderTest.cs (1)
36Assert.Same(item, Assert.Single(tree.Matches));
DefaultLinkGeneratorTest.cs (1)
578Assert.Same(expected, actual);
DefaultLinkParserTest.cs (2)
133Assert.Same(expected.Matcher, actual.Matcher); 134Assert.Same(expected.Constraints, actual.Constraints);
EndpointNameAddressSchemeTest.cs (3)
31e => Assert.Same(endpoint2, e)); 81Assert.Same(endpoint1, match.Value.Single()); 132Assert.Same(endpoint, Assert.Single(Assert.Single(addressScheme.Entries).Value));
Matching\CandidateSetTest.cs (18)
35Assert.Same(endpoints[i], state.Endpoint); 71Assert.Same(endpoint, state.Endpoint); 72Assert.Same(values, state.Values); 139Assert.Same(endpoints[i], state.Endpoint); 178Assert.Same(replacements[0], candidateSet[0].Endpoint); 180Assert.Same(replacements[2], candidateSet[1].Endpoint); 182Assert.Same(replacements[1], candidateSet[2].Endpoint); 188Assert.Same(endpoints[i - 2], state.Endpoint); 231Assert.Same(endpoints[i], state.Endpoint); 235Assert.Same(replacements[0], candidateSet[5].Endpoint); 237Assert.Same(replacements[2], candidateSet[6].Endpoint); 239Assert.Same(replacements[1], candidateSet[7].Endpoint); 245Assert.Same(endpoints[i - 2], state.Endpoint); 288Assert.Same(endpoints[i], state.Endpoint); 292Assert.Same(replacements[0], candidateSet[9].Endpoint); 294Assert.Same(replacements[2], candidateSet[10].Endpoint); 296Assert.Same(replacements[1], candidateSet[11].Endpoint); 360Assert.Same(endpoints[i], state.Endpoint);
Matching\DataSourceDependentMatcherTest.cs (2)
51e => Assert.Same(endpoint, e)); 137Assert.Same(endpoint, Assert.Single(inner.Endpoints));
Matching\DefaultEndpointSelectorTest.cs (4)
68Assert.Same(endpoints[0], httpContext.GetEndpoint()); 89Assert.Same(endpoints[1], httpContext.GetEndpoint()); 111Assert.Same(endpoints[1], httpContext.GetEndpoint()); 142Assert.Same(endpoints[4], httpContext.GetEndpoint());
Matching\DfaMatcherBuilderTest.cs (17)
30Assert.Same(endpoint, Assert.Single(root.Matches)); 99Assert.Same(endpoint, Assert.Single(c.Matches)); 123Assert.Same(endpoint, Assert.Single(a.Matches)); 130Assert.Same(endpoint, Assert.Single(catchAll.Matches)); 132Assert.Same(catchAll, catchAll.Parameters); 133Assert.Same(catchAll, catchAll.CatchAll); 149Assert.Same(endpoint, Assert.Single(root.Matches)); 155Assert.Same(endpoint, Assert.Single(catchAll.Matches)); 157Assert.Same(catchAll, catchAll.Parameters); 2526e => Assert.Same(endpoint1, e)); 2580e => Assert.Same(endpoint2, e)); 2621e => Assert.Same(endpoint2, e)); 2988Assert.Same(endpoint, Assert.Single(root.Matches)); 3068Assert.Same(endpoint1, Assert.Single(root.Matches)); 3128Assert.Same(endpoint, Assert.Single(root.Matches)); 3396Assert.Same(constraint1.Value, constraint2.Value); 3419Assert.Same(constraint1.Value, constraint2.Value);
Matching\DfaMatcherTest.cs (17)
155Assert.Same(endpoint, httpContext.GetEndpoint()); 220Assert.Same(endpoint, httpContext.GetEndpoint()); 269Assert.Same(endpoint, httpContext.GetEndpoint()); 304Assert.Same(endpoint1, httpContext.GetEndpoint()); 312Assert.Same(endpoint2, httpContext.GetEndpoint()); 338Assert.Same(endpoint, httpContext.GetEndpoint()); 598Assert.Same(endpoint, httpContext.GetEndpoint()); 653Assert.Same(endpoint1, cs[0].Endpoint); 658Assert.Same(endpoint2, cs[1].Endpoint); 699Assert.Same(endpoint1, cs[0].Endpoint); 704Assert.Same(endpoint2, cs[1].Endpoint); 746Assert.Same(endpoint1, cs[0].Endpoint); 751Assert.Same(endpoint2, cs[1].Endpoint); 909Assert.Same(endpointDataSource.Endpoints[0], httpContext.GetEndpoint()); 978Assert.Same(dataSource.Endpoints[2], httpContext.GetEndpoint()); 1013Assert.Same(dataSource.Endpoints[1], httpContext.GetEndpoint()); 1062Assert.Same(dataSource.Endpoints[0], httpContext.GetEndpoint());
Matching\EndpointComparerTest.cs (10)
210e => Assert.Same(endpoint1, e), 211e => Assert.Same(endpoint2, e), 212e => Assert.Same(endpoint3, e), 213e => Assert.Same(endpoint4, e), 214e => Assert.Same(endpoint5, e), 215e => Assert.Same(endpoint6, e), 216e => Assert.Same(endpoint7, e)); 237e => Assert.Same(endpoint1, e), 238e => Assert.Same(endpoint2, e), 239e => Assert.Same(endpoint3, e));
Matching\EndpointMetadataComparerTest.cs (2)
81e => Assert.Same(endpoint1, e), 82e => Assert.Same(endpoint2, e));
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (3)
79Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 199Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 309Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName);
Patterns\DefaultRoutePatternTransformerTest.cs (3)
170Assert.Same(actual.Defaults, original.Defaults); 171Assert.Same(actual.Parameters, original.Parameters); 172Assert.Same(actual.PathSegments, original.PathSegments);
Patterns\RoutePatternFactoryTest.cs (14)
425Assert.Same(paramPartB, actual.Parameters[0]); 426Assert.Same(paramPartC, actual.Parameters[1]); 427Assert.Same(paramPartD, actual.Parameters[2]); 454Assert.Same(paramPartB, actual.Parameters[0]); 455Assert.Same(paramPartC, actual.Parameters[1]); 456Assert.Same(paramPartD, actual.Parameters[2]); 494Assert.Same(paramPartD, actual.Parameters[2]); 534Assert.Same(paramPartD, actual.Parameters[2]); 691Assert.Same(paramPartB, actual.Parts[0]); 692Assert.Same(paramPartC, actual.Parts[1]); 693Assert.Same(paramPartD, actual.Parts[2]); 712Assert.Same(paramPartB, actual.Parts[0]); 713Assert.Same(paramPartC, actual.Parts[1]); 714Assert.Same(paramPartD, actual.Parts[2]);
RequestDelegateRouteBuilderExtensionsTest.cs (1)
62Assert.Same(NullHandler, context.Handler);
RouteBuilderTest.cs (3)
28Assert.Same(applicationBuilder, builder.ApplicationBuilder); 29Assert.Same(defaultHandler, builder.DefaultHandler); 30Assert.Same(applicationServices, builder.ServiceProvider);
RouteCollectionTest.cs (8)
53Assert.Same(target.Object, pathData.Router); 81Assert.Same(target.Object, pathData.Router); 119Assert.Same(target.Object, pathData.Router); 148Assert.Same(route, pathData.Router); 183Assert.Same(route1.Object, context.RouteData.Routers[0]); 209Assert.Same(route2.Object, context.RouteData.Routers[0]); 394Assert.Same(route, pathData.Router); 449Assert.Same(expectedRouteToMatch, ((INamedRouter)pathData.Router).Name);
RouteConstraintBuilderTest.cs (1)
50Assert.Same(originalConstraint, kvp.Value);
RouteEndpointBuilderTest.cs (1)
46m => Assert.Same(metadata, m),
RouteOptionsTests.cs (3)
48Assert.Same(endpoint1, result); 55ep => Assert.Same(endpoint1, ep), 56ep => Assert.Same(endpoint2, ep));
RouterMiddlewareTest.cs (1)
47Assert.Same(routingFeature.RouteData, context.GetRouteData());
RouteTest.cs (38)
99Assert.Same(originalRouteDataValues, context.RouteData.Values); 103Assert.Same(originalDataTokens, context.RouteData.DataTokens); 497Assert.Same(target, context.RouteData.Routers[0]); 611Assert.Same(route, pathData.Router); 643Assert.Same(route, pathData.Router); 676Assert.Same(route, pathData.Router); 694Assert.Same(route, pathData.Router); 712Assert.Same(route, pathData.Router); 730Assert.Same(route, pathData.Router); 748Assert.Same(route, pathData.Router); 782Assert.Same(target.Object, pathData.Router); 823Assert.Same(route, pathData.Router); 847Assert.Same(route, pathData.Router); 863Assert.Same(route, pathData.Router); 904Assert.Same(route, pathData.Router); 945Assert.Same(route, pathData.Router); 979Assert.Same(route, pathData.Router); 1010Assert.Same(route, pathData.Router); 1041Assert.Same(route, pathData.Router); 1071Assert.Same(route, pathData.Router); 1102Assert.Same(route, pathData.Router); 1121Assert.Same(route, pathData.Router); 1153Assert.Same(route, pathData.Router); 1170Assert.Same(route, pathData.Router); 1202Assert.Same(route, pathData.Router); 1225Assert.Same(route, pathData.Router); 1247Assert.Same(route, pathData.Router); 1269Assert.Same(route, pathData.Router); 1291Assert.Same(route, pathData.Router); 1313Assert.Same(route, pathData.Router); 1335Assert.Same(route, pathData.Router); 1357Assert.Same(route, pathData.Router); 1379Assert.Same(route, pathData.Router); 1401Assert.Same(route, pathData.Router); 1425Assert.Same(route, pathData.Router); 1449Assert.Same(route, pathData.Router); 1473Assert.Same(route, pathData.Router); 1497Assert.Same(route, pathData.Router);
RouteValuesAddressSchemeTest.cs (15)
28Assert.Same(endpoint2, actual); 47Assert.Same(endpoint2, Assert.IsType<RouteEndpoint>(namedMatches[0].Match.Entry.Data)); 48Assert.Same(endpoint3, Assert.IsType<RouteEndpoint>(namedMatches[1].Match.Entry.Data)); 67Assert.Same(endpoint2, Assert.IsType<RouteEndpoint>(namedMatches[0].Match.Entry.Data)); 68Assert.Same(endpoint3, Assert.IsType<RouteEndpoint>(namedMatches[1].Match.Entry.Data)); 89Assert.Same(endpoint1, actual); 132Assert.Same(endpoint1, actual); 137Assert.Same(endpoint2, actual); 142Assert.Same(endpoint3, actual); 147Assert.Same(endpoint4, actual); 200Assert.Same(endpoint1, actual); 282Assert.Same(expected, actual); 305Assert.Same(expected, actual); 334Assert.Same(expected, actual); 412Assert.Same(endpoint, Assert.Single(allMatches).Entry.Data);
Tree\TreeRouterTest.cs (31)
821Assert.Same(route, result.Router); 844Assert.Same(route, result.Router); 876Assert.Same(route, result.Router); 908Assert.Same(route, result.Router); 943Assert.Same(route, result.Router); 989Assert.Same(route, result.Router); 1026Assert.Same(route, result.Router); 1056Assert.Same(route, result.Router); 1086Assert.Same(route, result.Router); 1144Assert.Same(route, result.Router); 1230Assert.Same(route, result.Router); 1250Assert.Same(route, pathData.Router); 1270Assert.Same(route, pathData.Router); 1307Assert.Same(route, pathData.Router); 1327Assert.Same(route, pathData.Router); 1347Assert.Same(route, pathData.Router); 1372Assert.Same(route, pathData.Router); 1392Assert.Same(route, pathData.Router); 1413Assert.Same(route, pathData.Router); 1451Assert.Same(route, pathData.Router); 1471Assert.Same(route, pathData.Router); 1493Assert.Same(route, pathData.Router); 1518Assert.Same(route, pathData.Router); 1543Assert.Same(route, pathData.Router); 1570Assert.Same(route, pathData.Router); 1597Assert.Same(route, pathData.Router); 1691Assert.Same(route, pathData.Router); 1914Assert.Same(route, pathData.Router); 1936Assert.Same(route, pathData.Router); 1958Assert.Same(route, pathData.Router); 1980Assert.Same(route, pathData.Router);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (9)
DelegateTests.cs (1)
32Assert.Same(server, delegationFeature);
ResponseBodyTests.cs (3)
326Assert.Same(state, httpContext); 354Assert.Same(state, httpContext); 382Assert.Same(state, httpContext);
ResponseSendFileTests.cs (1)
287Assert.Same(state, httpContext);
ResponseTests.cs (4)
137Assert.Same(state, httpContext); 143Assert.Same(state, httpContext); 172Assert.Same(state, httpContext); 201Assert.Same(state, httpContext);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (90)
BodyControlTests.cs (13)
28Assert.Same(ex, 30Assert.Same(ex, 47Assert.Same(ex, 50Assert.Same(ex, 53Assert.Same(ex, 73Assert.Same(ex, 76Assert.Same(ex, 78Assert.Same(ex, 94Assert.Same(ex, 96Assert.Same(ex, 98Assert.Same(ex, 100Assert.Same(ex, 102Assert.Same(ex,
CertificatePathWatcherTests.cs (1)
62Assert.Same(changeToken, watcher.GetChangeToken());
ConcurrentPipeWriterTests.cs (5)
76Assert.Same(completeEx, mockPipeWriter.CompleteException); 174Assert.Same(completeEx, mockPipeWriter.CompleteException); 258Assert.Same(completeEx, mockPipeWriter.CompleteException); 326Assert.Same(completeEx, mockPipeWriter.CompleteException); 409Assert.Same(completeEx, mockPipeWriter.CompleteException);
Http1\Http1HttpProtocolFeatureCollectionTests.cs (15)
69Assert.Same(_collection[type], feature.Value); 182Assert.Same(_collection.Get<IHttpRequestFeature>(), _collection[typeof(IHttpRequestFeature)]); 183Assert.Same(_collection.Get<IHttpRequestBodyDetectionFeature>(), _collection[typeof(IHttpRequestBodyDetectionFeature)]); 184Assert.Same(_collection.Get<IHttpResponseFeature>(), _collection[typeof(IHttpResponseFeature)]); 185Assert.Same(_collection.Get<IHttpResponseBodyFeature>(), _collection[typeof(IHttpResponseBodyFeature)]); 186Assert.Same(_collection.Get<IRequestBodyPipeFeature>(), _collection[typeof(IRequestBodyPipeFeature)]); 187Assert.Same(_collection.Get<IHttpRequestIdentifierFeature>(), _collection[typeof(IHttpRequestIdentifierFeature)]); 188Assert.Same(_collection.Get<IHttpRequestLifetimeFeature>(), _collection[typeof(IHttpRequestLifetimeFeature)]); 189Assert.Same(_collection.Get<IHttpConnectionFeature>(), _collection[typeof(IHttpConnectionFeature)]); 190Assert.Same(_collection.Get<IHttpMaxRequestBodySizeFeature>(), _collection[typeof(IHttpMaxRequestBodySizeFeature)]); 191Assert.Same(_collection.Get<IHttpMinRequestBodyDataRateFeature>(), _collection[typeof(IHttpMinRequestBodyDataRateFeature)]); 192Assert.Same(_collection.Get<IHttpMinResponseDataRateFeature>(), _collection[typeof(IHttpMinResponseDataRateFeature)]); 193Assert.Same(_collection.Get<IHttpBodyControlFeature>(), _collection[typeof(IHttpBodyControlFeature)]); 232Assert.Same(featureLookup, featureIter.Value); 233Assert.Same(featureLookup, _collection);
HttpRequestHeadersTests.cs (7)
109Assert.Same(Array.Empty<string>(), (string[])headers["custom"]); 110Assert.Same(Array.Empty<string>(), (string[])headers["host"]); 111Assert.Same(Array.Empty<string>(), (string[])headers["Content-Length"]); 114Assert.Same(Array.Empty<string>(), (string[])headers.Host); 115Assert.Same(Array.Empty<string>(), (string[])headers.AltSvc); 171Assert.Same(enumerator0, enumerator1); 432Assert.Same(values.PrevHeaderValue, values.NextHeaderValue);
HttpRequestPipeReaderTests.cs (1)
42Assert.Same(error, exception);
HttpRequestStreamTests.cs (2)
151Assert.Same(error, exception); 185Assert.Same(error, exception);
HttpUtilitiesTest.cs (1)
134Assert.Same(knownString1, knownString2);
KestrelServerTests.cs (5)
445Assert.Same(customEndpoint, transportEndPoint.BoundEndPoint); 446Assert.Same(customEndpoint, multiplexedTransportEndPoint.BoundEndPoint); 646Assert.Same(unbindException, await Assert.ThrowsAsync<InvalidOperationException>(() => stopTask1.TimeoutAfter(timeout))); 647Assert.Same(unbindException, await Assert.ThrowsAsync<InvalidOperationException>(() => stopTask2.TimeoutAfter(timeout))); 648Assert.Same(unbindException, await Assert.ThrowsAsync<InvalidOperationException>(() => stopTask3.TimeoutAfter(timeout)));
ListenOptionsTests.cs (1)
47Assert.Same(serviceProvider, clone.ApplicationServices);
MessageBodyTests.cs (1)
568Assert.Same(MessageBody.ZeroContentLengthKeepAlive, result);
SniOptionsSelectorTests.cs (14)
408Assert.Same(options1, options2); 444Assert.Same(lastSeenSslOptions, options1); 447Assert.Same(lastSeenSslOptions, options2); 487Assert.Same(selectorCertificate, selectorOptions1.ServerCertificate); 490Assert.Same(selectorCertificate, selectorOptions2.ServerCertificate); 502Assert.Same(configOptions1, configOptions2); 546Assert.Same(fallbackOptions.ServerCertificate, options.ServerCertificate); 574Assert.Same(selectorCertificate, options.ServerCertificate); 878Assert.Same(options.CipherSuitesPolicy, clonedOptions.CipherSuitesPolicy); 890Assert.Same(options.RemoteCertificateValidationCallback, clonedOptions.RemoteCertificateValidationCallback); 894Assert.Same(options.ServerCertificate, clonedOptions.ServerCertificate); 897Assert.Same(options.ServerCertificateContext, clonedOptions.ServerCertificateContext); 900Assert.Same(options.ServerCertificateSelectionCallback, clonedOptions.ServerCertificateSelectionCallback); 903Assert.Same(options.CertificateChainPolicy, clonedOptions.CertificateChainPolicy);
StartLineTests.cs (24)
77Assert.Same(path, Http1Connection.Path); 78Assert.Same(query, Http1Connection.QueryString); 130Assert.Same(rawTarget, Http1Connection.RawTarget); 132Assert.Same(path, Http1Connection.Path); 133Assert.Same(query, Http1Connection.QueryString); 225Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 226Assert.Same(prevPath, Http1Connection.Path); 227Assert.Same(prevQuery, Http1Connection.QueryString); 318Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 319Assert.Same(prevPath, Http1Connection.Path); 320Assert.Same(prevQuery, Http1Connection.QueryString); 392Assert.Same(rawTarget, Http1Connection.RawTarget); 393Assert.Same(path, Http1Connection.Path); 394Assert.Same(query, Http1Connection.QueryString); 398Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 399Assert.Same(prevPath, Http1Connection.Path); 400Assert.Same(prevQuery, Http1Connection.QueryString); 475Assert.Same(path, Http1Connection.Path); 476Assert.Same(query, Http1Connection.QueryString); 480Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 481Assert.Same(prevPath, Http1Connection.Path); 482Assert.Same(prevQuery, Http1Connection.QueryString); 507Assert.Same(path, Http1Connection.Path); 508Assert.Same(query, Http1Connection.QueryString);
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (2)
1498Assert.Same(endpointsToStart[0], serverOptions.ConfigurationBackedListenOptions[1]); 1499Assert.Same(endpointsToStart[1], serverOptions.ConfigurationBackedListenOptions[2]);
Microsoft.AspNetCore.Shared.Tests (27)
AdaptiveCapacityDictionaryTests.cs (7)
83Assert.Same(StringComparer.OrdinalIgnoreCase, dict.Comparer); 890Assert.Same(value, removedValue); 910Assert.Same(value, removedValue); 932Assert.Same(value, removedValue); 957Assert.Same(value, removedValue); 982Assert.Same(value, removedValue); 1319Assert.Same(Array.Empty<KeyValuePair<string, object?>>(), value._arrayStorage);
CopyOnWriteDictionaryHolderTest.cs (1)
36Assert.Same(source, holder.ReadDictionary);
CopyOnWriteDictionaryTest.cs (2)
51Assert.Same(values, copyOnWriteDictionary.Values); 53Assert.Same(enumerator, copyOnWriteDictionary.GetEnumerator());
ObjectMethodExecutorTest.cs (15)
173Assert.Same(typeof(TestObject), executor.AsyncResultType); 189Assert.Same(typeof(int), executor.AsyncResultType); 204Assert.Same(typeof(TestObject), executor.AsyncResultType); 221Assert.Same(typeof(int), executor.AsyncResultType); 243Assert.Same(typeof(void), executor.AsyncResultType); 258Assert.Same(typeof(string), executor.AsyncResultType); 273Assert.Same(typeof(string), executor.AsyncResultType); 288Assert.Same(typeof(int), executor.AsyncResultType); 303Assert.Same(typeof(string), executor.AsyncResultType); 318Assert.Same(typeof(int), executor.AsyncResultType); 334Assert.Same(typeof(string), executor.AsyncResultType); 352Assert.Same(typeof(string), executor.AsyncResultType); 370Assert.Same(typeof(string), executor.AsyncResultType); 388Assert.Same(typeof(string), executor.AsyncResultType); 403Assert.Same(typeof(string), executor.AsyncResultType);
PropertyHelperTest.cs (2)
119Assert.Same(helpers1, helpers2); 120Assert.Same(helpers1[0], helpers2[0]);
Microsoft.AspNetCore.SignalR.Client.Tests (33)
HttpConnectionTests.cs (3)
111Assert.Same(clientCertificate, httpClientHandler.ClientCertificates[0]); 113Assert.Same(httpOptions.Proxy, httpClientHandler.Proxy); 114Assert.Same(httpOptions.Credentials, httpClientHandler.Credentials);
HubConnectionBuilderExtensionsTests.cs (2)
72Assert.Same(proxy, value.Proxy); 87Assert.Same(proxy, value.Proxy);
HubConnectionTests.cs (4)
41Assert.Same(exception, actualException); 56Assert.Same(exception, actualException); 799Assert.Same(originalOptions.AccessTokenProvider, accessTokenFactory); 800Assert.Same(resolvedOptions.Headers, originalOptions.Headers);
HubConnectionTests.Reconnect.cs (24)
64Assert.Same(exception, await closedErrorTcs.Task.DefaultTimeout()); 153Assert.Same(originalConnectionId, hubConnection.ConnectionId); 158Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 160Assert.Same(firstException, retryContexts[0].RetryReason); 167Assert.Same(reconnectedConnectionId, await reconnectedConnectionIdTcs.Task.DefaultTimeout()); 170Assert.Same(reconnectException, retryContexts[1].RetryReason); 255Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 257Assert.Same(firstException, retryContexts[0].RetryReason); 268Assert.Same(reconnectException, retryContexts[1].RetryReason); 350Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 432Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 434Assert.Same(firstException, retryContexts[0].RetryReason); 450Assert.Same(secondException, await reconnectingErrorTcs.Task.DefaultTimeout()); 452Assert.Same(secondException, retryContexts[1].RetryReason); 719Assert.Same(firstException, await Assert.ThrowsAsync<Exception>(() => startTask).DefaultTimeout()); 799Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 801Assert.Same(firstException, retryContexts[0].RetryReason); 811Assert.Same(secondException, retryContexts[1].RetryReason); 906Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 908Assert.Same(firstException, retryContexts[0].RetryReason); 1026Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 1028Assert.Same(firstException, retryContexts[0].RetryReason); 1103Assert.Same(firstException, await reconnectingErrorTcs.Task.DefaultTimeout()); 1105Assert.Same(firstException, retryContexts[0].RetryReason);
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\JsonHubProtocolTestsBase.cs (1)
209Assert.Same(Array.Empty<string>(), (message as InvocationMessage).StreamIds);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
RedisProtocolTests.cs (2)
166Assert.Same(_testMessage.Target, invocation.Target); 167Assert.Same(_testMessage.Arguments, invocation.Arguments);
Microsoft.AspNetCore.SignalR.Tests (22)
ClientProxyTests.cs (9)
39Assert.Same(data, arg); 60Assert.Same(data, arg); 81Assert.Same(data, arg); 102Assert.Same(data, arg); 123Assert.Same(data, arg); 144Assert.Same(data, arg); 165Assert.Same(data, arg); 186Assert.Same(data, arg); 207Assert.Same(data, arg);
HubConnectionHandlerTestUtils\Hubs.cs (1)
1413Assert.Same(service, service2);
Internal\DefaultHubProtocolResolverTests.cs (2)
84Assert.Same(jsonProtocol2, resolvedProtocol); 100Assert.Same(jsonProtocol2, hubProtocols[0]);
Internal\TypedClientBuilderTests.cs (5)
28Assert.Same(objArg, send.Arguments[2]); 52Assert.Same(objArg, send.Arguments[2]); 79arg3 => Assert.Same(objArg, arg3)); 221arg2 => Assert.Same(objArg, arg2), 222arg3 => Assert.Same("test", arg3));
SerializedHubMessageTests.cs (2)
26actualMessage => Assert.Same(invocation, actualMessage)); 46actualMessage => Assert.Same(invocation, actualMessage));
WebSocketsTransportTests.cs (3)
55Assert.Same(clientCertificate, webSocketsOptions.ClientCertificates[0]); 57Assert.Same(httpOptions.Proxy, webSocketsOptions.Proxy); 58Assert.Same(httpOptions.Credentials, webSocketsOptions.Credentials);
Microsoft.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
935Assert.Same(value, capturedValue);
Microsoft.AspNetCore.Tests (15)
WebApplicationTests.cs (15)
188Assert.Same(app.Urls, urls); 206Assert.Same(app.Urls, urls); 300Assert.Same(hostedService, startOrder[0]); 301Assert.Same(server, startOrder[1]); 1213Assert.Same(builder.Configuration, app.Configuration); 1256Assert.Same(builder.Configuration, app.Configuration); 1282Assert.Same(builder.Configuration, app.Configuration); 1390Assert.Same(config, builder.Configuration); 1394Assert.Same(app.Configuration, builder.Configuration); 1407Assert.Same(config, builder.Configuration); 1411Assert.Same(app.Configuration, builder.Configuration); 2522Assert.Same(builder.Host.Properties, iHostApplicationBuilder.Properties); 2523Assert.Same(builder.Configuration, iHostApplicationBuilder.Configuration); 2524Assert.Same(builder.Logging, iHostApplicationBuilder.Logging); 2525Assert.Same(builder.Services, iHostApplicationBuilder.Services);
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
728Assert.Same(HeaderNames.Upgrade, context.Request.Headers.Connection.ToString());
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\ProjectRootElement_Tests.cs (2)
1315Assert.Same(xml0, xml1); 1316Assert.Same(xml0, xml2);
Definition\ProjectCollection_Tests.cs (6)
1180Assert.Same(collection, sender); 1338Assert.Same(collection, sender); 1339Assert.Same(pre, e.ProjectXml); 1397Assert.Same(collection, sender); 1398Assert.Same(project, e.Project); 1488Assert.Same(collection, sender);
Definition\ProjectItem_Tests.cs (2)
2001Assert.Same(projectItem, project.GetItemsByEvaluatedInclude(projectItem.EvaluatedInclude).Single()); 2007Assert.Same(projectItem, project.GetItemsByEvaluatedInclude(projectItem.EvaluatedInclude).Single());
Instance\ProjectInstance_Tests.cs (1)
139Assert.Same(returned, item);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
36Assert.Same(c1Where, c1.Get(where)); 65Assert.Same(c1Where, c1.Get(where)); 437Assert.Same(realChild.Parent, realXml); 445Assert.Same(viewChild.Parent, viewXml);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (10)
35Assert.Same(result, this.GetSingleItemWithVerify(where, result.EvaluatedInclude)); 86Assert.Same(added, toAdd.GetProperty(name)); 123Assert.Same(context.Pair.View, view.Project); 124Assert.Same(context.Pair.Real, real.Project); 156Assert.Same(context?.Pair.View, view.Project); 157Assert.Same(context?.Pair.Real, real.Project); 200Assert.Same(context?.Pair.View, view.Project); 201Assert.Same(context?.Pair.Real, real.Project); 250Assert.Same(context.Pair.View, view.Project); 251Assert.Same(context.Pair.Real, real.Project);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (7)
376Assert.Same(choose.View, chooseCreataed.View); 392Assert.Same(otherWise.View, choose.View.OtherwiseElement); 393Assert.Same(otherWise.Real, choose.Real.OtherwiseElement); 501Assert.Same(body.View, usingTaskFile.View.TaskBody); 502Assert.Same(body.Real, usingTaskFile.Real.TaskBody); 506Assert.Same(pg.View, usingTaskFile.View.ParameterGroup); 507Assert.Same(pg.Real, usingTaskFile.Real.ParameterGroup);
ObjectModelRemoting\LinkedProjectCollection_Tests.cs (4)
46Assert.Same(proj1, loadedLocal.FirstOrDefault()); 47Assert.Same(proj2, loadedRemote.FirstOrDefault()); 56Assert.Same(localProj, proj1); 99Assert.Same(proj0local, prj0Coll.First());
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildManager_Tests.cs (2)
2132Assert.Same(preRoot, ProjectRootElement.TryOpen(rootProjectPath, projectCollection)); // "The root project file should be in the weak cache after a build." 2133Assert.Same(preImported, ProjectRootElement.TryOpen(importedProjectPath, projectCollection)); // "The imported project file should be in the weak cache after a build."
BackEnd\BuildRequestConfiguration_Tests.cs (1)
190Assert.Same(config1.Project, projectInstance);
Evaluation\Evaluator_Tests.cs (1)
1695Assert.Same(metadataElementFromProjectRootElement, metadatum.Predecessor.Xml);
Evaluation\ProjectRootElementCache_Tests.cs (1)
76Assert.Same(projectRootElement, projectRootElement2);
Evaluation\UsedUninitializedProperties_Tests.cs (2)
32Assert.Same(location1, elementLocation); 35Assert.Same(location1, elementLocation);
Globbing\CompositeGlob_Tests.cs (3)
156Assert.Same(glob, composite); 168Assert.Same(glob1, composite.Globs.First()); 169Assert.Same(glob2, composite.Globs.Skip(1).First());
Globbing\MSBuildGlob_Tests.cs (1)
158Assert.Same(glob1.TestOnlyRegex, glob2.TestOnlyRegex);
Instance\HostServices_Tests.cs (4)
49Assert.Same(hostObject, hostServices.GetHostObject("foo.proj", "target", "task")); 50Assert.Same(hostObject2, hostServices.GetHostObject("foo.proj", "target2", "task")); 51Assert.Same(hostObject3, hostServices.GetHostObject("foo.proj", "target", "task2")); 102Assert.Same(hostObject, hostServices.GetHostObject("project", "target", "task"));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
GeneratorDriverCacheTests.cs (4)
31Assert.Same(driver, drivers[0]); 45Assert.Same(driver, drivers[0]); 48Assert.Same(driver, drivers[1]); 51Assert.Same(driver, drivers[2]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (1)
64Assert.Same(c, castCompletionItem);
EditAndContinue\ActiveStatementTrackingServiceTests.cs (2)
69Assert.Same(snapshot1, document1.GetTextSynchronously(CancellationToken.None).FindCorrespondingEditorTextSnapshot()); 70Assert.Same(snapshot2, document2.GetTextSynchronously(CancellationToken.None).FindCorrespondingEditorTextSnapshot());
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
59Assert.Same(text, actualText);
SymbolKey\SymbolKeyTests.cs (4)
51Assert.Same(type, resolved); 90Assert.Same(type, resolved); 96Assert.Same(type, resolved); 126Assert.Same(type, resolved);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (32)
CodeGen\CodeGenDeconstructTests.cs (9)
3582Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)decl)); 3583Assert.Same(symbol, model.LookupSymbols(decl.SpanStart, name: decl.Identifier.ValueText).Single()); 3602Assert.Same(symbol, model.GetSymbolInfo(reference).Symbol); 3603Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: decl.Identifier.ValueText).Single()); 3614Assert.Same(field, model.GetDeclaredSymbol((SyntaxNode)decl)); 3615Assert.Same(field, model.LookupSymbols(decl.SpanStart, name: decl.Identifier.ValueText).Single()); 3621Assert.Same(field, model.GetSymbolInfo(reference).Symbol); 3622Assert.Same(field, model.LookupSymbols(reference.SpanStart, name: decl.Identifier.ValueText).Single()); 6054Assert.Same(symbol.Type, symbolClone.Type); // original symbol for System.Int32 has identity.
CodeGen\CodeGenLocalFunctionTests.cs (1)
163Assert.Same(localFunctionOperation.IgnoredBody, objectCreationOperation.Parent.Parent);
CodeGen\CodeGenTupleTest.cs (21)
3699Assert.Same(yType.TupleElements[1], yType.TupleElements[1].CorrespondingTupleField); 4507Assert.Same(vt2, unnamedTuple.ConstructedFrom); 4518Assert.Same(vt2, namedTuple.ConstructedFrom); 4519Assert.Same(vt2, namedTuple.OriginalDefinition); 5856Assert.Same(vt1, ((Symbols.PublicModel.NonErrorNamedTypeSymbol)tupleWithoutNames).UnderlyingNamedTypeSymbol); 5875Assert.Same(vt2, ((Symbols.PublicModel.NamedTypeSymbol)tupleWithoutNames).UnderlyingNamedTypeSymbol); 6058Assert.Same(vt8, ((Symbols.PublicModel.NamedTypeSymbol)tuple8WithoutNames).UnderlyingNamespaceOrTypeSymbol); 6193Assert.Same(vt2WithErrorType, tupleWithoutNames); 6228Assert.Same(comp.GlobalNamespace, ns.ContainingSymbol); 6229Assert.Same(comp.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6230Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule); 6236Assert.Same(comp.Assembly.GlobalNamespace, ns.ContainingSymbol); 6237Assert.Same(comp.Assembly.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6238Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule); 6244Assert.Same(comp.SourceModule.GlobalNamespace, ns.ContainingSymbol); 6245Assert.Same(comp.SourceModule.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6246Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule); 11159Assert.Same(tupleType, m1Tuple.ConstructedFrom); 11161Assert.Same(tupleType, m1Tuple.OriginalDefinition); 11164Assert.Same(m1Tuple.ContainingSymbol, m1Tuple.ContainingSymbol); 11424Assert.Same(m1Tuple.OriginalDefinition, m1Tuple.ConstructedFrom);
Emit\InAttributeModifierTests.cs (1)
4429Assert.Same(assembly, assembly.CorLibrary);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (66)
Attributes\AttributeTests.cs (1)
10033Assert.Same(compilation1.Assembly, compilation2.SourceModule.ReferencedAssemblySymbols[1]);
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4063Assert.Same(model, _cache[tree]);
Diagnostics\GetDiagnosticsTests.cs (1)
1528Assert.Same(tree1, analyzedTree);
FieldKeywordTests.cs (1)
8940Assert.Same(property.BackingField, otherPart.BackingField);
Semantics\OutVarTests.cs (19)
971Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)variableDeclaratorSyntax)); 980Assert.Same(symbol, other); 991Assert.Same(symbol, model.GetSymbolInfo(reference).Symbol); 992Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: decl.Identifier().ValueText).Single()); 1144Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)variableDesignationSyntax)); 1166Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single()); 1197Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single()); 32688Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)variableDesignationSyntax)); 32700Assert.Same(symbol, symbols.Single()); 32729Assert.Same(symbol, referenceInfo.Symbol); 32730Assert.Same(symbol, symbols.Single()); 35975Assert.Same(initializerOperation.Parent.Parent, blockBodyOperation.Parent); 35999Assert.Same(blockBodyOperation.Parent, model.GetOperation(expressionBodySyntax).Parent); 36003Assert.Same(blockBodyOperation.Parent, model.GetOperation(declarationSyntax)); 36120Assert.Same(expressionBodyOperation.Parent, blockBodyOperation.Parent); 36128Assert.Same(expressionBodyOperation.Parent, model.GetOperation(declarationSyntax)); 36368Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single())); 36450Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single())); 36523Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single()));
Semantics\PatternMatchingTestBase.cs (13)
85Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation)); 94Assert.Same(symbol, other); 125Assert.Same(symbol, model.GetSymbolInfo(reference).Symbol); 126Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: designation.Identifier.ValueText).Single()); 146Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation)); 172Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)declarator)); 186Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation)); 197Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single()); 211Assert.Same(symbol, other); 248Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation)); 260Assert.Same(symbol, symbols.Single()); 313Assert.Same(symbol, referenceInfo.Symbol); 314Assert.Same(symbol, symbols.Single());
Semantics\PrimaryConstructorTests.cs (18)
1013Assert.Same(symbol, model.LookupSymbols(x.SpanStart, name: "X").Single()); 1080Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 1129Assert.Same(operation.Parent.Parent, model.GetOperation(baseWithargs.Parent.Parent)); 1307Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 1320Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 1536Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 1625Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 1974Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 3802Assert.Same(literal.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 3828Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 3846Assert.Same(initializer.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 3877Assert.Same(baseType.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 3904Assert.Same(@class.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 5291Assert.Same(literal.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 5309Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 5327Assert.Same(initializer.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 5356Assert.Same(record.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 7833Assert.Same(symbol, model.LookupSymbols(p1.SpanStart, name: "p1").Single());
Semantics\RecordTests.cs (12)
21152Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 21202Assert.Same(operation.Parent.Parent, model.GetOperation(baseWithargs.Parent.Parent)); 21381Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 21394Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 21610Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 21699Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 22086Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart)); 26242Assert.Same(literal.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 26268Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 26286Assert.Same(initializer.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 26317Assert.Same(baseType.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 26340Assert.Same(record.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (22)
IOperation\IOperationTests.cs (4)
672Assert.Same(blockOperation, catchOperation.Handler); 684Assert.Same(model, operation.SemanticModel); 685Assert.Same(memberModel, ((Operation)operation).OwningSemanticModel); 690Assert.Same(expectedRootSyntax, operation.Syntax);
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (10)
418Assert.Same(variableTreeLambdaOperation, lambdaOperation); 426Assert.Same(variableTreeLambdaOperation, variableTreeLambdaOperationSecondRequest); 427Assert.Same(lambdaOperation, lambdaOperationSecondRequest); 861Assert.Same(graphM, graphD1.Parent); 863Assert.Same(graphD1, graphD1_FromExtension); 868Assert.Same(graphD1, graphD2.Parent); 919Assert.Same(graphM, graphD1.Parent); 922Assert.Same(graphM, graphD2.Parent); 925Assert.Same(graphD1, graphD1_FromExtension); 929Assert.Same(graphD1, graphD1_FromExtension);
IOperation\IOperationTests_IArgument.cs (1)
4161Assert.Same(indexerSymbol, argument.Parameter.ContainingSymbol);
IOperation\IOperationTests_ILocalFunctionStatement.cs (7)
1804Assert.Same(graphM, graphD1.Parent); 1806Assert.Same(graphD1, graphD1_FromExtension); 1814Assert.Same(graphD1, graphD2.Parent); 1860Assert.Same(graphM, graphD1.Parent); 1863Assert.Same(graphM, graphD2.Parent); 1866Assert.Same(graphD1, graphD1_FromExtension); 1870Assert.Same(graphD1, graphD1_FromExtension);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
ScriptOptionsTests.cs (1)
30Assert.Same(options, options.WithLanguageVersion(LanguageVersion.CSharp8));
ScriptTests.cs (4)
141Assert.Same(script, state.Script); 150Assert.Same(script, state.Script); 300Assert.Same(script, state.Script); 413Assert.Same(state.GetVariable("X"), state.GetVariable("X"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (178)
Semantics\BindingTests.cs (2)
2935Assert.Same(symbol1, symbol2); 2977Assert.Same(symbol1, symbol2);
Semantics\DeconstructionTests.cs (2)
4176Assert.Same(x1, model.GetSymbolInfo(refs.Where(r => r.Identifier.ValueText == "x1").Single()).Symbol); 4181Assert.Same(x2, model.GetSymbolInfo(refs.Where(r => r.Identifier.ValueText == "x2").Single()).Symbol);
Semantics\ImportsTests.cs (1)
27Assert.Same(empty, empty.Concat(empty));
Semantics\LambdaTests.cs (2)
8135Assert.Same(constSymbol, defaultValueSymbol); 8140Assert.Same(constSymbol, lhsSymbol);
Semantics\LocalFunctionTests.cs (2)
4737Assert.Same(symbol, model.GetSymbolInfo(refs[0]).Symbol); 5120Assert.Same(symbol, parameterSymbol.Type);
Semantics\NativeIntegerTests.cs (11)
240Assert.Same(type, type.ConstructedFrom); 255Assert.Same(underlyingType.ContainingSymbol, nativeIntegerType.ContainingSymbol); 256Assert.Same(underlyingType.Name, nativeIntegerType.Name); 263Assert.Same(underlyingType, nativeIntegerType.NativeIntegerUnderlyingType); 354Assert.Same(underlyingType.ContainingSymbol, nativeIntegerType.ContainingSymbol); 355Assert.Same(underlyingType.Name, nativeIntegerType.Name); 538Assert.Same(type, member.ContainingSymbol); 539Assert.Same(type, member.ContainingType); 1627Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None)).NativeIntegerUnderlyingType); 1628Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated)).NativeIntegerUnderlyingType); 1629Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.NotAnnotated)).NativeIntegerUnderlyingType);
Semantics\NullableReferenceTypesTests.cs (1)
3703Assert.Same(symbol1, symbol2);
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3815Assert.Same(typeInfo.Type, typeInfo.ConvertedType);
Semantics\OperatorTests.cs (6)
7656Assert.Same(symbol1.ContainingSymbol, symbol1.Parameters[0].Type); 8297Assert.Same(symbol1, symbol2); 8298Assert.Same(symbol1, symbol3); 8299Assert.Same(symbol1, symbol4); 8305Assert.Same(symbol1, symbol3); 8314Assert.Same(symbol1, symbol4);
Semantics\RecordStructTests.cs (4)
5990Assert.Same(literal.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 6008Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 6026Assert.Same(initializer.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree); 6055Assert.Same(record.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
Semantics\ScriptSemanticsTests.cs (2)
526Assert.Same(symbol0, symbol1); 542Assert.Same(symbol0, symbol1);
Semantics\TopLevelStatementsTests.cs (131)
49Assert.Same(entryPoint, comp.GetEntryPoint(default)); 199Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single()); 237Assert.Same(declSymbol.ContainingSymbol, model1.GetDeclaredSymbol(unit1)); 238Assert.Same(declSymbol.ContainingSymbol, model1.GetDeclaredSymbol((SyntaxNode)unit1)); 239Assert.Same(refSymbol, declSymbol); 242Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single()); 361Assert.Same(declSymbol.ContainingSymbol, declMethod); 365Assert.Same(declSymbol, model2.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single()); 486Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single()); 495Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single()); 538Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single()); 546Assert.Same(declSymbol, refSymbol); 549Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single()); 578Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single()); 587Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single()); 593Assert.Same(declSymbol, refSymbol); 596Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single()); 702Assert.Same(local, model.GetSymbolInfo(reference).Symbol); 873Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol); 879Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol); 987Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").First()).Symbol); 991Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Skip(1).Single()).Symbol); 1042Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol); 1697Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single()); 1702Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 1710Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol); 1719Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 1730Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 1734Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 1740Assert.Same(declSymbol, model.GetSymbolInfo(nameRef).Symbol); 1745Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 1750Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 1756Assert.Same(declSymbol, model.GetSymbolInfo(nameRef).Symbol); 1767Assert.Same(declSymbol, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 1772Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 1870Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single()); 1875Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 1887Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 1898Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 1902Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 1908Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol); 1913Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 1918Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 1924Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol); 1935Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 1940Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2093Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single()); 2098Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 2105Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2113Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2117Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2122Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol); 2127Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2132Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2137Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol); 2148Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2153Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2257Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single()); 2262Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 2271Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 2279Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2283Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 2288Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol); 2293Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 2298Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol); 2303Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol); 2314Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2319Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2436Assert.Same(testType, model1.LookupSymbols(labelDecl.SpanStart, name: "Test").Single()); 2441Assert.Same(testType, model1.LookupNamespacesAndTypes(labelDecl.SpanStart, name: "Test").Single()); 2443Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart).Single()); 2444Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart, name: "Test").Single()); 2451Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2459Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2465Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol); 2474Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2475Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart).Single()); 2476Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart, name: "Test").Single()); 2480Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2490Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2495Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol); 2511Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single()); 2516Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 3946Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 3953Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single()); 3967Assert.Same(parameter, model.LookupSymbols(nameRef.SpanStart, name: "args").Single()); 3972Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single()); 3976Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 3981Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 3986Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 3991Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 3996Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4007Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single()); 4012Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single()); 4095Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4102Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single()); 4106Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4111Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4116Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4121Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4126Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol); 4137Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single()); 4142Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single()); 4219Assert.Same(local, model.GetSymbolInfo(reference).Symbol); 4512Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol); 4518Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol); 4576Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").First()).Symbol); 4580Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Skip(1).Single()).Symbol); 4625Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol); 4897Assert.Same(label, model.GetSymbolInfo(reference).Symbol); 4952Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol); 4959Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol); 4982Assert.Same(label, model.GetSymbolInfo(reference).Symbol); 6040Assert.Same(declSymbol, refSymbol); 6043Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single()); 6282Assert.Same(x, semanticModel.LookupSymbols(localDecl.SpanStart, name: "x").Single()); 6283Assert.Same(x, semanticModel.GetSymbolInfo(localRef).Symbol); 6284Assert.Same(x, semanticModel.LookupSymbols(localRef.SpanStart, name: "x").Single()); 6327Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single()); 6329Assert.Same(xRef, semanticModel1.LookupSymbols(localRef.SpanStart, name: "x").Single()); 6332Assert.Same(xDecl, xRef); 6378Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single()); 6384Assert.Same(xRef, semanticModel2.LookupSymbols(localRef.SpanStart, name: "x").Single()); 6386Assert.Same(xDecl, xRef); 6455Assert.Same(globalStatement.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree); 6721Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree, context.Operation.Syntax.SyntaxTree); 6742Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().GetSyntax(), context.Operation.Syntax); 7420Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().GetSyntax(), context.Operation.Syntax); 9052Assert.Same(entryPoint, comp.GetEntryPoint(default)); 9107Assert.Same(entryPoint, comp.GetEntryPoint(default)); 9149Assert.Same(entryPoint, comp.GetEntryPoint(default));
SourceGeneration\GeneratorDriverTests.cs (11)
766Assert.Same(oldDriver, driver); 811Assert.Same(parseOptions, passedOptions); 1148Assert.Same(rootFromGetRoot, rootFromTryGetRoot); 4253Assert.Same(generator, sourceGenerator); 4264Assert.Same(generator.GetType(), type); 4275Assert.Same(generator, incrementalGenerator); 4286Assert.Same(generator.GetType(), type); 4500Assert.Same(newParseOptions, result.GeneratedTrees[0].Options); 4501Assert.Same(parseOptions, result.GeneratedTrees[1].Options); 4508Assert.Same(newParseOptions, result.GeneratedTrees[0].Options); 4509Assert.Same(newParseOptions, result.GeneratedTrees[1].Options);
SourceGeneration\StateTableTests.cs (1)
140Assert.Same(compactedTable, compactedTable2);
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
796Assert.Same(dType, typeInfo.Type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (184)
Compilation\CompilationAPITests.cs (8)
599Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[0])); 600Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[1])); 601Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd2[0])); 602Assert.Same(NetFramework.MicrosoftVisualBasic, c.GetDirectiveReference(rd2[1])); 603Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd3[0])); 1734Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfT.ContainingAssembly); 1735Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfObject.ContainingAssembly); 1756Assert.Same(firstCompilation.ObjectType, secondCompilation.ObjectType);
Compilation\CSharpCompilationOptionsTests.cs (4)
57Assert.Same(newOpt1_alias, newOpt1); 447Assert.Same(options, options.WithCryptoPublicKey(default(ImmutableArray<byte>))); 448Assert.Same(options, options.WithCryptoPublicKey(ImmutableArray<byte>.Empty)); 478Assert.Same(oldOptions, newOptions);
Compilation\GetSemanticInfoTests.cs (1)
4046Assert.Same(method1.ReducedFrom.TypeParameters[0], method1.TypeParameters[0].ReducedFrom);
Compilation\ReferenceManagerTests.cs (2)
1376Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1)); 1377Assert.Same(NetFramework.MicrosoftVisualBasic, c.GetDirectiveReference(rd2));
Compilation\SemanticModelAPITests.cs (2)
210Assert.Same(model.GetDeclaredSymbol(rxDecl.Variables.Single()), rxSymbol); 242Assert.Same(model.GetDeclaredSymbol(rxDecl), rxSymbol);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (14)
390Assert.Same(eventSymbol.AddMethod, model.GetDeclaredSymbol(accessorList[0])); 391Assert.Same(eventSymbol.RemoveMethod, model.GetDeclaredSymbol(accessorList[1])); 2877Assert.Same(explicitPropertySymbol.GetMethod, explicitPropertyGetterSymbol); 2887Assert.Same(explicitPropertySymbol.SetMethod, explicitPropertySetterSymbol); 2998Assert.Same(mems2[0], dsymc1); 2999Assert.Same(mems2[1], dsymc2); 3000Assert.Same(mems2[2], dsymc3); 3757Assert.Same(declSymbol, memSymbol); 3878Assert.Same(alias1, alias2); 3938Assert.Same(alias1, alias1b); 3942Assert.Same(alias2, alias2b); 5225Assert.Same(symbol1.ContainingSymbol, symbol2.ContainingSymbol); 5246Assert.Same(symbol1.ContainingSymbol, symbol2.ContainingSymbol); 5267Assert.Same(symbol1.ContainingSymbol, symbol2.ContainingSymbol);
Compilation\UsedAssembliesTests.cs (3)
97Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0])); 644Assert.Same(comp2.ObjectType.ContainingAssembly, comp2.GetAssemblyOrModuleSymbol(used[0])); 2333Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0]));
Symbols\CompilationCreationTests.cs (37)
151Assert.Same(asm2[0], asm1[0]); 155Assert.Same(((PEAssemblySymbol)asm2[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 181Assert.Same(asm3[0], asm1[0]); 186Assert.Same(((PEAssemblySymbol)asm3[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 239Assert.Same(asm3[0], asm1[0]); 245Assert.Same(((PEAssemblySymbol)asm4[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 268Assert.Same(((PEAssemblySymbol)asm4[3]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly); 333Assert.Same(asm5[0], asm1[0]); 342Assert.Same(asm6[0], asm1[0]); 343Assert.Same(asm6[1], asm1[1]); 353Assert.Same(asm7[0], asm1[0]); 354Assert.Same(asm7[1], asm1[1]); 360Assert.Same(((PEAssemblySymbol)asm7[2]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly); 382Assert.Same(((PEAssemblySymbol)asm7[3]).Assembly, ((PEAssemblySymbol)asm4[4]).Assembly); 422Assert.Same(asm8[0], asm1[0]); 423Assert.Same(asm8[0], asm1[0]); 424Assert.Same(asm8[2], asm7[1]); 426Assert.Same(asm8[3], asm7[2]); 428Assert.Same(asm8[1], asm7[3]); 436Assert.Same(asm9[0], asm1[0]); 448Assert.Same(asm10[0], asm1[0]); 449Assert.Same(asm10[1], asm4[1]); 450Assert.Same(asm10[2], asm4[2]); 451Assert.Same(asm10[3], asm4[3]); 452Assert.Same(asm10[4], asm4[4]); 462Assert.Same(asm2[0], asm1[0]); 466Assert.Same(((PEAssemblySymbol)asm2[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 483Assert.Same(asm3[0], asm1[0]); 488Assert.Same(((PEAssemblySymbol)asm3[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 531Assert.Same(asm3[0], asm1[0]); 537Assert.Same(((PEAssemblySymbol)asm4[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly); 560Assert.Same(((PEAssemblySymbol)asm4[3]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly); 619Assert.Same(asm7[0], asm1[0]); 620Assert.Same(asm7[1], asm1[1]); 626Assert.Same(((PEAssemblySymbol)asm7[2]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly); 648Assert.Same(((PEAssemblySymbol)asm7[3]).Assembly, ((PEAssemblySymbol)asm4[4]).Assembly); 2579Assert.Same(module1.Module, module2.Module);
Symbols\CorLibrary\Choosing.cs (2)
44Assert.Same(corLib.Assembly, obj.ContainingAssembly); 52Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object));
Symbols\DefaultInterfaceImplementationTests.cs (2)
14781Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 17072Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get));
Symbols\InterfaceImplementationTests.cs (4)
935Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter)); 936Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter)); 1004Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter)); 1005Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter));
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (2)
142Assert.Same(systemNS.ContainingAssembly, assembly); 155Assert.Same(collectionsNS.ContainingAssembly, assembly);
Symbols\Metadata\PE\MissingTypeReferences.cs (2)
89Assert.Same(constructedFrom, constructedFrom.Construct(constructedFrom.TypeParameters.ToArray())); 98Assert.Same(genericBase.OriginalDefinition, genericBase.ConstructedFrom);
Symbols\Metadata\PE\NoPia.cs (11)
103Assert.Same(pia1_1, assemblies2[2]); 158Assert.Same(localTypes2_3, missing.EmbeddingAssembly); 178Assert.Same(assemblies1[i], assemblies4[i]); 202Assert.Same(localTypes1_5, missing.EmbeddingAssembly); 306Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly); 444Assert.Same(pia1_1, assemblies2[0]); 476Assert.Same(pia1_1, assemblies3[0]); 505Assert.Same(assemblies1[i], assemblies4[i]); 530Assert.Same(localTypes1_5, missing.EmbeddingAssembly); 544Assert.Same(localTypes2_5, missing.EmbeddingAssembly); 642Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
Symbols\OverriddenOrHiddenMembersTests.cs (37)
264Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface1Method.OverriddenOrHiddenMembers); 265Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface1Property.OverriddenOrHiddenMembers); 267Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface2Method.OverriddenOrHiddenMembers); 268Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface2Property.OverriddenOrHiddenMembers); 270Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedInterface1MethodInt.OverriddenOrHiddenMembers); 272Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedInterface2MethodInt.OverriddenOrHiddenMembers); 357Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface1MethodT.OverriddenOrHiddenMembers); 358Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface1MethodInt.OverriddenOrHiddenMembers); 359Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface1Property.OverriddenOrHiddenMembers); 361Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface2MethodT.OverriddenOrHiddenMembers); 362Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface2MethodInt.OverriddenOrHiddenMembers); 363Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseInterface2Property.OverriddenOrHiddenMembers); 365Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedInterface1Method.OverriddenOrHiddenMembers); 367Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedInterface2Method.OverriddenOrHiddenMembers); 427Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethod.OverriddenOrHiddenMembers); 428Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassProperty.OverriddenOrHiddenMembers); 430Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedClassMethodInt.OverriddenOrHiddenMembers); 479Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethodT.OverriddenOrHiddenMembers); 480Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethodInt.OverriddenOrHiddenMembers); 481Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassProperty.OverriddenOrHiddenMembers); 483Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedClassMethod.OverriddenOrHiddenMembers); 544Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethod.OverriddenOrHiddenMembers); 545Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassProperty.OverriddenOrHiddenMembers); 547Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedClassMethodInt.OverriddenOrHiddenMembers); 678Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethod1.OverriddenOrHiddenMembers); 679Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethod2.OverriddenOrHiddenMembers); 680Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassMethod3.OverriddenOrHiddenMembers); 681Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseClassProperty.OverriddenOrHiddenMembers); 683Assert.Same(OverriddenOrHiddenMembersResult.Empty, derivedClassMethod.OverriddenOrHiddenMembers); 917Assert.Same(OverriddenOrHiddenMembersResult.Empty, classAMethod1.OverriddenOrHiddenMembers); 918Assert.Same(OverriddenOrHiddenMembersResult.Empty, classAMethod2.OverriddenOrHiddenMembers); 919Assert.Same(OverriddenOrHiddenMembersResult.Empty, classBMethod1.OverriddenOrHiddenMembers); 920Assert.Same(OverriddenOrHiddenMembersResult.Empty, classBMethod2.OverriddenOrHiddenMembers); 921Assert.Same(OverriddenOrHiddenMembersResult.Empty, classCMethod1.OverriddenOrHiddenMembers); 922Assert.Same(OverriddenOrHiddenMembersResult.Empty, classCMethod2.OverriddenOrHiddenMembers); 923Assert.Same(OverriddenOrHiddenMembersResult.Empty, classDMethod1.OverriddenOrHiddenMembers); 924Assert.Same(OverriddenOrHiddenMembersResult.Empty, classDMethod2.OverriddenOrHiddenMembers);
Symbols\Retargeting\NoPia.cs (15)
413Assert.Same(pia1_1, assemblies2[2]); 466Assert.Same(localTypes2_3, missing.EmbeddingAssembly); 485Assert.Same(assemblies1[i], assemblies4[i]); 508Assert.Same(localTypes1_5, missing.EmbeddingAssembly); 608Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly); 714Assert.Same(pia1_1, assemblies2[2]); 767Assert.Same(localTypes2_3, missing.EmbeddingAssembly); 786Assert.Same(assemblies1[i], assemblies4[i]); 809Assert.Same(localTypes1_5, missing.EmbeddingAssembly); 909Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly); 1018Assert.Same(pia1_1, assemblies2[2]); 1071Assert.Same(localTypes2_3, missing.EmbeddingAssembly); 1090Assert.Same(assemblies1[i], assemblies4[i]); 1113Assert.Same(localTypes1_5, missing.EmbeddingAssembly); 1213Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
184Assert.Same(modifiers, volatileFld.ContainingSymbol); 189Assert.Same(volatileFld.ContainingModule, ((RetargetingFieldSymbol)volatileFld).RetargetingModule);
Symbols\Retargeting\RetargetingTests.cs (1)
847Assert.Same(originalComp.Assembly, ((RetargetingAssemblySymbol)mRetargeted.ContainingAssembly).UnderlyingAssembly);
Symbols\Source\BaseClassTests.cs (4)
1038Assert.Same(B1, ((Retargeting.RetargetingNamedTypeSymbol)B2).UnderlyingNamedType); 1099Assert.Same(((PEModuleSymbol)B1.ContainingModule).Module, ((PEModuleSymbol)B2.ContainingModule).Module); 1168Assert.Same(B1, ((Retargeting.RetargetingNamedTypeSymbol)B2).UnderlyingNamedType); 1225Assert.Same(((PEModuleSymbol)B1.ContainingModule).Module, ((PEModuleSymbol)B2.ContainingModule).Module);
Symbols\Source\DeclaringSyntaxNodeTests.cs (4)
129Assert.Same(expectedSyntaxNodes[i], declaringReferences[i].GetSyntax()); 345Assert.Same(localType.DeclaringSyntaxReferences[0].GetSyntax(), symbol.DeclaringSyntaxReferences[0].GetSyntax()); 372Assert.Same(propertyInitializer, member.DeclaringSyntaxReferences[0].GetSyntax()); 378Assert.Same(propertyInitializer, propSymbol.DeclaringSyntaxReferences[0].GetSyntax());
Symbols\Source\ExternAliasTests.cs (1)
492Assert.Same(externAliasSyntax, externAliasSymbol.DeclaringSyntaxReferences.Single().GetSyntax());
Symbols\Source\FileModifierTests.cs (2)
4318Assert.Same(sourceType, types[0]); 4345Assert.Same(sourceType, types[0]);
Symbols\Source\MethodTests.cs (2)
2548Assert.Same(partialDef.PartialImplementationPart, partialImpl); 2549Assert.Same(partialImpl.PartialDefinitionPart, partialDef);
Symbols\Source\NullablePublicAPITests.cs (1)
4184Assert.Same(localFunctionSymbol, typeParameters.ContainingSymbol);
Symbols\TypeResolutionTests.cs (1)
73Assert.Same(c2.Assembly, c2TestClass.ContainingAssembly);
Symbols\TypeTests.cs (4)
1508Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition); 1526Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition); 1551Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition); 1769Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
Symbols\UnsignedRightShiftTests.cs (16)
134Assert.Same(shiftSymbol.ReturnType, unsignedShiftSymbol.ReturnType); 135Assert.Same(shiftSymbol.Parameters[0].Type, unsignedShiftSymbol.Parameters[0].Type); 136Assert.Same(shiftSymbol.Parameters[1].Type, unsignedShiftSymbol.Parameters[1].Type); 137Assert.Same(shiftSymbol.ContainingSymbol, unsignedShiftSymbol.ContainingSymbol); 637Assert.Same(shiftSymbol.ReturnType, unsignedShiftSymbol.ReturnType); 638Assert.Same(shiftSymbol.Parameters[0].Type, unsignedShiftSymbol.Parameters[0].Type); 639Assert.Same(shiftSymbol.Parameters[1].Type, unsignedShiftSymbol.Parameters[1].Type); 640Assert.Same(shiftSymbol.ContainingSymbol, unsignedShiftSymbol.ContainingSymbol); 1187Assert.Same(shiftSymbol.ReturnType, unsignedShiftSymbol.ReturnType); 1188Assert.Same(shiftSymbol.Parameters[0].Type, unsignedShiftSymbol.Parameters[0].Type); 1189Assert.Same(shiftSymbol.Parameters[1].Type, unsignedShiftSymbol.Parameters[1].Type); 1190Assert.Same(shiftSymbol.ContainingSymbol, unsignedShiftSymbol.ContainingSymbol); 1595Assert.Same(shiftSymbol.ReturnType, unsignedShiftSymbol.ReturnType); 1596Assert.Same(shiftSymbol.Parameters[0].Type, unsignedShiftSymbol.Parameters[0].Type); 1597Assert.Same(shiftSymbol.Parameters[1].Type, unsignedShiftSymbol.Parameters[1].Type); 1598Assert.Same(shiftSymbol.ContainingSymbol, unsignedShiftSymbol.ContainingSymbol);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (272)
Diagnostics\DiagnosticTest.cs (2)
86Assert.Same(syntaxTree, d1.Location.SourceTree); 100Assert.Same(syntaxTree, d3.Location.SourceTree);
Generated\Syntax.Test.xml.Generated.cs (244)
14119Assert.Same(oldNode, newNode); 14145Assert.Same(oldNode, newNode); 14171Assert.Same(oldNode, newNode); 14197Assert.Same(oldNode, newNode); 14223Assert.Same(oldNode, newNode); 14249Assert.Same(oldNode, newNode); 14275Assert.Same(oldNode, newNode); 14301Assert.Same(oldNode, newNode); 14327Assert.Same(oldNode, newNode); 14353Assert.Same(oldNode, newNode); 14379Assert.Same(oldNode, newNode); 14405Assert.Same(oldNode, newNode); 14431Assert.Same(oldNode, newNode); 14457Assert.Same(oldNode, newNode); 14483Assert.Same(oldNode, newNode); 14509Assert.Same(oldNode, newNode); 14535Assert.Same(oldNode, newNode); 14561Assert.Same(oldNode, newNode); 14587Assert.Same(oldNode, newNode); 14613Assert.Same(oldNode, newNode); 14639Assert.Same(oldNode, newNode); 14665Assert.Same(oldNode, newNode); 14691Assert.Same(oldNode, newNode); 14717Assert.Same(oldNode, newNode); 14743Assert.Same(oldNode, newNode); 14769Assert.Same(oldNode, newNode); 14795Assert.Same(oldNode, newNode); 14821Assert.Same(oldNode, newNode); 14847Assert.Same(oldNode, newNode); 14873Assert.Same(oldNode, newNode); 14899Assert.Same(oldNode, newNode); 14925Assert.Same(oldNode, newNode); 14951Assert.Same(oldNode, newNode); 14977Assert.Same(oldNode, newNode); 15003Assert.Same(oldNode, newNode); 15029Assert.Same(oldNode, newNode); 15055Assert.Same(oldNode, newNode); 15081Assert.Same(oldNode, newNode); 15107Assert.Same(oldNode, newNode); 15133Assert.Same(oldNode, newNode); 15159Assert.Same(oldNode, newNode); 15185Assert.Same(oldNode, newNode); 15211Assert.Same(oldNode, newNode); 15237Assert.Same(oldNode, newNode); 15263Assert.Same(oldNode, newNode); 15289Assert.Same(oldNode, newNode); 15315Assert.Same(oldNode, newNode); 15341Assert.Same(oldNode, newNode); 15367Assert.Same(oldNode, newNode); 15393Assert.Same(oldNode, newNode); 15419Assert.Same(oldNode, newNode); 15445Assert.Same(oldNode, newNode); 15471Assert.Same(oldNode, newNode); 15497Assert.Same(oldNode, newNode); 15523Assert.Same(oldNode, newNode); 15549Assert.Same(oldNode, newNode); 15575Assert.Same(oldNode, newNode); 15601Assert.Same(oldNode, newNode); 15627Assert.Same(oldNode, newNode); 15653Assert.Same(oldNode, newNode); 15679Assert.Same(oldNode, newNode); 15705Assert.Same(oldNode, newNode); 15731Assert.Same(oldNode, newNode); 15757Assert.Same(oldNode, newNode); 15783Assert.Same(oldNode, newNode); 15809Assert.Same(oldNode, newNode); 15835Assert.Same(oldNode, newNode); 15861Assert.Same(oldNode, newNode); 15887Assert.Same(oldNode, newNode); 15913Assert.Same(oldNode, newNode); 15939Assert.Same(oldNode, newNode); 15965Assert.Same(oldNode, newNode); 15991Assert.Same(oldNode, newNode); 16017Assert.Same(oldNode, newNode); 16043Assert.Same(oldNode, newNode); 16069Assert.Same(oldNode, newNode); 16095Assert.Same(oldNode, newNode); 16121Assert.Same(oldNode, newNode); 16147Assert.Same(oldNode, newNode); 16173Assert.Same(oldNode, newNode); 16199Assert.Same(oldNode, newNode); 16225Assert.Same(oldNode, newNode); 16251Assert.Same(oldNode, newNode); 16277Assert.Same(oldNode, newNode); 16303Assert.Same(oldNode, newNode); 16329Assert.Same(oldNode, newNode); 16355Assert.Same(oldNode, newNode); 16381Assert.Same(oldNode, newNode); 16407Assert.Same(oldNode, newNode); 16433Assert.Same(oldNode, newNode); 16459Assert.Same(oldNode, newNode); 16485Assert.Same(oldNode, newNode); 16511Assert.Same(oldNode, newNode); 16537Assert.Same(oldNode, newNode); 16563Assert.Same(oldNode, newNode); 16589Assert.Same(oldNode, newNode); 16615Assert.Same(oldNode, newNode); 16641Assert.Same(oldNode, newNode); 16667Assert.Same(oldNode, newNode); 16693Assert.Same(oldNode, newNode); 16719Assert.Same(oldNode, newNode); 16745Assert.Same(oldNode, newNode); 16771Assert.Same(oldNode, newNode); 16797Assert.Same(oldNode, newNode); 16823Assert.Same(oldNode, newNode); 16849Assert.Same(oldNode, newNode); 16875Assert.Same(oldNode, newNode); 16901Assert.Same(oldNode, newNode); 16927Assert.Same(oldNode, newNode); 16953Assert.Same(oldNode, newNode); 16979Assert.Same(oldNode, newNode); 17005Assert.Same(oldNode, newNode); 17031Assert.Same(oldNode, newNode); 17057Assert.Same(oldNode, newNode); 17083Assert.Same(oldNode, newNode); 17109Assert.Same(oldNode, newNode); 17135Assert.Same(oldNode, newNode); 17161Assert.Same(oldNode, newNode); 17187Assert.Same(oldNode, newNode); 17213Assert.Same(oldNode, newNode); 17239Assert.Same(oldNode, newNode); 17265Assert.Same(oldNode, newNode); 17291Assert.Same(oldNode, newNode); 17317Assert.Same(oldNode, newNode); 17343Assert.Same(oldNode, newNode); 17369Assert.Same(oldNode, newNode); 17395Assert.Same(oldNode, newNode); 17421Assert.Same(oldNode, newNode); 17447Assert.Same(oldNode, newNode); 17473Assert.Same(oldNode, newNode); 17499Assert.Same(oldNode, newNode); 17525Assert.Same(oldNode, newNode); 17551Assert.Same(oldNode, newNode); 17577Assert.Same(oldNode, newNode); 17603Assert.Same(oldNode, newNode); 17629Assert.Same(oldNode, newNode); 17655Assert.Same(oldNode, newNode); 17681Assert.Same(oldNode, newNode); 17707Assert.Same(oldNode, newNode); 17733Assert.Same(oldNode, newNode); 17759Assert.Same(oldNode, newNode); 17785Assert.Same(oldNode, newNode); 17811Assert.Same(oldNode, newNode); 17837Assert.Same(oldNode, newNode); 17863Assert.Same(oldNode, newNode); 17889Assert.Same(oldNode, newNode); 17915Assert.Same(oldNode, newNode); 17941Assert.Same(oldNode, newNode); 17967Assert.Same(oldNode, newNode); 17993Assert.Same(oldNode, newNode); 18019Assert.Same(oldNode, newNode); 18045Assert.Same(oldNode, newNode); 18071Assert.Same(oldNode, newNode); 18097Assert.Same(oldNode, newNode); 18123Assert.Same(oldNode, newNode); 18149Assert.Same(oldNode, newNode); 18175Assert.Same(oldNode, newNode); 18201Assert.Same(oldNode, newNode); 18227Assert.Same(oldNode, newNode); 18253Assert.Same(oldNode, newNode); 18279Assert.Same(oldNode, newNode); 18305Assert.Same(oldNode, newNode); 18331Assert.Same(oldNode, newNode); 18357Assert.Same(oldNode, newNode); 18383Assert.Same(oldNode, newNode); 18409Assert.Same(oldNode, newNode); 18435Assert.Same(oldNode, newNode); 18461Assert.Same(oldNode, newNode); 18487Assert.Same(oldNode, newNode); 18513Assert.Same(oldNode, newNode); 18539Assert.Same(oldNode, newNode); 18565Assert.Same(oldNode, newNode); 18591Assert.Same(oldNode, newNode); 18617Assert.Same(oldNode, newNode); 18643Assert.Same(oldNode, newNode); 18669Assert.Same(oldNode, newNode); 18695Assert.Same(oldNode, newNode); 18721Assert.Same(oldNode, newNode); 18747Assert.Same(oldNode, newNode); 18773Assert.Same(oldNode, newNode); 18799Assert.Same(oldNode, newNode); 18825Assert.Same(oldNode, newNode); 18851Assert.Same(oldNode, newNode); 18877Assert.Same(oldNode, newNode); 18903Assert.Same(oldNode, newNode); 18929Assert.Same(oldNode, newNode); 18955Assert.Same(oldNode, newNode); 18981Assert.Same(oldNode, newNode); 19007Assert.Same(oldNode, newNode); 19033Assert.Same(oldNode, newNode); 19059Assert.Same(oldNode, newNode); 19085Assert.Same(oldNode, newNode); 19111Assert.Same(oldNode, newNode); 19137Assert.Same(oldNode, newNode); 19163Assert.Same(oldNode, newNode); 19189Assert.Same(oldNode, newNode); 19215Assert.Same(oldNode, newNode); 19241Assert.Same(oldNode, newNode); 19267Assert.Same(oldNode, newNode); 19293Assert.Same(oldNode, newNode); 19319Assert.Same(oldNode, newNode); 19345Assert.Same(oldNode, newNode); 19371Assert.Same(oldNode, newNode); 19397Assert.Same(oldNode, newNode); 19423Assert.Same(oldNode, newNode); 19449Assert.Same(oldNode, newNode); 19475Assert.Same(oldNode, newNode); 19501Assert.Same(oldNode, newNode); 19527Assert.Same(oldNode, newNode); 19553Assert.Same(oldNode, newNode); 19579Assert.Same(oldNode, newNode); 19605Assert.Same(oldNode, newNode); 19631Assert.Same(oldNode, newNode); 19657Assert.Same(oldNode, newNode); 19683Assert.Same(oldNode, newNode); 19709Assert.Same(oldNode, newNode); 19735Assert.Same(oldNode, newNode); 19761Assert.Same(oldNode, newNode); 19787Assert.Same(oldNode, newNode); 19813Assert.Same(oldNode, newNode); 19839Assert.Same(oldNode, newNode); 19865Assert.Same(oldNode, newNode); 19891Assert.Same(oldNode, newNode); 19917Assert.Same(oldNode, newNode); 19943Assert.Same(oldNode, newNode); 19969Assert.Same(oldNode, newNode); 19995Assert.Same(oldNode, newNode); 20021Assert.Same(oldNode, newNode); 20047Assert.Same(oldNode, newNode); 20073Assert.Same(oldNode, newNode); 20099Assert.Same(oldNode, newNode); 20125Assert.Same(oldNode, newNode); 20151Assert.Same(oldNode, newNode); 20177Assert.Same(oldNode, newNode); 20203Assert.Same(oldNode, newNode); 20229Assert.Same(oldNode, newNode); 20255Assert.Same(oldNode, newNode); 20281Assert.Same(oldNode, newNode); 20307Assert.Same(oldNode, newNode); 20333Assert.Same(oldNode, newNode); 20359Assert.Same(oldNode, newNode); 20385Assert.Same(oldNode, newNode); 20411Assert.Same(oldNode, newNode); 20437Assert.Same(oldNode, newNode);
Parsing\CSharpParseOptionsTests.cs (1)
27Assert.Same(newOpt2, newOpt1);
Syntax\SyntaxNodeTests.cs (2)
1471Assert.Same(secondDirective, firstDirective.GetNextDirective()); 1476Assert.Same(secondDirective.GetPreviousDirective(), firstDirective);
Syntax\SyntaxRewriterTests.cs (11)
317Assert.Same(node, node.SyntaxTree.GetRoot()); 326Assert.Same(node1, node1.SyntaxTree.GetRoot()); 330Assert.Same(node2, node2.SyntaxTree.GetRoot()); 338Assert.Same(tree, tree.GetCompilationUnitRoot().ReplaceToken(tokenT, tokenT).SyntaxTree); 342Assert.Same(newRoot, newRoot.SyntaxTree.GetRoot()); 350Assert.Same(tree, tree.GetCompilationUnitRoot().ReplaceNode(typeName, typeName).SyntaxTree); 354Assert.Same(newRoot, newRoot.SyntaxTree.GetRoot()); 545Assert.Same(rewrittenRoot, rewrittenRoot.SyntaxTree.GetRoot()); 560Assert.Same(ifStmt1, expr1.SyntaxTree.GetRoot()); 578Assert.Same(ifStmt2, expr2.SyntaxTree.GetRoot()); 624Assert.Same(ifStmt2, expr2.SyntaxTree.GetRoot());
Syntax\SyntaxTreeTests.cs (12)
133Assert.Same(options, tree.DiagnosticOptions); 148Assert.Same(options, tree.DiagnosticOptions); 150Assert.Same(options, newTree.DiagnosticOptions); 181Assert.Same(ImmutableDictionary<string, ReportDiagnostic>.Empty, tree.DiagnosticOptions); 195Assert.Same(options, tree.DiagnosticOptions); 213Assert.Same(tree, newTree); 235Assert.Same(map, newTree.DiagnosticOptions); 250Assert.Same(newOptions, newTree.Options); 268Assert.Same(newOptions, newTree.Options); 269Assert.Same(Encoding.Unicode, newText.Encoding); 281Assert.Same(newOptions, newTree.Options); 310Assert.Same(Encoding.Unicode, newText.Encoding);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (4)
143Assert.Same(constructedFrom, constructedMethod.ConstructedFrom); 144Assert.Same(constructedFrom, constructedMethod.OriginalDefinition); 146Assert.Same(constructedFrom, constructedFrom.ConstructedFrom); 147Assert.Same(constructedFrom, constructedFrom.OriginalDefinition);
CSharpTestBase.cs (1)
2037Assert.Same(model, operation.SemanticModel);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Completion\AbstractCompletionProviderTests.cs (1)
1044Assert.Same(hostDocument, workspace.Documents.Single());
QuickInfo\ToolTipAssert.cs (2)
103Assert.Same(expected.NavigationAction, hyperLink.NavigationAction); 105Assert.Same(actual.NavigationAction, actualTarget.NavigationAction);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeFixes\CodeFixServiceTests.cs (1)
1104Assert.Same(analyzer, lowPriorityAnalyzer);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
157=> Assert.Same(a.FilePath, b.FilePath);
RenameTracking\RenameTrackingTaggerProviderTests.cs (1)
857Assert.Same(thrownException, caughtException);
TextEditor\OpenDocumentTests.cs (1)
64Assert.Same(workspace.CurrentSolution, newDocumentWithChanges.Project.Solution);
TextEditor\TryGetDocumentTests.cs (1)
60Assert.Same(text.Container, container);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
498Assert.Same(pair.Key, bodyMatch.OldRoot);
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
3164Assert.Same(baselineA0, newBaselineA2.GetInitialEmitBaseline()); 3165Assert.Same(baselineB0, newBaselineB2.GetInitialEmitBaseline());
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (1)
120Assert.Same(optionsAfterProjectAdded, workspace.CurrentSolution.FallbackAnalyzerOptions);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
167Assert.Same(metadata1, metadata2);
Microsoft.CodeAnalysis.Scripting.UnitTests (6)
ScriptOptionsTests.cs (6)
179Assert.Same(options, options.WithEmitDebugInformation(true)); 193Assert.Same(options, options.WithFileEncoding(Encoding.ASCII)); 210Assert.Same(options, options.WithAllowUnsafe(allowUnsafe)); 237Assert.Same(options, options.WithCheckOverflow(checkOverflow)); 265Assert.Same(options, options.WithOptimizationLevel(optimizationLevel)); 299Assert.Same(options, options.WithWarningLevel(warningLevel));
Microsoft.CodeAnalysis.Test.Utilities (85)
CommonTestBase.cs (3)
658Assert.Same(model, operation.SemanticModel); 659Assert.Same(model, clonedOperation.SemanticModel); 661Assert.Same(((Operation)operation).OwningSemanticModel, ((Operation)clonedOperation).OwningSemanticModel);
Compilation\CompilationExtensions.cs (2)
304Assert.Same(semanticModel, operation.SemanticModel); 308Assert.Same(semanticModel, semanticModel.ContainingPublicModelOrSelf);
Compilation\ControlFlowGraphVerifier.cs (27)
77Assert.Same(operationRoot, graph.OriginalOperation); 143Assert.Same(graph.Root, currentRegion); 144Assert.Same(currentRegion, block.EnclosingRegion); 146Assert.Same(enclosing, currentRegion.EnclosingRegion); 161Assert.Same(graph.Root, currentRegion); 162Assert.Same(currentRegion, block.EnclosingRegion); 193Assert.Same(block, predecessorBranch.Destination); 197Assert.Same(blocks[predecessor.Ordinal], predecessor); 201Assert.Same(predecessor.ConditionalSuccessor, predecessorBranch); 206Assert.Same(predecessor.FallThroughSuccessor, predecessorBranch); 217Assert.Same(predecessor.FallThroughSuccessor, predecessorBranch); 248Assert.Same(block, conditionalBranch.Source); 251Assert.Same(blocks[conditionalBranch.Destination.Ordinal], conditionalBranch.Destination); 287Assert.Same(block, nextBranch.Source); 290Assert.Same(blocks[nextBranch.Destination.Ordinal], nextBranch.Destination); 331Assert.Same(g, graph.GetLocalFunctionControlFlowGraph(m)); 332Assert.Same(g, graph.GetLocalFunctionControlFlowGraphInScope(m)); 333Assert.Same(graph, g.Parent); 340Assert.Same(pair.Value, graph.GetAnonymousFunctionControlFlowGraph(pair.Key)); 341Assert.Same(pair.Value, graph.GetAnonymousFunctionControlFlowGraphInScope(pair.Key)); 342Assert.Same(graph, pair.Value.Parent); 1417Assert.Same(currentRegion, region); 1437Assert.Same(region.ExceptionType, region.EnclosingRegion.ExceptionType); 1456Assert.Same(region.ExceptionType, region.EnclosingRegion.ExceptionType); 1596Assert.Same(remainedIn1, r); 1608Assert.Same(remainedIn2, r); 1613Assert.Same(remainedIn1.EnclosingRegion, remainedIn2.EnclosingRegion);
Compilation\OperationTreeVerifier.cs (1)
2066Assert.Same(((ICaseClauseOperation)operation).Label, operation.Label);
Compilation\TestOperationVisitor.cs (49)
85Assert.Same(first, forwards.Current); 92Assert.Same(last, reversed.Current); 111Assert.Same(operation.SemanticModel, operation.SemanticModel.ContainingPublicModelOrSelf); 185Assert.Same(root, ((SwitchCaseOperation)root.Parent).Condition); 376Assert.Same(operation.Operation, operation.ChildOperations.Single()); 415Assert.Same(operation.ReturnedValue, operation.ChildOperations.Single()); 496Assert.Same(operation.Operand, operation.ChildOperations.Single()); 508Assert.Same(operation.Operation, operation.ChildOperations.Single()); 571Assert.Same(((IFunctionPointerTypeSymbol)operation.Target.Type).Signature, signature); 582Assert.Same(operation.Value, operation.ChildOperations.Single()); 622Assert.Same(operation.Pointer, operation.ChildOperations.Single()); 685Assert.Same(operation.Member, operation.Field); 694Assert.Same(operation.Member, operation.Method); 708Assert.Same(operation.Member, operation.Property); 716Assert.Same(operation.Member, operation.Event); 755Assert.Same(operation.Operand, operation.ChildOperations.Single()); 863Assert.Same(operation.Operand, operation.ChildOperations.Single()); 919Assert.Same(operation.ValueOperand, operation.ChildOperations.Single()); 940Assert.Same(operation.Body, operation.ChildOperations.Single()); 958Assert.Same(operation.Body, children[0]); 961Assert.Same(operation.IgnoredBody, children[1]); 992Assert.Same(operation.Operation, operation.ChildOperations.Single()); 998Assert.Same(operation.Argument, operation.ChildOperations.Single()); 1010Assert.Same(operation.Exception, operation.ChildOperations.Single()); 1017Assert.Same(operation.Reference, operation.ChildOperations.Single()); 1099Assert.Same(operation.Value, operation.ChildOperations.Single()); 1206Assert.Same(operation.Target, operation.ChildOperations.Single()); 1212Assert.Same(operation.Operand, operation.ChildOperations.Single()); 1233Assert.Same(operation.Instance, operation.ChildOperations.Single()); 1252Assert.Same(operation.Initializer, operation.ChildOperations.Single()); 1265Assert.Same(operation.Initializer, operation.ChildOperations.Single()); 1294Assert.Same(operation.Text, operation.ChildOperations.Single()); 1369Assert.Same(operation.Value, operation.ChildOperations.Single()); 1382Assert.Same(operation.Value, operation.ChildOperations.Single()); 1392Assert.Same(operation.LeftPattern, children[0]); 1393Assert.Same(operation.RightPattern, children[1]); 1400Assert.Same(operation.Pattern, operation.ChildOperations.Single()); 1451Assert.Same(operation.Pattern, operation.ChildOperations.Single()); 1581Assert.Same(((ICaseClauseOperation)operation).Label, operation.Label); 1589Assert.Same(operation.Pattern, operation.ChildOperations.Single()); 1596Assert.Same(operation.Operation, operation.ChildOperations.Single()); 1602Assert.Same(operation.Expression, operation.ChildOperations.Single()); 1614Assert.Same(operation.Target, operation.ChildOperations.Single()); 1670Assert.Same(operation.BlockBody, operation.ChildOperations.Single()); 1675Assert.Same(operation.ExpressionBody, operation.ChildOperations.Single()); 1703Assert.Same(operation.Value, operation.ChildOperations.Single()); 1742Assert.Same(operation.Operand, operation.ChildOperations.Single()); 1771Assert.Same(operation.LeftOperand, children[index++]); 1776Assert.Same(operation.RightOperand, children[index++]);
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
1280Assert.Same(controlFlowGraphAndSymbol.Graph, getControlFlowGraph(operationBlock).Graph); 1312Assert.Same(controlFlowGraph, operationContext.GetControlFlowGraph()); 1318Assert.Same(controlFlowGraph, _controlFlowGraphMapOpt[rootOperation].Graph);
Microsoft.CodeAnalysis.UnitTests (101)
AnalyzerAssemblyLoaderTests.cs (4)
982Assert.Same(delta2B, delta2); 1462Assert.Same(copiedAssembly, assembly); 1591Assert.Same(expected, actual); 1619Assert.Same(expected, actual);
Analyzers\AnalyzerConfigTests.cs (6)
1593Assert.Same(options[0].TreeOptions.Keys.First(), options[1].TreeOptions.Keys.First()); 1594Assert.Same(options[1].TreeOptions.Keys.First(), options[2].TreeOptions.Keys.First()); 1611Assert.Same(options[0].TreeOptions, options[1].TreeOptions); 1612Assert.Same(options[0].AnalyzerOptions, options[1].AnalyzerOptions); 1613Assert.Same(options[1].TreeOptions, options[2].TreeOptions); 1614Assert.Same(options[1].AnalyzerOptions, options[2].AnalyzerOptions);
CachingLookupTests.cs (2)
303Assert.Same(item, getItem()); 341Assert.Same(item, getItem());
Collections\BoxesTest.cs (19)
17Assert.Same(Boxes.Box(true), Boxes.Box(true)); 18Assert.Same(Boxes.Box(false), Boxes.Box(false)); 22Assert.Same(Boxes.Box((byte)0), Boxes.Box((byte)0)); 26Assert.Same(Boxes.Box((sbyte)0), Boxes.Box((sbyte)0)); 30Assert.Same(Boxes.Box((short)0), Boxes.Box((short)0)); 34Assert.Same(Boxes.Box((ushort)0), Boxes.Box((ushort)0)); 38Assert.Same(Boxes.Box(0), Boxes.Box(0)); 39Assert.Same(Boxes.Box(1), Boxes.Box(1)); 40Assert.Same(Boxes.BoxedInt32Zero, Boxes.Box(0)); 41Assert.Same(Boxes.BoxedInt32One, Boxes.Box(1)); 45Assert.Same(Boxes.Box(0u), Boxes.Box(0u)); 49Assert.Same(Boxes.Box(0L), Boxes.Box(0L)); 53Assert.Same(Boxes.Box(0UL), Boxes.Box(0UL)); 57Assert.Same(Boxes.Box(0.0f), Boxes.Box(0.0f)); 62Assert.Same(Boxes.Box(0.0), Boxes.Box(0.0)); 67Assert.Same(Boxes.Box(decimal.Zero), Boxes.Box(0m)); 74Assert.Same(Boxes.Box('\0'), Boxes.Box('\0')); 75Assert.Same(Boxes.Box('*'), Boxes.Box('*')); 76Assert.Same(Boxes.Box('0'), Boxes.Box('0'));
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (2)
450Assert.Same((object)value, (object?)actualValue); 467Assert.Same((object)value, (object?)actualValue);
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
257Assert.Same(collection.SyncRoot, collection.SyncRoot);
Collections\ImmutableDictionaryTestBase.cs (2)
145Assert.Same(dictionary.SyncRoot, dictionary.SyncRoot); 245Assert.Same(EqualityComparer<V>.Default, GetValueComparer(empty));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
295Assert.Same(nonGeneric.SyncRoot, nonGeneric.SyncRoot);
Collections\ImmutableListTestBase.cs (1)
514Assert.Same(collection.SyncRoot, collection.SyncRoot);
Collections\ImmutableSegmentedDictionaryTest.cs (4)
120Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer); 124Assert.Same(keyComparer, dictionary.KeyComparer); 130Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer); 136Assert.Same(keyComparer, dictionary.KeyComparer);
Collections\ImmutableSegmentedDictionaryTest.nonnetstandard.cs (1)
39Assert.Same(EqualityComparer<TKey>.Default, empty.GetKeyComparer());
Collections\ImmutableSegmentedHashSetTest.nonnetstandard.cs (1)
46Assert.Same(comparer ?? EqualityComparer<T>.Default, GetEqualityComparer(emptySet));
Collections\ImmutableSetTest.cs (1)
204Assert.Same(builder.SyncRoot, builder.SyncRoot);
Collections\ImmutableSetTest.nonnetstandard.cs (1)
101Assert.Same(expected, actual);
Collections\ImmutablesTestBase.cs (1)
40Assert.Same((object?)expected, (object?)actual); //, message, formattingArgs);
Collections\List\ICollection.NonGeneric.Tests.cs (1)
150Assert.Same(collection.SyncRoot, collection.SyncRoot);
Collections\List\SegmentedList.Generic.Tests.Capacity.cs (2)
81Assert.Same(resizedSegments[i], oldSegments[i]); 106Assert.Same(resizedSegments[0], oldSegments[0]);
Collections\SegmentedArrayTests.cs (2)
99Assert.Same(Array.Empty<byte[]>(), SegmentedCollectionsMarshal.AsSegments(new SegmentedArray<byte>(0))); 129Assert.Same(SegmentedCollectionsMarshal.AsSegments(data), data.SyncRoot);
CommonCommandLineParserTests.cs (1)
1266Assert.Same(arg, memoryString);
Emit\EmitOptionsTests.cs (1)
38Assert.Same(newOpt1_alias, newOpt1);
InternalUtilities\ConcurrentDictionaryExtensionsTests.cs (4)
31Assert.Same(first, dictionary.GetOrAdd(0, static (key, arg) => arg, first)); 32Assert.Same(first, dictionary[0]); 34Assert.Same(first, dictionary.GetOrAdd(0, static (key, arg) => arg, second)); 35Assert.Same(first, dictionary[0]);
InternalUtilities\WeakListTests.cs (1)
95Assert.Same(b.GetReference(), nonWeakList[0]);
MetadataReferences\MetadataReferenceTests.cs (19)
214Assert.Same(DocumentationProvider.Default, r.DocumentationProvider); 231Assert.Same(doc, r.DocumentationProvider); 258Assert.Same(doc, r.DocumentationProvider); 259Assert.Same(doc, r.DocumentationProvider); 267Assert.Same(r, r1); 271Assert.Same(r, r2); 275Assert.Same(r, r3); 297Assert.Same(doc, r.DocumentationProvider); 298Assert.Same(doc, r.DocumentationProvider); 310Assert.Same(r.DocumentationProvider, r3.DocumentationProvider); 311Assert.Same(r.GetMetadataNoCopy(), r3.GetMetadataNoCopy()); 318Assert.Same(r.DocumentationProvider, r4.DocumentationProvider); 319Assert.Same(r.GetMetadataNoCopy(), r4.GetMetadataNoCopy()); 347Assert.Same(c, r1.Compilation); 353Assert.Same(c, r2.Compilation); 359Assert.Same(c, r3.Compilation); 378Assert.Same(c, r1.Compilation); 384Assert.Same(c, r2.Compilation); 390Assert.Same(c, r3.Compilation);
StringTableTests.cs (9)
25Assert.Same(s1, s2); 46Assert.Same(s1, s2); 49Assert.Same(s2, s3); 52Assert.Same(s3, s4); 55Assert.Same(s4, s5); 64Assert.Same(s1, s2); 74Assert.Same(s1, s2); 84Assert.Same(s1, s2); 139Assert.Same(s1, s2);
Text\SourceTextTests.cs (9)
46Assert.Same(string.Empty, text.ToString()); 56Assert.Same(s_utf8, SourceText.From(HelloWorld, s_utf8).Encoding); 57Assert.Same(s_unicode, SourceText.From(HelloWorld, s_unicode).Encoding); 60Assert.Same(s_unicode, SourceText.From(bytes, bytes.Length, s_unicode).Encoding); 64Assert.Same(s_unicode, SourceText.From(stream, s_unicode).Encoding); 360Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding); 361Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding); 379Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding); 380Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding);
Text\TextChangeTests.cs (5)
198Assert.Same(Encoding.Unicode, subText.Encoding); 241Assert.Same(Encoding.Unicode, newText.Encoding); 585Assert.Same(chunk1, GetChunks(newText)[0]); 639Assert.Same(change1, change2); // this was a no-op and returned the same instance 650Assert.Same(change1, change2); // this was a no-op and returned the same instance
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (24)
CodeGen\CodeGenTuples.vb (9)
8952Assert.Same(comp.GlobalNamespace, ns.ContainingSymbol) 8953Assert.Same(comp.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8954Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule) 8960Assert.Same(comp.Assembly.GlobalNamespace, ns.ContainingSymbol) 8961Assert.Same(comp.Assembly.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8962Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule) 8968Assert.Same(comp.SourceModule.GlobalNamespace, ns.ContainingSymbol) 8969Assert.Same(comp.SourceModule.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8970Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule)
Emit\NoPiaEmbedTypes.vb (15)
1025Assert.Same(itest1, test2.Interfaces.Single()) 1045Assert.Same(itest1, itest3.Interfaces.Single()) 1082Assert.Same(itest8, [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("UsePia1").Interfaces.Single()) 1404Assert.Same(p1.GetMethod, get_P1) 1405Assert.Same(p1.SetMethod, set_P1) 1413Assert.Same(p2.GetMethod, get_P2) 1414Assert.Same(p2.SetMethod, set_P2) 1421Assert.Same(p3.GetMethod, get_P3) 1435Assert.Same(p4.SetMethod, set_P4) 1446Assert.Same(e1.AddMethod, add_E1) 1447Assert.Same(e1.RemoveMethod, remove_E1) 1459Assert.Same(e2.AddMethod, add_E2) 1460Assert.Same(e2.RemoveMethod, remove_E2) 1567Assert.Same(type1, t2.ConstraintTypes(0)) 1600Assert.Same(t1, t6.ConstraintTypes(0))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
ScriptTests.vb (1)
50Assert.Same(script, state.Script)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\QueryExpressions_FlowAnalysis.vb (1)
359Assert.Same(flowsIn, dataFlowAnalysisResults.ReadInside(0))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
BasicTestBase.vb (2)
792Assert.Same(semanticModel, operation.SemanticModel) 924Assert.Same(semanticModel, operation.SemanticModel)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
VisualStudioMSBuildWorkspaceTests.cs (5)
126Assert.Same(p0mscorlib, p1mscorlib); 164Assert.Same(p1Sys1, p2Sys1); 177Assert.Same(mdp1Sys1.Id, mdp1Sys2.Id); 178Assert.Same(mdp1Sys1.Id, mdp2Sys1.Id); 179Assert.Same(mdp1Sys1.Id, mdp2Sys3.Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (90)
ObjectSerializationTests.cs (3)
737Assert.Same(string1, string6); 738Assert.Same(string2, string5); 739Assert.Same(string3, string4);
Options\CodeStyleOptionTests.cs (4)
15Assert.Same(CodeStyleOption2.FalseWithSilentEnforcement.WithValue(true), CodeStyleOption2.TrueWithSilentEnforcement); 16Assert.Same(CodeStyleOption2.TrueWithSilentEnforcement.WithValue(false), CodeStyleOption2.FalseWithSilentEnforcement); 18Assert.Same(CodeStyleOption2.FalseWithSuggestionEnforcement.WithValue(true), CodeStyleOption2.TrueWithSuggestionEnforcement); 19Assert.Same(CodeStyleOption2.TrueWithSuggestionEnforcement.WithValue(false), CodeStyleOption2.FalseWithSuggestionEnforcement);
Options\OptionKeyTests.cs (6)
46Assert.Same(storage1, option.StorageLocations[0]); 47Assert.Same(storage2, option.StorageLocations[1]); 48Assert.Same(storage3, option.StorageLocations[2]); 59Assert.Same(storage1, option.StorageLocations[0]); 60Assert.Same(storage2, option.StorageLocations[1]); 61Assert.Same(storage3, option.StorageLocations[2]);
SolutionTests\ProjectInfoTests.cs (4)
78Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.Documents).Single()); 97Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.AdditionalDocuments).Single()); 116Assert.Same(projectReference, ((ImmutableArray<ProjectReference>)info1.ProjectReferences).Single()); 135Assert.Same(metadataReference, ((ImmutableArray<MetadataReference>)info1.MetadataReferences).Single());
SolutionTests\SolutionInfoTests.cs (1)
35Assert.Same(projectInfo, ((ImmutableArray<ProjectInfo>)info1.Projects).Single());
SolutionTests\SolutionTestHelpers.cs (6)
34Assert.Same(instanceWithValue2, instanceWithValue); 58Assert.Same(boxedItems, getter(instanceWithItem)); 60Assert.Same(instanceWithNoItem, factory(instanceWithNoItem, null)); 61Assert.Same(instanceWithNoItem, factory(instanceWithNoItem, [])); 62Assert.Same(instanceWithNoItem, factory(instanceWithNoItem, [])); 77Assert.Same(boxedDupItems, getter(factory(instanceWithNoItem, boxedDupItems)));
SolutionTests\SolutionTests.cs (49)
182Assert.Same(newSolution1, newSolution2); 202Assert.Same(newSolution2, newSolution1); 209Assert.Same(newSolution3, newSolution4); 212Assert.Same(newSolution3, newSolution5); 234Assert.Same(newSolution1, newSolution2); 255Assert.Same(solution, solution.WithDocumentSourceCodeKind(documentId, SourceCodeKind.Regular)); 317Assert.Same(newSolution1, newSolution2); 359Assert.Same(newSolution1, newSolution2); 379Assert.Same(textAndVersion.Text, actualText); 383Assert.Same(newSolution1, newSolution2); 924Assert.Same(text, actualText); 927Assert.Same(newSolution1, newSolution2); 947Assert.Same(textAndVersion.Text, actualText); 951Assert.Same(newSolution1, newSolution2); 970Assert.Same(text, actualText); 973Assert.Same(newSolution1, newSolution2); 993Assert.Same(textAndVersion.Text, actualText); 997Assert.Same(newSolution1, newSolution2); 1447Assert.Same(newSolution, newSolution.WithProjectAssemblyName(projectId, assemblyName)); 1932Assert.Same(projectRefs, solution2.GetProject(projectId)!.AllProjectReferences); 1952Assert.Same(projectRefs, newSolution1.GetProject(projectId)!.AllProjectReferences); 1978Assert.Same(solution, solution2); 2097Assert.Same(solution, solution2); 2167Assert.Same(solution, solution2); 2177Assert.Same(solution, solution2); 2235Assert.Same(solution, solution2); 2245Assert.Same(solution, solution2); 3050Assert.Same(newParseOptions, newUpdatedParseOptions); 3250Assert.Same(tree, tree.WithRootAndOptions(root, tree.Options)); 3251Assert.Same(tree, tree.WithFilePath(tree.FilePath)); 3783Assert.Same(tree2, tree2.GetRoot().SyntaxTree); 3784Assert.Same(tree.Options, tree2.Options); 3785Assert.Same(tree.Encoding, tree2.Encoding); 3790Assert.Same(tree, tree.WithFilePath("old path")); 3811Assert.Same(tree3, tree3.GetRoot().SyntaxTree); 3812Assert.Same(tree.Options, tree3.Options); 3813Assert.Same(tree.Encoding, tree3.Encoding); 3822Assert.Same(tree4, tree4.GetRoot().SyntaxTree); 3823Assert.Same(newOptions, tree4.Options); 3824Assert.Same(tree.Encoding, tree4.Encoding); 3829Assert.Same(tree, tree.WithRootAndOptions(tree.GetRoot(), tree.Options)); 4119Assert.Same(frozenDocument, frozenDocument2); 4276Assert.Same(await frozenDocument.GetSyntaxTreeAsync(), singleTree); 4694Assert.Same(originalSyntaxTree, newSyntaxTree); 4861Assert.Same(originalSyntaxTree, newSyntaxTree); 5058Assert.Same(compilation1, compilation1New); 5234Assert.Same(compilation1, compilation1New); 5444Assert.Same(newDocText, sameText); 5448Assert.Same(newDocText, treeText);
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
480Assert.Same(generatedTreeBeforeChange, generatedTreeAfterChange); 540Assert.Same(cachedStateAfterFirstChange, cachedStateAfterSecondChange); 587Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 611Assert.Same(workspace.CurrentSolution, generatedDocument!.Project.Solution); 635Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 893Assert.Same(project.Solution, frozenSolution.Project.Solution);
SolutionTests\TextLoaderTests.cs (3)
119Assert.Same(LoaderOverridesObsolete.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None)); 127Assert.Same(LoaderOverridesObsolete2.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None)); 135Assert.Same(LoaderOverridesNew.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None));
TestCompositionTests.cs (1)
20Assert.Same(composition1.ExportProviderFactory, composition2.ExportProviderFactory);
UtilityTest\CancellationSeriesTests.cs (1)
127Assert.Same(exception, aggregateException.InnerExceptions.Single());
WorkspaceServiceTests\ReferenceCountedDisposableTests.cs (1)
30Assert.Same(target, reference.Target);
WorkspaceTests\AdhocWorkspaceTests.cs (5)
49Assert.Same(project, ws.CurrentSolution.Projects.FirstOrDefault()); 94Assert.Same(ws.CurrentSolution, solution); 234Assert.Same(text, currentText); 268Assert.Same(text, currentText); 307Assert.Same(text, currentText);
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiAddFileTests.cs (1)
97Assert.Same(openApiRefs[0].ParentNode, openApiRefs[1].ParentNode);
Microsoft.DotNet.XUnitAssert.Tests (27)
EqualityAssertsTests.cs (2)
579 Assert.Same(obj2, obj1.Equals_Other); 2918 Assert.Same(obj2, obj1.Equals_Other);
ExceptionAssertsTests.cs (19)
61 Assert.Same(thrown, ex.InnerException); 79 Assert.Same(thrown, ex.InnerException); 144 Assert.Same(thrown, ex.InnerException); 162 Assert.Same(thrown, ex.InnerException); 217 Assert.Same(thrown, ex.InnerException); 235 Assert.Same(thrown, ex.InnerException); 297 Assert.Same(thrown, ex.InnerException); 315 Assert.Same(thrown, ex.InnerException); 386 Assert.Same(thrown, ex.InnerException); 404 Assert.Same(thrown, ex.InnerException); 472 Assert.Same(thrown, ex.InnerException); 490 Assert.Same(thrown, ex.InnerException); 544 Assert.Same(thrown, ex.InnerException); 614 Assert.Same(thrown, ex.InnerException); 674 Assert.Same(thrown, ex.InnerException); 733 Assert.Same(thrown, ex.InnerException); 751 Assert.Same(thrown, ex.InnerException); 819 Assert.Same(thrown, ex.InnerException); 837 Assert.Same(thrown, ex.InnerException);
IdentityAssertsTests.cs (3)
34 Assert.Same(actual, actual); 40 var ex = Record.Exception(() => Assert.Same("bob", "jim")); 55 Assert.Throws<SameException>(() => Assert.Same(0, 0));
TypeAssertsTests.cs (3)
62 Assert.Same(ex, result); 131 Assert.Same(ex, result); 360 Assert.Same(ex, result);
Microsoft.Extensions.AI.Abstractions.Tests (99)
ChatCompletion\ChatClientExtensionsTests.cs (1)
57Assert.Same(expectedOptions, options);
ChatCompletion\ChatClientMetadataTests.cs (1)
26Assert.Same(uri, metadata.ProviderUri);
ChatCompletion\ChatCompletionTests.cs (11)
26Assert.Same(message, completion.Message); 27Assert.Same(message, Assert.Single(completion.Choices)); 41Assert.Same(messages, completion.Choices); 60Assert.Same(message, completion.Message); 61Assert.Same(message, completion.Choices[0]); 73Assert.Same(first, completion.Message); 74Assert.Same(first, completion.Choices[0]); 108Assert.Same(usage, completion.Usage); 113Assert.Same(raw, completion.RawRepresentation); 118Assert.Same(additionalProps, completion.AdditionalProperties); 122Assert.Same(newChoices, completion.Choices);
ChatCompletion\ChatMessageTests.cs (12)
22Assert.Same(message.Contents, message.Contents); 38Assert.Same(message.Contents, message.Contents); 78Assert.Same(message.Contents, message.Contents); 142Assert.Same(textContent, message.Contents[3]); 204Assert.Same(contents, message.Contents); 207Assert.Same(contents, message.Contents); 224Assert.Same(raw, message.RawRepresentation); 227Assert.Same(raw, message.RawRepresentation); 233Assert.Same(raw, message.RawRepresentation); 245Assert.Same(props, message.AdditionalProperties); 248Assert.Same(props, message.AdditionalProperties); 254Assert.Same(props, message.AdditionalProperties);
ChatCompletion\ChatOptionsTests.cs (9)
26Assert.Same(ChatToolMode.Auto, options.ToolMode); 41Assert.Same(ChatToolMode.Auto, clone.ToolMode); 89Assert.Same(ChatResponseFormat.Json, options.ResponseFormat); 91Assert.Same(stopSequences, options.StopSequences); 92Assert.Same(ChatToolMode.RequireAny, options.ToolMode); 93Assert.Same(tools, options.Tools); 94Assert.Same(additionalProps, options.AdditionalProperties); 104Assert.Same(ChatResponseFormat.Json, clone.ResponseFormat); 107Assert.Same(ChatToolMode.RequireAny, clone.ToolMode);
ChatCompletion\ChatResponseFormatTests.cs (2)
15Assert.Same(ChatResponseFormat.Text, ChatResponseFormat.Text); 16Assert.Same(ChatResponseFormat.Json, ChatResponseFormat.Json);
ChatCompletion\ChatToolModeTests.cs (2)
14Assert.Same(ChatToolMode.Auto, ChatToolMode.Auto); 15Assert.Same(ChatToolMode.RequireAny, ChatToolMode.RequireAny);
ChatCompletion\DelegatingChatClientTests.cs (6)
42Assert.Same(expectedChatContents, chatContents); 43Assert.Same(expectedChatOptions, options); 78Assert.Same(expectedChatContents, chatContents); 79Assert.Same(expectedChatOptions, options); 93Assert.Same(expectedResults[0], enumerator.Current); 95Assert.Same(expectedResults[1], enumerator.Current);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (5)
47Assert.Same(update.Contents, update.Contents); 50Assert.Same(newList, update.Contents); 62Assert.Same(raw, update.RawRepresentation); 67Assert.Same(props, update.AdditionalProperties); 111Assert.Same(textContent, update.Contents[3]);
Contents\AIContentTests.cs (2)
26Assert.Same(raw, c.RawRepresentation); 31Assert.Same(props, c.AdditionalProperties);
Contents\FunctionCallContentTests..cs (9)
45Assert.Same(args, c.Arguments); 56Assert.Same(raw, c.RawRepresentation); 61Assert.Same(props, c.AdditionalProperties); 70Assert.Same(args, c.Arguments); 75Assert.Same(e, c.Exception); 209Assert.Same(result, arguments); 227Assert.Same(result, arguments); 245Assert.Same(result, arguments); 326Assert.Same(exc, content.Exception.InnerException);
Contents\FunctionResultContentTests.cs (3)
44Assert.Same(raw, c.RawRepresentation); 49Assert.Same(props, c.AdditionalProperties); 62Assert.Same(e, c.Exception);
Contents\TextContentTests.cs (2)
30Assert.Same(raw, c.RawRepresentation); 35Assert.Same(props, c.AdditionalProperties);
Contents\UsageContentTests.cs (4)
25Assert.Same(c.Details, c.Details); 41Assert.Same(details, c.Details); 45Assert.Same(details2, c.Details); 58Assert.Same(d, c.Details);
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
42Assert.Same(expectedInput, input);
Embeddings\EmbeddingGenerationOptionsTests.cs (1)
50Assert.Same(additionalProps, options.AdditionalProperties);
Embeddings\EmbeddingGeneratorExtensionsTests.cs (1)
60Assert.Same(embeddings[i], results[i].Embedding);
Embeddings\EmbeddingGeneratorMetadataTests.cs (1)
27Assert.Same(uri, metadata.ProviderUri);
Embeddings\EmbeddingTests.cs (2)
31Assert.Same(props, e.AdditionalProperties); 35Assert.Same(floats, array.Array);
Embeddings\GeneratedEmbeddingsTests.cs (15)
68Assert.Same(embeddings[0], generatedEmbeddings[0]); 69Assert.Same(embeddings[1], generatedEmbeddings[1]); 88Assert.Same(e, generatedEmbeddings[2]); 100Assert.Same(usage, embeddings.Usage); 107Assert.Same(props, embeddings.AdditionalProperties); 120Assert.Same(e, embeddings[0]); 134Assert.Same(e1, embeddings[0]); 135Assert.Same(e2, embeddings[1]); 167Assert.Same(e2, embeddings[0]); 171Assert.Same(e2, embeddings[0]); 190Assert.Same(e2, embeddings[0]); 210Assert.Same(e3, embeddings[1]); 211Assert.Same(e2, embeddings[2]); 228Assert.Same(e1, embeddings[0]); 229Assert.Same(e3, embeddings[1]);
Functions\AIFunctionMetadataTests.cs (7)
35Assert.Same(f.AdditionalProperties, new AIFunctionMetadata("name2").AdditionalProperties); 52Assert.Same(f1.Parameters, f2.Parameters); 53Assert.Same(f1.ReturnParameter, f2.ReturnParameter); 54Assert.Same(f1.AdditionalProperties, f2.AdditionalProperties); 92Assert.Same(f.Parameters[0], f.GetParameter("param0")); 93Assert.Same(f.Parameters[1], f.GetParameter("param1")); 94Assert.Same(f.Parameters[2], f.GetParameter("param2"));
Functions\AIFunctionTests.cs (1)
26Assert.Same(result1.Item1, result2.Item1);
Utilities\AIJsonUtilitiesTests.cs (1)
22Assert.Same(options, AIJsonUtilities.DefaultOptions);
Microsoft.Extensions.AI.AzureAIInference.Tests (7)
AzureAIInferenceChatClientTests.cs (4)
61Assert.Same(chatClient, chatClient.GetService<IChatClient>()); 62Assert.Same(chatClient, chatClient.GetService<AzureAIInferenceChatClient>()); 64Assert.Same(client, chatClient.GetService<ChatCompletionsClient>()); 77Assert.Same(client, pipeline.GetService<ChatCompletionsClient>());
AzureAIInferenceEmbeddingGeneratorTests.cs (3)
63Assert.Same(embeddingGenerator, embeddingGenerator.GetService<IEmbeddingGenerator<string, Embedding<float>>>()); 64Assert.Same(client, embeddingGenerator.GetService<EmbeddingsClient>()); 75Assert.Same(client, pipeline.GetService<EmbeddingsClient>());
Microsoft.Extensions.AI.Ollama.Tests (6)
OllamaChatClientTests.cs (3)
34Assert.Same(client, client.GetService<OllamaChatClient>()); 35Assert.Same(client, client.GetService<IChatClient>()); 48Assert.Same(client, pipeline.GetService<OllamaChatClient>());
OllamaEmbeddingGeneratorTests.cs (3)
29Assert.Same(generator, generator.GetService<OllamaEmbeddingGenerator>()); 30Assert.Same(generator, generator.GetService<IEmbeddingGenerator<string, Embedding<float>>>()); 41Assert.Same(generator, pipeline.GetService<OllamaEmbeddingGenerator>());
Microsoft.Extensions.AI.OpenAI.Tests (14)
OpenAIChatClientTests.cs (7)
77Assert.Same(chatClient, chatClient.GetService<IChatClient>()); 78Assert.Same(chatClient, chatClient.GetService<OpenAIChatClient>()); 80Assert.Same(openAIClient, chatClient.GetService<OpenAIClient>()); 95Assert.Same(openAIClient, pipeline.GetService<OpenAIClient>()); 105Assert.Same(chatClient, chatClient.GetService<IChatClient>()); 106Assert.Same(openAIClient, chatClient.GetService<ChatClient>()); 119Assert.Same(openAIClient, pipeline.GetService<ChatClient>());
OpenAIEmbeddingGeneratorTests.cs (7)
74Assert.Same(embeddingGenerator, embeddingGenerator.GetService<IEmbeddingGenerator<string, Embedding<float>>>()); 75Assert.Same(embeddingGenerator, embeddingGenerator.GetService<OpenAIEmbeddingGenerator>()); 77Assert.Same(openAIClient, embeddingGenerator.GetService<OpenAIClient>()); 90Assert.Same(openAIClient, pipeline.GetService<OpenAIClient>()); 100Assert.Same(embeddingGenerator, embeddingGenerator.GetService<IEmbeddingGenerator<string, Embedding<float>>>()); 101Assert.Same(openAIClient, embeddingGenerator.GetService<EmbeddingClient>()); 112Assert.Same(openAIClient, pipeline.GetService<EmbeddingClient>());
Microsoft.Extensions.AI.Tests (14)
ChatCompletion\ChatClientBuilderTest.cs (1)
21Assert.Same(expectedServiceProvider, serviceProvider);
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
265Assert.Same(response.Result, tryGetResultOutput);
ChatCompletion\ConfigureOptionsChatClientTests.cs (5)
44Assert.Same(returnedOptions, options); 51Assert.Same(returnedOptions, options); 60Assert.Same(providedOptions, options); 66Assert.Same(expectedCompletion, completion); 73Assert.Same(expectedUpdates[i++], e.Current);
ChatCompletion\DependencyInjectionPatterns.cs (1)
40Assert.Same(instance1, instance1Copy); // From the same scope
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (2)
41Assert.Same(returnedOptions, options); 50Assert.Same(providedOptions, options);
Embeddings\EmbeddingGeneratorBuilderTests.cs (1)
21Assert.Same(expectedServiceProvider, serviceProvider);
Functions\AIFunctionFactoryTest.cs (3)
173Assert.Same(parameterMetadata, options.Parameters); 174Assert.Same(returnParameterMetadata, options.ReturnParameter); 175Assert.Same(metadata, options.AdditionalProperties);
Microsoft.Extensions.AsyncState.Tests (10)
AsyncContextTests.cs (10)
29Assert.Same(obj1, context1.Get()); 53Assert.Same(obj1, context1.Get()); 80Assert.Same(obj1, context1.Get()); 82Assert.Same(obj2, context2.Get()); 108Assert.Same(obj1, ctx1); 133Assert.Same(obj1, context1.Get()); 135Assert.Same(obj2, context2.Get()); 199await Task.Run(() => Assert.Same(obj, context.Get())); 215await Task.Run(() => Assert.Same(obj, context.Get())); 243Assert.Same(obj2, context.Get());
Microsoft.Extensions.Caching.Hybrid.Tests (3)
SizeTests.cs (2)
35Assert.Same(expected, actual); 47Assert.Same(expected, actual);
StampedeTests.cs (1)
342Assert.Same(first, second);
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheServicesExtensionsTest.cs (1)
60Assert.Same(services, services.AddDistributedSqlServerCache(_ => { }));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
CacheServiceExtensionsTests.cs (1)
57Assert.Same(services, services.AddStackExchangeRedisCache(_ => { }));
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
DefaultHealthCheckServiceTest.cs (3)
112Assert.Same(exception, actual.Value.Exception); 298Assert.Same(thrownException, actual.Value.Exception); 305Assert.Same(faultedException, actual.Value.Exception);
DependencyInjection\HealthChecksBuilderTest.cs (1)
82Assert.Same(instance, registration.Factory(serviceProvider));
Microsoft.Extensions.Diagnostics.Testing.Tests (8)
Metrics\MetricCollectorTests.cs (8)
64Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 74Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 109Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 119Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 156Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 166Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 217Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement); 227Assert.Same(collector.GetMeasurementSnapshot().Last(), collector.LastMeasurement);
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Manifest\ManifestEntryTests.cs (2)
47Assert.Same(directory, result); 93Assert.Same(ManifestEntry.UnknownPath, result);
Microsoft.Extensions.Hosting.Testing.Tests (1)
FakeHostBuilderTests.cs (1)
95Assert.Same(properties, builder.Properties);
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Logging\HttpClientLoggerTest.cs (3)
111Assert.Same(exception, actualException); 442Assert.Same(exception, logRecord.Exception); 989Assert.Same(exception, logRecord.Exception);
Microsoft.Extensions.Http.Polly.Tests (25)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (11)
456Assert.Same(registry, services.GetService<IConcurrentPolicyRegistry<string>>()); 457Assert.Same(registry, services.GetService<IReadOnlyPolicyRegistry<string>>()); 472Assert.Same(registry, services.GetService<IConcurrentPolicyRegistry<string>>()); 473Assert.Same(registry, services.GetService<IPolicyRegistry<string>>()); 474Assert.Same(registry, services.GetService<IReadOnlyPolicyRegistry<string>>()); 493Assert.Same(registry, services.GetService<IConcurrentPolicyRegistry<string>>()); 494Assert.Same(registry, services.GetService<IReadOnlyPolicyRegistry<string>>()); 512Assert.Same(existingRegistry, registry); 514Assert.Same(existingRegistry, services.GetService<IPolicyRegistry<string>>()); 515Assert.Same(existingRegistry, services.GetService<IConcurrentPolicyRegistry<string>>()); 516Assert.Same(existingRegistry, services.GetService<IReadOnlyPolicyRegistry<string>>());
HttpRequestMessageExtensionsTest.cs (2)
28Assert.Same(expected, actual); 80Assert.Same(expected, actual);
PolicyHttpMessageHandlerTest.cs (12)
53Assert.Same(expected, response); 98Assert.Same(expected, response); 99Assert.Same(expectedRequest, policySelectorRequest); 146Assert.Same(expected, response); 198Assert.Same(expected, response); 268Assert.Same(expected, response); 284Assert.Same(context, req.GetPolicyExecutionContext()); 296Assert.Same(expected, response); 314Assert.Same(c, req.GetPolicyExecutionContext()); 325Assert.Same(expectedContext, context); 326Assert.Same(expectedContext, request.GetPolicyExecutionContext()); // We don't clean up the context if the caller or earlier delegating handlers had supplied it. 327Assert.Same(expected, response);
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\HttpResilienceContextExtensionsTests.cs (2)
45Assert.Same(request, context.GetRequestMessage()); 75Assert.Same(request, actualRequest);
Microsoft.Extensions.Localization.Tests (2)
ResourceManagerStringLocalizerFactoryTest.cs (2)
106Assert.Same(result1, result2); 222Assert.Same(result1, result2);
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
DependencyInjectionExtensionsTests.cs (3)
246Assert.Same(resolved1, resolved2); 348Assert.Same(resolved1, resolved2); 349Assert.Same(resolved3, resolved4);
Microsoft.Extensions.ObjectPool.Tests (5)
DefaultObjectPoolTest.cs (3)
24Assert.Same(obj1, obj2); 40Assert.Same(list1, list2); 86Assert.Same(r, p.Get());
DisposableObjectPoolTest.cs (2)
25Assert.Same(obj1, obj2); 41Assert.Same(list1, list2);
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Logging\LoggerMessageHelperTests.cs (1)
72Assert.Same(lmp1, lmp2);
Microsoft.Extensions.WebEncoders.Tests (9)
EncoderServiceCollectionExtensionsTests.cs (9)
24Assert.Same(HtmlEncoder.Default, serviceProvider.GetRequiredService<HtmlEncoder>()); // default encoder 25Assert.Same(HtmlEncoder.Default, serviceProvider.GetRequiredService<HtmlEncoder>()); // as singleton instance 26Assert.Same(JavaScriptEncoder.Default, serviceProvider.GetRequiredService<JavaScriptEncoder>()); // default encoder 27Assert.Same(JavaScriptEncoder.Default, serviceProvider.GetRequiredService<JavaScriptEncoder>()); // as singleton instance 28Assert.Same(UrlEncoder.Default, serviceProvider.GetRequiredService<UrlEncoder>()); // default encoder 29Assert.Same(UrlEncoder.Default, serviceProvider.GetRequiredService<UrlEncoder>()); // as singleton instance 50Assert.Same(htmlEncoder, serviceProvider.GetRequiredService<HtmlEncoder>()); // as singleton instance 54Assert.Same(javaScriptEncoder, serviceProvider.GetRequiredService<JavaScriptEncoder>()); // as singleton instance 58Assert.Same(urlEncoder, serviceProvider.GetRequiredService<UrlEncoder>()); // as singleton instance
Microsoft.Gen.Logging.Unit.Tests (1)
ParserUtilitiesTests.cs (1)
111Assert.Same(locationMock, result);
Microsoft.JSInterop.Tests (18)
DotNetObjectReferenceTest.cs (3)
12Assert.Same(obj, DotNetObjectReference.Create(obj).Value); 74Assert.Same(objRef, jsRuntime.GetObjectReference(objectId)); 92Assert.Same(objRef, jsRuntime.GetObjectReference(objectId));
Infrastructure\ByteArrayJsonConverterTest.cs (2)
213Assert.Same(byteArray3, deserialized[0]); 214Assert.Same(byteArray2, deserialized[1]);
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (4)
85Assert.Same(input, deserialized.Value); 105Assert.Same(instance1, deserialized[0].Value); 106Assert.Same(instance2, deserialized[1].Value); 126Assert.Same(input, deserialized.Value);
JSInProcessRuntimeTest.cs (3)
58Assert.Same(obj1, runtime.GetObjectReference(1).Value); 59Assert.Same(obj2, runtime.GetObjectReference(2).Value); 60Assert.Same(obj3, runtime.GetObjectReference(3).Value);
JSRuntimeTest.cs (6)
289Assert.Same(obj1Ref, runtime.GetObjectReference(1)); 290Assert.Same(obj1, obj1Ref.Value); 292Assert.Same(obj2, runtime.GetObjectReference(2).Value); 293Assert.Same(obj3, runtime.GetObjectReference(3).Value); 294Assert.Same(obj1, runtime.GetObjectReference(4).Value); 315Assert.Same(exception, error.InnerException);
Microsoft.Net.Http.Headers.Tests (19)
MediaTypeHeaderValueTest.cs (11)
132Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 143Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 159Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 165Assert.Same(pair0.Name.Value, pair1.Name.Value); 166Assert.Same(pair0.Value.Value, pair1.Value.Value); 178Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 193Assert.Same(pair0.Name.Value, pair1.Name.Value); 194Assert.Same(pair0.Value.Value, pair1.Value.Value); 206Assert.Same(mediaType2.MediaType.Value, mediaType1.MediaType.Value); 216Assert.Same(pair2.Name.Value, pair1.Name.Value); 217Assert.Same(pair2.Value.Value, pair1.Value.Value);
NameValueHeaderValueTest.cs (8)
63Assert.Same(pair0.Name.Value, pair1.Name.Value); 79Assert.Same(pair0.Name.Value, pair1.Name.Value); 98Assert.Same(pair0.Name.Value, pair1.Name.Value); 99Assert.Same(pair0.Value.Value, pair1.Value.Value); 113Assert.Same(pair0.Name.Value, pair1.Name.Value); 114Assert.Same(pair0.Value.Value, pair1.Value.Value); 132Assert.Same(pair0.Name.Value, pair1.Name.Value); 133Assert.Same(pair0.Value.Value, pair1.Value.Value);
Microsoft.VisualBasic.Tests (13)
Microsoft\VisualBasic\ApplicationServices\StartupEventArgsTests.cs (1)
15Assert.Same(collection, args.CommandLine);
Microsoft\VisualBasic\ApplicationServices\StartupNextInstanceEventArgsTests.cs (1)
17Assert.Same(collection, args.CommandLine);
Microsoft\VisualBasic\ApplicationServices\UnhandledExceptionEventArgsTests.cs (1)
19Assert.Same(exception, args.Exception);
Microsoft\VisualBasic\Devices\ComputerTests.cs (4)
18Assert.Same(audio, computer.Audio); 22Assert.Same(clipboard, computer.Clipboard); 26Assert.Same(keyboard, computer.Keyboard); 30Assert.Same(mouse, computer.Mouse);
Microsoft\VisualBasic\Devices\ServerComputerTests.cs (5)
17Assert.Same(clock, computer.Clock); 21Assert.Same(fileSystem, computer.FileSystem); 25Assert.Same(info, computer.Info); 29Assert.Same(network, computer.Network); 33Assert.Same(registry, computer.Registry);
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (1)
687Assert.Same(specialDirectories, _fileSystem.SpecialDirectories);
Mvc.Analyzers.Test (7)
CodeAnalysisExtensionsTest.cs (7)
317Assert.Same(attribute, attributeData.AttributeClass); 322Assert.Same(attribute, attributeData.AttributeClass); 360Assert.Same(attribute, attributeData.AttributeClass); 365Assert.Same(attribute, attributeData.AttributeClass); 370Assert.Same(attribute, attributeData.AttributeClass); 408Assert.Same(attribute, attributeData.AttributeClass); 446Assert.Same(attribute, attributeData.AttributeClass);
Mvc.Api.Analyzers.Test (7)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs (1)
78Assert.Same(descriptor, diagnostic.Descriptor);
ApiConventionAnalyzerIntegrationTest.cs (1)
294Assert.Same(descriptor, diagnostic.Descriptor);
SymbolApiResponseMetadataProviderTest.cs (5)
285Assert.Same(method, metadata.AttributeSource); 415Assert.Same(expected, result); 433Assert.Same(expected, result); 451Assert.Same(expected, result); 469Assert.Same(expected, result);
Shared.Tests (8)
EmptyCollections\EmptyReadOnlyListTests.cs (4)
18Assert.Same(EmptyReadOnlyList<int>.Instance, EmptyReadOnlyList<int>.Instance); 23Assert.Same(instance.GetEnumerator(), instance.GetEnumerator()); 24Assert.Same(instance.GetEnumerator(), instance.GetEnumerator()); 25Assert.Same(((IEnumerable)instance).GetEnumerator(), ((IEnumerable)instance).GetEnumerator());
JsonSchemaExporter\JsonSchemaExporterConfigurationTests.cs (1)
24Assert.Same(JsonSchemaExporterOptions.Default, JsonSchemaExporterOptions.Default);
Pools\PoolTests.cs (3)
157Assert.Same(l, l2); 172Assert.Same(d, d2); 187Assert.Same(s, s2);
System.Drawing.Common.Tests (13)
System\Drawing\BrushesTests.cs (1)
162Assert.Same(brush, getBrush());
System\Drawing\BufferedGraphicsManagerTests.cs (1)
11Assert.Same(BufferedGraphicsManager.Current, BufferedGraphicsManager.Current);
System\Drawing\ImageTests.cs (3)
33Assert.Same(bitmap.PropertyIdList, bitmap.PropertyIdList); 83Assert.Same(bitmap.PropertyItems, bitmap.PropertyItems); 91Assert.Same(bitmap.PropertyItems, bitmap.PropertyItems);
System\Drawing\Imaging\PropertyItemTests.cs (1)
60Assert.Same(value, item.Value);
System\Drawing\PensTests.cs (1)
166Assert.Same(pen, getPen());
System\Drawing\Printing\PageSettingsTests.cs (1)
49Assert.Same(ps.PrinterSettings, clone.PrinterSettings);
System\Drawing\Printing\PrintDocumentTests.cs (2)
103Assert.Same(printController, document.PrintController); 115Assert.Same(printerSettings, document.PrinterSettings);
System\Drawing\SystemBrushesTests.cs (1)
55Assert.Same(brush, getBrush());
System\Drawing\SystemIconsTests.cs (1)
29Assert.Same(icon, getIcon());
System\Drawing\SystemPensTest.cs (1)
56Assert.Same(pen, getPen());
System.Private.Windows.Core.Tests (7)
System\Value\StoringArrays.cs (2)
16Assert.Same(b, value.GetValue<byte[]>()); 30Assert.Same(b, value.GetValue<char[]>());
System\Value\StoringObject.cs (5)
14Assert.Same(a, value.GetValue<A>()); 27Assert.Same(b, value.GetValue<A>()); 28Assert.Same(b, value.GetValue<B>()); 48Assert.Same(a, value.GetValue<A>()); 49Assert.Same(a, value.GetValue<I>());
System.Windows.Forms.Design.Tests (730)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
29Assert.Same(editor.CollectionItemType, editor.CollectionItemType); 202Assert.Same(expected, editor.SetItems(editValue, value));
System\ComponentModel\Design\ByteViewerTests.cs (34)
49Assert.Same(control.LayoutSettings.ColumnStyles, control.ColumnStyles); 54Assert.Same(control.Controls, control.Controls); 68Assert.Same(control.DockPadding, control.DockPadding); 76Assert.Same(control.Events, control.Events); 85Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 94Assert.Same(control.LayoutSettings, control.LayoutSettings); 113Assert.Same(control.LayoutSettings.RowStyles, control.RowStyles); 125Assert.Same(control.VerticalScroll, control.VerticalScroll); 148Assert.Same(createParams, control.CreateParams); 236Assert.Same(control, sender); 237Assert.Same(eventArgs, e); 262Assert.Same(control, sender); 263Assert.Same(eventArgs, e); 289Assert.Same(control, sender); 290Assert.Same(eventArgs, e); 334Assert.Same(control, sender); 335Assert.Same(eventArgs, e); 367Assert.Same(control, sender); 368Assert.Same(eventArgs, e); 406Assert.Same(control, sender); 407Assert.Same(eventArgs, e); 433Assert.Same(control, sender); 434Assert.Same(eventArgs, e); 484Assert.Same(control, sender); 485Assert.Same(eventArgs, e); 519Assert.Same(control, sender); 520Assert.Same(eventArgs, e); 559Assert.Same(control, sender); 560Assert.Same(eventArgs, e); 687Assert.Same(bytes, control.GetBytes()); 692Assert.Same(bytes, control.GetBytes()); 704Assert.Same(bytes, control.GetBytes()); 709Assert.Same(bytes, control.GetBytes());
System\ComponentModel\Design\CollectionEditorTests.cs (35)
32Assert.Same(editor.CollectionItemType, editor.CollectionItemType); 131Assert.Same(itemType, editor.CreateCollectionItemType()); 174Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 175Assert.Same(mockContext.Object, editor.Context); 232Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 233Assert.Same(mockContext.Object, editor.Context); 235Assert.Same(result, editor.CreateInstance(typeof(Component))); 283Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 284Assert.Same(mockContext.Object, editor.Context); 336Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 337Assert.Same(mockContext.Object, editor.Context); 339Assert.Same(result, editor.CreateInstance(typeof(Component))); 430Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 431Assert.Same(mockContext.Object, editor.Context); 483Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 484Assert.Same(mockContext.Object, editor.Context); 544Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 545Assert.Same(mockContext.Object, editor.Context); 585Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 586Assert.Same(mockContext.Object, editor.Context); 631Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 632Assert.Same(mockContext.Object, editor.Context); 678Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 679Assert.Same(mockContext.Object, editor.Context); 721Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 722Assert.Same(mockContext.Object, editor.Context); 753Assert.Same(value, editor.EditValue(null, provider, value)); 866Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 867Assert.Same(mockContext.Object, editor.Context); 869Assert.Same(result, editor.GetService(serviceType)); 923Assert.Same(editValue, items); 974Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 975Assert.Same(mockContext.Object, editor.Context); 1012Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 1013Assert.Same(mockContext.Object, editor.Context);
System\ComponentModel\Design\CollectionFormTests.cs (30)
22Assert.Same(form.CollectionItemType, form.CollectionItemType); 45Assert.Same(value, form.EditValue); 50Assert.Same(value, form.EditValue); 138Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 139Assert.Same(mockContext.Object, editor.Context); 194Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 195Assert.Same(mockContext.Object, editor.Context); 253Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 254Assert.Same(mockContext.Object, editor.Context); 312Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 313Assert.Same(mockContext.Object, editor.Context); 373Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 374Assert.Same(mockContext.Object, editor.Context); 428Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 429Assert.Same(mockContext.Object, editor.Context); 524Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 525Assert.Same(mockContext.Object, editor.Context); 583Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 584Assert.Same(mockContext.Object, editor.Context); 587Assert.Same(result, form.CreateInstance(typeof(Component))); 635Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 636Assert.Same(mockContext.Object, editor.Context); 689Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 690Assert.Same(mockContext.Object, editor.Context); 693Assert.Same(result, form.CreateInstance(typeof(Component))); 748Assert.Same(editValue, editor.EditValue(mockContext.Object, mockServiceProvider.Object, editValue)); 749Assert.Same(mockContext.Object, editor.Context); 787Assert.Same(value, editor.EditValue(mockContext.Object, mockServiceProvider.Object, value)); 788Assert.Same(mockContext.Object, editor.Context); 791Assert.Same(result, form.GetService(serviceType));
System\ComponentModel\Design\ComponentDesignerTests.cs (36)
20Assert.Same(designer.ActionLists, designer.ActionLists); 23Assert.Same(InheritanceAttribute.Default, designer.InheritanceAttribute); 24Assert.Same(designer.InheritanceAttribute, designer.InheritanceAttribute); 28Assert.Same(designer.ShadowProperties, designer.ShadowProperties); 30Assert.Same(designer.Verbs, designer.Verbs); 80Assert.Same(descriptor, result); 248Assert.Same(attributeResult, attribute); 249Assert.Same(attribute, designer.InheritanceAttribute); 275Assert.Same(InheritanceAttribute.Default, attribute); 276Assert.Same(attribute, designer.InheritanceAttribute); 323Assert.Same(rootComponent, designer.ParentComponent); 328Assert.Same(rootComponent, designer.ParentComponent); 413Assert.Same(rootComponent is null ? null : designer, treeDesigner.Parent); 419Assert.Same(rootComponent is null ? null : designer, treeDesigner.Parent); 549Assert.Same(mockComponent.Object, designer.Component); 606Assert.Same(component, designer.Component); 641Assert.Same(mockComponent.Object, designer.Component); 650Assert.Same(mockComponent.Object, designer.Component); 663Assert.Same(mockComponent.Object, designer.Component); 689Assert.Same(component, designer.Component); 698Assert.Same(component, designer.Component); 709Assert.Same(component, designer.Component); 1978Assert.Same(service, designer.GetService(serviceType)); 2006Assert.Same(component, designer.Component); 2131Assert.Same(component, designer.Component); 2181Assert.Same(designer.ActionLists, set.GetCommands("ActionLists")); 2182Assert.Same(designer.Verbs, set.GetCommands("Verbs")); 2284Assert.Same(designer.InheritanceAttribute, designer.InvokeGetInheritanceAttribute(designer)); 2352Assert.Same(oldValue, properties?["SettingsKey"]); 2367Assert.Same(descriptor, properties["SettingsKey"]); 2398Assert.Same(expected, attributes?[typeof(InheritanceAttribute)]); 2417Assert.Same(expected, designer.InheritanceAttribute); 2784Assert.Same(oldValue, properties?["SettingsKey"]); 2800Assert.Same(descriptor, properties["SettingsKey"]); 2836Assert.Same(expected, attributes?[typeof(InheritanceAttribute)]); 2846Assert.Same(expected, designer.InheritanceAttribute);
System\ComponentModel\Design\DesignerActionHeaderItemTests.cs (2)
23Assert.Same(item.Properties, item.Properties); 41Assert.Same(item.Properties, item.Properties);
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (8)
22Assert.Same(value1, Assert.Single(collection)); 23Assert.Same(value1, collection[0]); 48Assert.Same(value1, Assert.Single(collection)); 49Assert.Same(value1, collection[0]); 73Assert.Same(value, Assert.Single(collection)); 95Assert.Same(value1, Assert.Single(collection)); 98Assert.Same(value2, Assert.Single(collection)); 99Assert.Same(value2, collection[0]);
System\ComponentModel\Design\DesignerActionItemTests.cs (1)
23Assert.Same(item.Properties, item.Properties);
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (8)
42Assert.Same(value1, Assert.Single(collection)); 43Assert.Same(value1, collection[0]); 100Assert.Same(value1, Assert.Single(collection)); 101Assert.Same(value1, collection[0]); 123Assert.Same(value, Assert.Single(collection)); 144Assert.Same(value1, Assert.Single(collection)); 147Assert.Same(value2, Assert.Single(collection)); 148Assert.Same(value2, collection[0]);
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (2)
19Assert.Same(relatedObject, e.RelatedObject); 21Assert.Same(actionLists, e.ActionLists);
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (8)
31Assert.Same(item.Properties, item.Properties); 57Assert.Same(item.Properties, item.Properties); 83Assert.Same(item.Properties, item.Properties); 109Assert.Same(item.Properties, item.Properties); 135Assert.Same(item.Properties, item.Properties); 161Assert.Same(item.Properties, item.Properties); 181Assert.Same(value, item.RelatedComponent); 185Assert.Same(value, item.RelatedComponent);
System\ComponentModel\Design\DesignerActionPropertyItemTests.cs (5)
24Assert.Same(item.Properties, item.Properties); 44Assert.Same(item.Properties, item.Properties); 64Assert.Same(item.Properties, item.Properties); 84Assert.Same(value, item.RelatedComponent); 88Assert.Same(value, item.RelatedComponent);
System\ComponentModel\Design\DesignerActionServiceTests.cs (10)
204Assert.Same(service, sender); 512Assert.Same(actionItem.Properties, actionItem.Properties); 572Assert.Same(verb, sender); 573Assert.Same(EventArgs.Empty, e); 689Assert.Same(service, sender); 690Assert.Same(component1, e.RelatedObject); 871Assert.Same(service, sender); 872Assert.Same(component1, e.RelatedObject); 1001Assert.Same(service, sender); 1002Assert.Same(component1, e.RelatedObject);
System\ComponentModel\Design\DesignerActionTextItemTests.cs (1)
23Assert.Same(item.Properties, item.Properties);
System\ComponentModel\Design\DesignerActionUIStateChangeEventArgsTests.cs (1)
19Assert.Same(relatedObject, e.RelatedObject);
System\ComponentModel\Design\DesignerCommandSetTests.cs (2)
34Assert.Same(collection, mockSet.Object.Verbs); 55Assert.Same(collection, mockSet.Object.ActionLists);
System\ComponentModel\Design\DesignerHostTests.cs (176)
36Assert.Same(host, host.Container); 154Assert.Same(surface, sender); 155Assert.Same(EventArgs.Empty, e); 173Assert.Same(surface, sender); 174Assert.Same(EventArgs.Empty, e); 280Assert.Same(component1, Assert.Single(host.Container.Components)); 281Assert.Same(expectedName, host.RootComponentClassName); 282Assert.Same(component1, host.RootComponent); 283Assert.Same(host, component1.Container); 284Assert.Same(component1, component1.Site.Component); 285Assert.Same(host, component1.Site.Container); 292Assert.Same(expectedName, host.RootComponentClassName); 293Assert.Same(component1, host.RootComponent); 294Assert.Same(host, component2.Container); 295Assert.Same(component2, component2.Site.Component); 296Assert.Same(host, component2.Site.Container); 303Assert.Same(expectedName, host.RootComponentClassName); 304Assert.Same(component1, host.RootComponent); 305Assert.Same(host, component3.Container); 306Assert.Same(component3, component3.Site.Component); 307Assert.Same(host, component3.Site.Container); 314Assert.Same(expectedName, host.RootComponentClassName); 315Assert.Same(component1, host.RootComponent); 316Assert.Same(host, component4.Container); 317Assert.Same(component4, component4.Site.Component); 318Assert.Same(host, component4.Site.Container); 335Assert.Same(component1, Assert.Single(host.Container.Components)); 337Assert.Same(component1, host.RootComponent); 338Assert.Same(host, component1.Container); 339Assert.Same(component1, component1.Site.Component); 340Assert.Same(host, component1.Site.Container); 347Assert.Same(host, component2.Container); 349Assert.Same(component1, host.RootComponent); 350Assert.Same(component2, component2.Site.Component); 351Assert.Same(host, component2.Site.Container); 358Assert.Same(host, component3.Container); 360Assert.Same(component1, host.RootComponent); 361Assert.Same(component3, component3.Site.Component); 362Assert.Same(host, component3.Site.Container); 369Assert.Same(host, component4.Container); 371Assert.Same(component1, host.RootComponent); 372Assert.Same(component4, component4.Site.Component); 373Assert.Same(host, component4.Site.Container); 429Assert.Same(component, Assert.Single(host.Container.Components)); 436Assert.Same(component, Assert.Single(host.Container.Components)); 443Assert.Same(component, Assert.Single(host.Container.Components)); 499Assert.Same(component, Assert.Single(host.Container.Components)); 506Assert.Same(component, Assert.Single(host.Container.Components)); 513Assert.Same(component, Assert.Single(host.Container.Components)); 572Assert.Same(component, Assert.Single(host.Container.Components)); 585Assert.Same(component, Assert.Single(host.Container.Components)); 597Assert.Same(component, Assert.Single(host.Container.Components)); 602Assert.Same(component, Assert.Single(host.Container.Components)); 607Assert.Same(component, Assert.Single(host.Container.Components)); 728Assert.Same(name, component1.Site.Name); 932Assert.Same(key1, service.GetKey(value1)); 933Assert.Same(value1, service.GetValue(key1)); 963Assert.Same(key1, service.GetKey(value1)); 964Assert.Same(value1, service.GetValue(key1)); 993Assert.Same(key1, service.GetKey(value1)); 994Assert.Same(value1, service.GetValue(key1)); 1011Assert.Same(key1, service.GetKey(value1)); 1012Assert.Same(value1, service.GetValue(key1)); 1018Assert.Same(key2, service.GetKey(value2)); 1019Assert.Same(value2, service.GetValue(key2)); 1024Assert.Same(key1, service.GetKey(value3)); 1026Assert.Same(value3, service.GetValue(key1)); 1071Assert.Same(service, container.GetService(typeof(object))); 1072Assert.Same(otherService, surface.GetService(typeof(object))); 1104Assert.Same(otherService, container.GetService(typeof(object))); 1105Assert.Same(otherService, surface.GetService(typeof(object))); 1106Assert.Same(service, otherContainer.GetService(typeof(object))); 1134Assert.Same(service, container.GetService(typeof(object))); 1135Assert.Same(otherService, surface.GetService(typeof(object))); 1144Assert.Same(typeof(object), serviceType); 1168Assert.Same(service, container.GetService(typeof(object))); 1169Assert.Same(otherService, surface.GetService(typeof(object))); 1178Assert.Same(typeof(object), serviceType); 1206Assert.Same(otherService, container.GetService(typeof(object))); 1207Assert.Same(otherService, surface.GetService(typeof(object))); 1208Assert.Same(service, otherContainer.GetService(typeof(object))); 1217Assert.Same(typeof(object), serviceType); 1241Assert.Same(service, container.GetService(typeof(object))); 1242Assert.Same(otherService, surface.GetService(typeof(object))); 1269Assert.Same(expectedName, component.Site.Name); 1270Assert.Same(expectedName, host.RootComponentClassName); 1274Assert.Same(expectedName, component.Site.Name); 1275Assert.Same(expectedName, host.RootComponentClassName); 1307Assert.Same(value ?? string.Empty, component1.Site.Name); 1311Assert.Same(value ?? string.Empty, component1.Site.Name); 1358Assert.Same(component, host.RootComponent); 1363Assert.Same(component, host.RootComponent); 1378Assert.Same(host, sender); 1379Assert.Same(component, e.Component); 1381Assert.Same(value ?? string.Empty, e.NewName); 1388Assert.Same(value ?? string.Empty, component.Site.Name); 1393Assert.Same(value ?? string.Empty, component.Site.Name); 1478Assert.Same(service, component.Site.GetService(typeof(int))); 1504Assert.Same(service, component.Site.GetService(typeof(int))); 1505Assert.Same(component.Site, component.Site.GetService(typeof(IDictionaryService))); 1506Assert.Same(nestedContainer, component.Site.GetService(typeof(INestedContainer))); 1517Assert.Same(container, component.Site.GetService(typeof(INestedContainer))); 1519Assert.Same(component, container.Owner); 1553Assert.Same(service, nestedComponent.Site.GetService(typeof(int))); 1563Assert.Same(component.Site, component.Site.GetService(typeof(IDictionaryService))); 1573Assert.Same(surface.ServiceContainer, component.Site.GetService(typeof(IServiceContainer))); 1583Assert.Same(host, component.Site.GetService(typeof(IContainer))); 1607Assert.Same(host, sender); 1608Assert.Same(component, e.Component); 1615Assert.Same(host, sender); 1616Assert.Same(component, e.Component); 1624Assert.Same(host.Container, component.Container); 1630Assert.Same(host.Container, component.Container); 1638Assert.Same(host.Container, component.Container); 1715Assert.Same(host.Container, component.Container); 1719Assert.Same(host.Container, component.Container); 1731Assert.Same(service, surface.ServiceContainer.GetService(typeof(object))); 1732Assert.Same(service, surface.GetService(typeof(object))); 1733Assert.Same(service, host.GetService(typeof(object))); 1745Assert.Same(service, surface.ServiceContainer.GetService(typeof(object))); 1746Assert.Same(service, surface.GetService(typeof(object))); 1747Assert.Same(service, host.GetService(typeof(object))); 1759Assert.Same(service, surface.ServiceContainer.GetService(typeof(object))); 1760Assert.Same(service, surface.GetService(typeof(object))); 1761Assert.Same(service, host.GetService(typeof(object))); 1774Assert.Same(service, surface.ServiceContainer.GetService(typeof(object))); 1775Assert.Same(service, surface.GetService(typeof(object))); 1776Assert.Same(service, host.GetService(typeof(object))); 1922Assert.Same(host, sender); 1923Assert.Same(EventArgs.Empty, e); 1929Assert.Same(host, sender); 1930Assert.Same(EventArgs.Empty, e); 2013Assert.Same(host, sender); 2021Assert.Same(host, sender); 2126Assert.Same(host, sender); 2134Assert.Same(host, sender); 2228Assert.Same(baseClassName, host.RootComponentClassName); 2244Assert.Same(collection, surface.ComponentContainer.Components); 2315Assert.Same(expected, host.GetService(typeof(IMultitargetHelperService))); 2339Assert.Same(service, host.GetService(typeof(int))); 2356Assert.Same(host, host.GetService(typeof(IContainer))); 2366Assert.Same(surface.ServiceContainer, host.GetService(serviceType)); 2468Assert.Same(host, sender); 2469Assert.Same(EventArgs.Empty, e); 2476Assert.Same(host, sender); 2477Assert.Same(EventArgs.Empty, e); 2484Assert.Same(surface, sender); 2485Assert.Same(EventArgs.Empty, e); 2535Assert.Same(component, Assert.Single(host.Container.Components)); 2542Assert.Same(host.Container, component.Container); 2547Assert.Same(component, Assert.Single(host.Container.Components)); 2554Assert.Same(host.Container, component.Container); 2621Assert.Same(component, Assert.Single(host.Container.Components)); 2622Assert.Same(host, component.Container); 2690Assert.Same(component, Assert.Single(host.Container.Components)); 2720Assert.Same(component, Assert.Single(host.Container.Components)); 2737Assert.Same(component, Assert.Single(host.Container.Components)); 2759Assert.Same(otherComponent, Assert.Single(host1.Container.Components)); 2760Assert.Same(component, Assert.Single(host2.Container.Components)); 2775Assert.Same(otherComponent, Assert.Single(host1.Container.Components)); 2791Assert.Same(host, sender); 2792Assert.Same(component1, e.Component); 2801Assert.Same(host, sender); 2802Assert.Same(component1, e.Component); 2816Assert.Same(host.Container, component2.Container); 2818Assert.Same(component2, Assert.Single(host.Container.Components)); 2826Assert.Same(host.Container, component2.Container); 2828Assert.Same(component2, Assert.Single(host.Container.Components)); 2939Assert.Same(host, sender); 2940Assert.Same(component, e.Component); 2941Assert.Same(member, e.Member); 3009Assert.Same(host, sender); 3010Assert.Same(component, e.Component); 3011Assert.Same(member, e.Member); 3012Assert.Same(oldValue, e.OldValue); 3013Assert.Same(newValue, e.NewValue);
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (8)
42Assert.Same(value1, Assert.Single(collection)); 43Assert.Same(value1, collection[0]); 100Assert.Same(value1, Assert.Single(collection)); 101Assert.Same(value1, collection[0]); 123Assert.Same(value, Assert.Single(collection)); 144Assert.Same(value1, Assert.Single(collection)); 147Assert.Same(value2, Assert.Single(collection)); 148Assert.Same(value2, collection[0]);
System\ComponentModel\Design\DesignSurfaceTests.cs (58)
21Assert.Same(surface.Host, surface.Host.Container); 60Assert.Same(surface.Host, surface.Host.Container); 82Assert.Same(surface.Host, surface.Host.Container); 93Assert.Same(RootComponentDesigner.View, surface.View); 104Assert.Same(surface.Host, surface.Host.Container); 115Assert.Same(RootComponentDesigner.View, surface.View); 151Assert.Same(surface.Host, surface.Host.Container); 162Assert.Same(RootComponentDesigner.View, surface.View); 206Assert.Same(container, surface.ServiceContainer); 257Assert.Same(surface, container.GetService(typeof(DesignSurface))); 265Assert.Same(container, container.GetService(container.GetType())); 282Assert.Same(surface.Host, container.GetService(serviceType)); 359Assert.Same(exception, Assert.Throws<InvalidOperationException>(() => surface.View).InnerException); 445Assert.Same(exception, Assert.Single(surface.LoadErrors)); 490Assert.Same(exception, Assert.Single(surface.LoadErrors)); 503Assert.Same(surface, sender); 504Assert.Same(EventArgs.Empty, e); 553Assert.Same(surface, sender); 554Assert.Same(EventArgs.Empty, e); 560Assert.Same(surface, sender); 561Assert.Same(EventArgs.Empty, e); 568Assert.Same(surface, sender); 570Assert.Same(surface.LoadErrors, e.Errors); 633Assert.Same(mockExtenderProvider.Object, Assert.Single(defaultProviderService.GetExtenderProviders())); 640Assert.Same(mockExtenderProvider.Object, Assert.Single(defaultProviderService.GetExtenderProviders())); 736Assert.Same(host, sender); 737Assert.Same(EventArgs.Empty, e); 769Assert.Same(host, sender); 770Assert.Same(EventArgs.Empty, e); 806Assert.Same(surface, sender); 807Assert.Same(EventArgs.Empty, e); 835Assert.Same(surface, sender); 836Assert.Same(EventArgs.Empty, e); 879Assert.Same(surface, sender); 880Assert.Same(EventArgs.Empty, e); 937Assert.Same(RootComponentDesigner.View, surface.View); 1042Assert.Same(surface.ComponentContainer, instance.Container); 1107Assert.Same(surface.ComponentContainer, instance.Container); 1135Assert.Same(ownerComponent, container.Owner); 1146Assert.Same(ownerComponent, container.Owner); 1178Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1235Assert.Same(surface, sender); 1269Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1280Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1283Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1381Assert.Same(surface, sender); 1450Assert.Same(surface, sender); 1451Assert.Same(EventArgs.Empty, e); 1478Assert.Same(service, surface.GetService(typeof(int))); 1524Assert.Same(surface, surface.GetService(typeof(DesignSurface))); 1531Assert.Same(surface.ServiceContainer, surface.GetService(surface.ServiceContainer.GetType())); 1540Assert.Same(surface.ServiceContainer, surface.GetService(serviceType)); 1548Assert.Same(surface.Host, surface.GetService(serviceType)); 1581Assert.Same(eventArgs, e); 1615Assert.Same(eventArgs, e); 1643Assert.Same(eventArgs, e); 1671Assert.Same(eventArgs, e); 1699Assert.Same(eventArgs, e);
System\ComponentModel\Design\LoadedEventArgsTests.cs (1)
29Assert.Same(errors, e.Errors);
System\ComponentModel\Design\MultilineStringEditorTests.cs (3)
41Assert.Same(string.Empty, editor.EditValue(null, mockServiceProvider.Object, value)); 46Assert.Same(string.Empty, editor.EditValue(null, mockServiceProvider.Object, value)); 56Assert.Same(value, editor.EditValue(null, provider, value));
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (3)
51Assert.Same(value, editor.EditValue(null, mockServiceProvider.Object, value)); 56Assert.Same(value, editor.EditValue(null, mockServiceProvider.Object, value)); 66Assert.Same(value, editor.EditValue(null, provider, value));
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (4)
27Assert.Same(linePragma, exception.LinePragma); 42Assert.Same(innerException, exception.InnerException); 43Assert.Same(linePragma, exception.LinePragma); 76Assert.Same(innerException, exception.InnerException);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (103)
21Assert.Same(iManager.Properties, iManager.Properties); 60Assert.Same(expectedContainer, manager.Container); 61Assert.Same(manager.Container, manager.Container); 64Assert.Same(iManager.Properties, iManager.Properties); 91Assert.Same(value, manager.Container); 92Assert.Same(value, manager.GetService(typeof(IContainer))); 96Assert.Same(value, manager.Container); 97Assert.Same(value, manager.GetService(typeof(IContainer))); 116Assert.Same(context, iManager.Context); 127Assert.Same(context, iManager.Context); 147Assert.Same(errors, manager.Errors); 207Assert.Same(properties, iManager.Properties); 259Assert.Same(provider, manager.PropertyProvider); 274Assert.Same(value, manager.PropertyProvider); 278Assert.Same(value, manager.PropertyProvider); 289Assert.Same(value, manager.PropertyProvider); 293Assert.Same(value, manager.PropertyProvider); 307Assert.Same(properties, iManager.Properties); 311Assert.Same(provider, manager.PropertyProvider); 315Assert.Same(otherProperties, iManager.Properties); 319Assert.Same(provider, manager.PropertyProvider); 320Assert.Same(otherProperties, iManager.Properties); 425Assert.Same(expected, iManager.GetSerializer(objectType, mockDesignerSerializationProvider.Object.GetType())); 429Assert.Same(expected, iManager.GetSerializer(objectType, mockDesignerSerializationProvider.Object.GetType())); 494Assert.Same(manager, sender); 541Assert.Same(errors1, manager.Errors); 544Assert.Same(errorInformation, Assert.Single(errors1)); 551Assert.Same(errors2, manager.Errors); 564Assert.Same(stack1, iManager.Context); 571Assert.Same(stack2, iManager.Context); 583Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 602Assert.Same(manager, sender); 603Assert.Same(eventArgs, e); 628Assert.Same(manager, sender); 629Assert.Same(eventArgs, e); 651Assert.Same(manager, sender); 652Assert.Same(EventArgs.Empty, e); 681Assert.Same(manager, sender); 682Assert.Same(EventArgs.Empty, e); 755Assert.Same(expected, iManager.GetInstance(name)); 758Assert.Same(expected, iManager.GetInstance(name)); 771Assert.Same(instance, iManager.GetInstance(name)); 774Assert.Same(instance, iManager.GetInstance(name)); 822Assert.Same(manager, sender); 823Assert.Same(name, e.Name); 831Assert.Same(value, iManager.GetInstance(name)); 835Assert.Same(value, iManager.GetInstance(name)); 840Assert.Same(component, iManager.GetInstance("name")); 846Assert.Same(component, iManager.GetInstance("name")); 921Assert.Same(expected, iManager.GetName(instance)); 934Assert.Same(name, iManager.GetName(instance)); 950Assert.Same(name, iManager.GetName(mockInstance.Object)); 981Assert.Same(service, manager.GetService(serviceType)); 984Assert.Same(service, ((IServiceProvider)manager).GetService(serviceType)); 993Assert.Same(expected, manager.GetService(typeof(IContainer))); 994Assert.Same(expected, ((IServiceProvider)manager).GetService(typeof(IContainer))); 1019Assert.Same(service, iManager.GetService(typeof(int))); 1034Assert.Same(service, iManager.GetService(serviceType)); 1037Assert.Same(service, iManager.GetService(serviceType)); 1046Assert.Same(expected, iManager.GetService(typeof(IContainer))); 1047Assert.Same(expected, iManager.GetService(typeof(IContainer))); 1088Assert.Same(resolvedType, manager.GetRuntimeType(typeName)); 1093Assert.Same(resolvedType, manager.GetRuntimeType(typeName)); 1141Assert.Same(expected, manager.GetRuntimeType(typeName)); 1183Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1186Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1196Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1199Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1262Assert.Same(serializer3, serializer4); 1267Assert.Same(serializer4, serializer5); 1272Assert.Same(serializer5, serializer6); 1302Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1305Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1316Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1319Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1378Assert.Same(serializer3, serializer4); 1383Assert.Same(serializer4, serializer5); 1388Assert.Same(serializer5, serializer6); 1460Assert.Same(expected, manager.GetType(typeName)); 1468Assert.Same(expected, manager.GetType(typeName)); 1546Assert.Same(expected, manager.GetType(typeName)); 1591Assert.Same(expected, iManager.GetType(typeName)); 1599Assert.Same(expected, iManager.GetType(typeName)); 1624Assert.Same(expected, iManager.GetType(typeName)); 1659Assert.Same(manager, sender); 1660Assert.Same(eventArgs, e); 1694Assert.Same(manager, sender); 1695Assert.Same(eventArgs, e); 1722Assert.Same(errors1, manager.Errors); 1725Assert.Same(errorInformation, Assert.Single(errors1)); 1732Assert.Same(errors2, manager.Errors); 1745Assert.Same(stack1, iManager.Context); 1752Assert.Same(stack2, iManager.Context); 1764Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 1782Assert.Same(manager, sender); 1783Assert.Same(eventArgs, e); 1811Assert.Same(manager, sender); 1812Assert.Same(eventArgs, e); 1847Assert.Same(serializer, iManager.GetSerializer(typeof(int), mockDesignerSerializationProvider.Object.GetType())); 1890Assert.Same(errorInformation, Assert.Single(manager.Errors)); 1921Assert.Same(instance1, iManager.GetInstance(name)); 1922Assert.Same(name, iManager.GetName(instance1)); 1926Assert.Same(instance2, iManager.GetInstance("OtherName"));
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (7)
21Assert.Same(expression, context.Expression); 22Assert.Same(expressionType, context.ExpressionType); 23Assert.Same(owner, context.Owner); 24Assert.Same(presetValue, context.PresetValue); 37Assert.Same(expression, context.Expression); 38Assert.Same(expressionType, context.ExpressionType); 39Assert.Same(owner, context.Owner);
System\ComponentModel\Design\Serialization\RootContextTests.cs (2)
16Assert.Same(expression, context.Expression); 17Assert.Same(value, context.Value);
System\ComponentModel\Design\Serialization\SerializeAbsoluteContextTests.cs (1)
28Assert.Same(member, context.Member);
System\ComponentModel\Design\Serialization\StatementContextTests.cs (1)
13Assert.Same(context.StatementCollection, context.StatementCollection);
System\ComponentModel\Design\SiteNestedContainerTests.cs (76)
75Assert.Same(container, component1.Container); 77Assert.Same(component1, nestedSite.Component); 78Assert.Same(container, nestedSite.Container); 81Assert.Same(componentName, component1.Site.Name); 82Assert.Same(component1, Assert.Single(container.Components)); 182Assert.Same(component1, Assert.Single(container.Components)); 184Assert.Same(component1, host.RootComponent); 185Assert.Same(container, component1.Container); 186Assert.Same(component1, component1.Site.Component); 187Assert.Same(container, component1.Site.Container); 195Assert.Same(component1, host.RootComponent); 196Assert.Same(container, component2.Container); 197Assert.Same(component2, component2.Site.Component); 198Assert.Same(container, component2.Site.Container); 206Assert.Same(component1, host.RootComponent); 207Assert.Same(container, component3.Container); 208Assert.Same(component3, component3.Site.Component); 209Assert.Same(container, component3.Site.Container); 217Assert.Same(component1, host.RootComponent); 218Assert.Same(container, component4.Container); 219Assert.Same(component4, component4.Site.Component); 220Assert.Same(container, component4.Site.Container); 239Assert.Same(component1, Assert.Single(container.Components)); 241Assert.Same(component1, host.RootComponent); 242Assert.Same(container, component1.Container); 243Assert.Same(component1, component1.Site.Component); 244Assert.Same(container, component1.Site.Container); 251Assert.Same(container, component2.Container); 253Assert.Same(component1, host.RootComponent); 254Assert.Same(component2, component2.Site.Component); 255Assert.Same(container, component2.Site.Container); 262Assert.Same(container, component3.Container); 264Assert.Same(component1, host.RootComponent); 265Assert.Same(component3, component3.Site.Component); 266Assert.Same(container, component3.Site.Container); 273Assert.Same(container, component4.Container); 275Assert.Same(component1, host.RootComponent); 276Assert.Same(component4, component4.Site.Component); 277Assert.Same(container, component4.Site.Container); 338Assert.Same(component, Assert.Single(container.Components)); 345Assert.Same(component, Assert.Single(container.Components)); 352Assert.Same(component, Assert.Single(container.Components)); 409Assert.Same(component, Assert.Single(container.Components)); 424Assert.Same(component, Assert.Single(container.Components)); 433Assert.Same(component, Assert.Single(container.Components)); 489Assert.Same(component, Assert.Single(container.Components)); 503Assert.Same(component, Assert.Single(container.Components)); 520Assert.Same(container, sender); 521Assert.Same(component, e.Component); 528Assert.Same(container, sender); 529Assert.Same(component, e.Component); 537Assert.Same(container, component.Container); 543Assert.Same(container, component.Container); 551Assert.Same(container, component.Container); 635Assert.Same(container, component.Container); 639Assert.Same(container, component.Container); 676Assert.Same(component, Assert.Single(container.Components)); 681Assert.Same(container, component.Container); 686Assert.Same(component, Assert.Single(container.Components)); 691Assert.Same(container, component.Container); 751Assert.Same(component, Assert.Single(container.Components)); 752Assert.Same(container, component.Container); 815Assert.Same(component, Assert.Single(container.Components)); 846Assert.Same(component, Assert.Single(container.Components)); 864Assert.Same(component, Assert.Single(container.Components)); 887Assert.Same(otherComponent, Assert.Single(container1.Components)); 888Assert.Same(component, Assert.Single(container2.Components)); 904Assert.Same(otherComponent, Assert.Single(container1.Components)); 922Assert.Same(host, sender); 923Assert.Same(component1, e.Component); 932Assert.Same(host, sender); 933Assert.Same(component1, e.Component); 947Assert.Same(container, component2.Container); 949Assert.Same(component2, Assert.Single(container.Components)); 957Assert.Same(container, component2.Container); 959Assert.Same(component2, Assert.Single(container.Components));
System\ComponentModel\Design\UndoUnitTests.cs (1)
37Assert.Same(this, unit.UndoEngine);
System\Drawing\Design\BitmapEditorTests.cs (1)
25Assert.Same(extensions, SubBitmapEditor.BitmapExtensions);
System\Drawing\Design\ColorEditorTests.cs (1)
58Assert.Same(value, editor.EditValue(null, provider, value));
System\Drawing\Design\CursorEditorTests.cs (1)
57Assert.Same(value, editor.EditValue(null, provider, value));
System\Drawing\Design\FontEditorTests.cs (1)
23Assert.Same(value, editor.EditValue(null, provider, value));
System\Drawing\Design\FontNameEditorTests.cs (3)
45Assert.Same(value, editor.EditValue(null, mockServiceProvider.Object, value)); 49Assert.Same(value, editor.EditValue(null, mockServiceProvider.Object, value)); 58Assert.Same(value, editor.EditValue(null, provider, value));
System\Drawing\Design\ImageEditorTests.cs (2)
59Assert.Same(value, editor.EditValue(null, provider, value)); 114Assert.Same(extenders, editor.GetImageExtenders());
System\Drawing\Design\ToolboxItemCollectionTests.cs (4)
13Assert.Same(item, Assert.Single(collection)); 14Assert.Same(item, collection[0]); 31Assert.Same(item, Assert.Single(collection)); 32Assert.Same(item, collection[0]);
System\Drawing\Design\ToolboxItemTests.cs (68)
27Assert.Same(item.Filter, item.Filter); 32Assert.Same(item.Properties, item.Properties); 112Assert.Same(value, item.Bitmap); 113Assert.Same(value, item.Properties["Bitmap"]); 117Assert.Same(value, item.Bitmap); 118Assert.Same(value, item.Properties["Bitmap"]); 323Assert.Same(value, item.OriginalBitmap); 324Assert.Same(value, item.Properties["OriginalBitmap"]); 328Assert.Same(value, item.OriginalBitmap); 329Assert.Same(value, item.Properties["OriginalBitmap"]); 375Assert.Same(item, sender); 381Assert.Same(item, sender); 441Assert.Same(item, sender); 442Assert.Same(mockDesignerHost.Object, e.DesignerHost); 447Assert.Same(item, sender); 448Assert.Same(component, Assert.Single(e.Components)); 455Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 459Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, null))); 463Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, new Hashtable()))); 471Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 507Assert.Same(item, sender); 508Assert.Same(mockDesignerHost.Object, e.DesignerHost); 513Assert.Same(item, sender); 514Assert.Same(component, Assert.Single(e.Components)); 521Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 525Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, null))); 529Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, new Hashtable()))); 537Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 577Assert.Same(item, sender); 578Assert.Same(mockDesignerHost.Object, e.DesignerHost); 583Assert.Same(item, sender); 584Assert.Same(component, Assert.Single(e.Components)); 631Assert.Same(item, sender); 632Assert.Same(mockDesignerHost.Object, e.DesignerHost); 637Assert.Same(item, sender); 680Assert.Same(item, sender); 686Assert.Same(item, sender); 710Assert.Same(item, sender); 716Assert.Same(item, sender); 760Assert.Same(item, sender); 761Assert.Same(mockDesignerHost.Object, e.DesignerHost); 766Assert.Same(item, sender); 767Assert.Same(component, Assert.Single(e.Components)); 774Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object))); 778Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object, null))); 782Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object, new Hashtable()))); 790Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 826Assert.Same(item, sender); 827Assert.Same(mockDesignerHost.Object, e.DesignerHost); 832Assert.Same(item, sender); 833Assert.Same(component, Assert.Single(e.Components)); 840Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object))); 844Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object, null))); 848Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object, new Hashtable()))); 856Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object))); 896Assert.Same(item, sender); 897Assert.Same(mockDesignerHost.Object, e.DesignerHost); 902Assert.Same(item, sender); 903Assert.Same(component, Assert.Single(e.Components)); 910Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object))); 926Assert.Same(component, Assert.Single(item.CreateComponentsCore(mockDesignerHost.Object))); 945Assert.Same(item, sender); 951Assert.Same(item, sender); 1356Assert.Same(item.Bitmap, item.Bitmap); 1399Assert.Same(item.Bitmap, item.Bitmap); 1406Assert.Same(item.OriginalBitmap, item.OriginalBitmap); 1428Assert.Same(bitmap, item.Bitmap); 1434Assert.Same(originalBitmap, item.OriginalBitmap);
System\Windows\Forms\Design\AnchorEditorTests.cs (1)
59Assert.Same(value, editor.EditValue(null, provider, value));
System\Windows\Forms\Design\Behavior\BehaviorDragDropEventArgsTests.cs (1)
22Assert.Same(components, e.DragComponents);
System\Windows\Forms\Design\BorderSidesEditorTests.cs (1)
57Assert.Same(value, editor.EditValue(null, provider, value));
System\Windows\Forms\Design\ColumnHeaderCollectionEditorTests.cs (1)
21Assert.Same(value, editor.EditValue(null, value));
System\Windows\Forms\Design\DockEditorTests.cs (1)
57Assert.Same(value, editor.EditValue(null, provider, value));
System\Windows\Forms\Design\EventHandlerServiceTests.cs (7)
16Assert.Same(focusWnd, service.FocusWindow); 44Assert.Same(second, service.GetHandler(typeof(A))); 55Assert.Same(a, foundHandler); 57Assert.Same(a, foundHandler); 71Assert.Same(b, foundHandler); 116Assert.Same(a, service.GetHandler(typeof(A))); 163Assert.Same(a2, service.GetHandler(typeof(A)));
System\Windows\Forms\Design\FileNameEditorTests.cs (1)
24Assert.Same(value, editor.EditValue(null, provider, value));
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (1)
57Assert.Same(value, editor.EditValue(null, provider, value));
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (6)
25Assert.Same(options, service.CompatibilityOptions); 35Assert.Same(service.Options, childCollection.Parent); 59Assert.Same(service.Options, childCollection.Parent); 76Assert.Same(service.Options, childCollection.Parent); 83Assert.Same(service.Options, otherChildCollection.Parent); 99Assert.Same(service.Options, childCollection.Parent);
System.Windows.Forms.Primitives.Tests (12)
System\Windows\Forms\FileDialogCustomPlacesCollectionTests.cs (1)
29Assert.Same(path ?? string.Empty, place.Path);
System\Windows\Forms\FileDialogCustomPlaceTests.cs (3)
25Assert.Same(path ?? string.Empty, place.Path); 72Assert.Same(value ?? string.Empty, place.Path); 77Assert.Same(value ?? string.Empty, place.Path);
System\Windows\Forms\NonNullCollectionTests.cs (7)
35Assert.Same(item, collection.LastAdded); 52Assert.Same(item, collection.LastAdded); 69Assert.Same(item, collection.LastAdded); 86Assert.Same(item, collection.LastAdded); 103Assert.Same(item, collection.LastAdded); 120Assert.Same(item, collection.LastAdded); 144Assert.Same(item, collection.LastAdded);
System\Windows\Forms\RefCacheTests.cs (1)
21Assert.Same(first, second);
System.Windows.Forms.Tests (8590)
System\Drawing\Design\PaintValueEventArgsTests.cs (3)
26Assert.Same(context, e.Context); 27Assert.Same(value, e.Value); 28Assert.Same(graphics, e.Graphics);
System\Drawing\Design\PropertyValueUIItemTests.cs (3)
23Assert.Same(uiItemImage, item.Image); 24Assert.Same(handler, item.InvokeHandler); 25Assert.Same(tooltip, item.ToolTip);
System\Drawing\Design\UITypeEditorTests.cs (2)
33Assert.Same(value, editor.EditValue(context, provider, value)); 53Assert.Same(result, mockEditor.Object.EditValue(provider, value));
System\Resources\ResxDataNodeTests.cs (1)
23Assert.Same(fileRef, dataNode.FileRef);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
123Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.GetFocused()); 184Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.GetFocused()); 232Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.GetSelected()); 293Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.GetSelected()); 323Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.HitTest(x, y)); 368Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.HitTest(x, y)); 405Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.HitTest(x, y)); 443Assert.Same(result, mockAccessibleObject.Object.Navigate(AccessibleNavigation.FirstChild)); 462Assert.Same(result, mockAccessibleObject.Object.Navigate(AccessibleNavigation.LastChild)); 559Assert.Same(firstChild, previous); 928Assert.Same(result, iAccessible.accFocus); 1058Assert.Same(mockAccessibleObjectChild1.Object, iAccessible.accHitTest(x, y)); 1281Assert.Same(result, iAccessible.accParent); 1393Assert.Same(result, iAccessible.accSelection); 1416Assert.Same(iAccessible, iAccessible.get_accChild(varChild)); 1441Assert.Same(mockAccessibleObjectChild1.Object, iAccessible.get_accChild(2)); 1442Assert.Same(mockAccessibleObjectChild2.Object, iAccessible.get_accChild(3));
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (1)
25Assert.Same(button, buttonAccessibleObject.Owner);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (5)
90Assert.Same(control, instance.Owner); 144Assert.Same(control, sender); 145Assert.Same(EventArgs.Empty, e); 171Assert.Same(control, sender); 172Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
64Assert.Same(ownerControl, accessibleObject.Owner); 99Assert.Same(ownerControl, accessibleObject.Owner); 278Assert.Same(ownerControl, sender); 948Assert.Same(ownerControl, sender);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
297Assert.Same(owner, accessibleObject.Owner);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
172Assert.Same(owner, accessibleObject.Owner); 192Assert.Same(expected, accessibleObject.Parent); 310Assert.Same(accessibleObject.GetSelected(), accessibleObject.GetSelected());
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
1223Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).Bounds.Location)); 1224Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).Bounds.Location)); 1225Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).Bounds.Location)); 1226Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).Bounds.Location));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (1)
53Assert.Same(firstChild, lastChild);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (18)
369Assert.Same(listViewItem.SubItems[1].AccessibilityObject, nextSubItemAccObj1); 372Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, nextSubItemAccInGroup1); 444Assert.Same(listViewItem.SubItems[2].AccessibilityObject, previousSubItemAccObj3); 445Assert.Same(listViewItem.SubItems[1].AccessibilityObject, previousSubItemAccObj2); 446Assert.Same(listViewItem.SubItems[0].AccessibilityObject, previousSubItemAccObj1); 449Assert.Same(listViewItemInGroup.SubItems[2].AccessibilityObject, previousSubItemAccInGroup3); 450Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, previousSubItemAccInGroup2); 451Assert.Same(listViewItemInGroup.SubItems[0].AccessibilityObject, previousSubItemAccInGroup1); 474Assert.Same(listViewItem.SubItems[1].AccessibilityObject, subItemAccObj.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling)); 475Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, subItemAccInGroup.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling)); 497Assert.Same(listViewItem.SubItems[1].AccessibilityObject, subItemAccObj.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 498Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, subItemAccInGroup.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 514Assert.Same(listViewItem.SubItems[1].AccessibilityObject, subItemAccObj.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling)); 515Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, subItemAccInGroup.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling)); 537Assert.Same(listViewItem.SubItems[1].AccessibilityObject, subItemAccObj.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 538Assert.Same(listViewItemInGroup.SubItems[1].AccessibilityObject, subItemAccInGroup.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 575Assert.Same(listView.Items[0].SubItems[0].AccessibilityObject, previousSubItemAccObj1); 581Assert.Same(listViewItemInGroup.SubItems[0].AccessibilityObject, previousSubItemAccInGroup1);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
31Assert.Same(ownerControl, accessibilityObject.Owner); 56Assert.Same(ownerControl, accessibilityObject.Owner);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
34Assert.Same(ownerControl, accessibilityObject.Owner); 57Assert.Same(ownerControl, accessibilityObject.Owner);
System\Windows\Forms\ApplicationContextTests.cs (15)
29Assert.Same(mainForm, context.MainForm); 73Assert.Same(context, sender); 74Assert.Same(EventArgs.Empty, e); 102Assert.Same(context, sender); 103Assert.Same(EventArgs.Empty, e); 136Assert.Same(context, sender); 137Assert.Same(EventArgs.Empty, e); 265Assert.Same(mainForm, context.MainForm); 269Assert.Same(mainForm, context.MainForm); 292Assert.Same(context, sender); 293Assert.Same(EventArgs.Empty, e); 331Assert.Same(context, sender); 332Assert.Same(EventArgs.Empty, e); 365Assert.Same(context, actualSender); 366Assert.Same(EventArgs.Empty, actualE);
System\Windows\Forms\ApplicationTests.cs (8)
18Assert.Same(Thread.CurrentThread.CurrentCulture, Application.CurrentCulture); 49Assert.Same(value, Application.CurrentCulture); 50Assert.Same(value, Thread.CurrentThread.CurrentCulture); 51Assert.Same(value, CultureInfo.CurrentCulture); 56Assert.Same(value, Application.CurrentCulture); 57Assert.Same(value, Thread.CurrentThread.CurrentCulture); 58Assert.Same(value, CultureInfo.CurrentCulture); 107Assert.Same(forms, Application.OpenForms);
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (4)
143Assert.Same(s, collection[1]); 159Assert.Same(s, collection[0]); 181Assert.Same(s, collection[1]); 219Assert.Same("value", Assert.Single(collection));
System\Windows\Forms\AxHostTests.cs (73)
56Assert.Same(control.Controls, control.Controls); 58Assert.Same(Cursors.Default, control.Cursor); 59Assert.Same(Cursors.Default, control.DefaultCursor); 73Assert.Same(control.Events, control.Events); 86Assert.Same(control.LayoutEngine, control.LayoutEngine); 150Assert.Same(control.Controls, control.Controls); 152Assert.Same(Cursors.Default, control.Cursor); 153Assert.Same(Cursors.Default, control.DefaultCursor); 167Assert.Same(control.Events, control.Events); 180Assert.Same(control.LayoutEngine, control.LayoutEngine); 244Assert.Same(createParams, control.CreateParams); 284Assert.Same(createParams, control.CreateParams); 311Assert.Same(value, control.BackgroundImage); 316Assert.Same(value, control.BackgroundImage); 357Assert.Same(grandparent, control.ContainingControl); 360Assert.Same(control.ContainingControl, control.ContainingControl); 364Assert.Same(grandparent, control.ContainingControl); 375Assert.Same(parent, control.ContainingControl); 378Assert.Same(parent, control.ContainingControl); 382Assert.Same(parent, control.ContainingControl); 401Assert.Same(grandparent, control.ContainingControl); 404Assert.Same(grandparent, control.ContainingControl); 408Assert.Same(grandparent, control.ContainingControl); 425Assert.Same(value, control.ContainingControl); 429Assert.Same(value, control.ContainingControl); 440Assert.Same(value ?? Cursors.Default, control.Cursor); 444Assert.Same(value ?? Cursors.Default, control.Cursor); 455Assert.Same(value ?? Cursors.Default, control.Cursor); 459Assert.Same(value ?? Cursors.Default, control.Cursor); 473Assert.Same(value ?? Cursors.Default, control.Cursor); 474Assert.Same(value ?? Cursors.Default, child1.Cursor); 475Assert.Same(value ?? Cursors.Default, child2.Cursor); 479Assert.Same(value ?? Cursors.Default, control.Cursor); 480Assert.Same(value ?? Cursors.Default, child1.Cursor); 481Assert.Same(value ?? Cursors.Default, child2.Cursor); 503Assert.Same(value ?? Cursors.Default, control.Cursor); 504Assert.Same(cursor1, child1.Cursor); 505Assert.Same(cursor2, child2.Cursor); 509Assert.Same(value ?? Cursors.Default, control.Cursor); 510Assert.Same(cursor1, child1.Cursor); 511Assert.Same(cursor2, child2.Cursor); 614Assert.Same(mockSite1.Object, control.Site); 618Assert.Same(ocx, control.GetOcx()); 622Assert.Same(mockSite1.Object, control.Site); 624Assert.Same(ocx, control.GetOcx()); 644Assert.Same(mockSite2.Object, control.Site); 646Assert.Same(ocx, control.GetOcx()); 652Assert.Same(ocx, control.GetOcx()); 678Assert.Same(mockSite1.Object, control.Site); 684Assert.Same(mockSite1.Object, control.Site); 706Assert.Same(mockSite2.Object, control.Site); 710Assert.Same(ocx, control.GetOcx()); 716Assert.Same(ocx, control.GetOcx()); 742Assert.Same(mockSite1.Object, control.Site); 748Assert.Same(mockSite1.Object, control.Site); 770Assert.Same(mockSite2.Object, control.Site); 819Assert.Same(mockSite1.Object, control.Site); 824Assert.Same(ocx, control.GetOcx()); 828Assert.Same(mockSite1.Object, control.Site); 833Assert.Same(ocx, control.GetOcx()); 856Assert.Same(mockSite2.Object, control.Site); 861Assert.Same(ocx, control.GetOcx()); 870Assert.Same(ocx, control.GetOcx()); 2262Assert.Same(control, sender); 2263Assert.Same(eventArgs, e); 2286Assert.Same(control, sender); 2287Assert.Same(eventArgs, e); 2310Assert.Same(control, sender); 2311Assert.Same(eventArgs, e); 3040Assert.Same(control, customTypeDescriptor.GetPropertyOwner(pd)); 3044Assert.Same(control, customTypeDescriptor.GetPropertyOwner(pd)); 3062Assert.Same(control, customTypeDescriptor.GetPropertyOwner(pd)); 3069Assert.Same(control, customTypeDescriptor.GetPropertyOwner(pd));
System\Windows\Forms\BaseCollectionTests.cs (1)
18Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\BindingContextTests.cs (74)
27Assert.Same(context, context.SyncRoot); 45Assert.Same(manager1, reference1.Target); 46Assert.Same(manager2, reference2.Target); 74Assert.Same(source1.CurrencyManager, context[dataSource]); 75Assert.Same(source1.CurrencyManager, context[dataSource, null]); 76Assert.Same(source1.CurrencyManager, context[dataSource, string.Empty]); 81Assert.Same(source2.CurrencyManager, context[dataSource]); 82Assert.Same(source2.CurrencyManager, context[dataSource, null]); 83Assert.Same(source2.CurrencyManager, context[dataSource, string.Empty]); 98Assert.Same(source1.CurrencyManager, context[dataSource1]); 99Assert.Same(source2.CurrencyManager, context[dataSource2]); 119Assert.Same(source1.CurrencyManager, context[dataSource]); 120Assert.Same(source1.CurrencyManager, context[dataSource, null]); 121Assert.Same(source1.CurrencyManager, context[dataSource, string.Empty]); 126Assert.Same(source2.CurrencyManager, context[dataSource]); 127Assert.Same(source2.CurrencyManager, context[dataSource, null]); 128Assert.Same(source2.CurrencyManager, context[dataSource, string.Empty]); 143Assert.Same(source1.CurrencyManager, context[dataSource1]); 144Assert.Same(source2.CurrencyManager, context[dataSource2]); 191Assert.Same(manager1, reference1.Target); 192Assert.Same(manager2, reference2.Target); 220Assert.Same(manager1, reference1.Target); 221Assert.Same(manager2, reference2.Target); 407Assert.Same(dataSource, manager.Current); 411Assert.Same(manager, context[dataSource]); 420Assert.Same(dataSource, manager.List); 425Assert.Same(manager, context[dataSource]); 434Assert.Same(dataSource, manager.List); 439Assert.Same(manager, context[dataSource]); 453Assert.Same(dataSource, manager.List); 458Assert.Same(manager, context[mockIListSource.Object]); 484Assert.Same(manager, context[mockCurrencyManagerProvider.Object, "dataMember"]); 499Assert.Same(manager, context[mockCurrencyManagerProvider.Object]); 527Assert.Same(manager, context[dataSource, dataMember]); 528Assert.Same(manager, context[dataSource, dataMember.ToLower()]); 550Assert.Same(manager, context[dataSource]); 551Assert.Same(manager, context[dataSource, string.Empty]); 552Assert.Same(manager, context[dataSource]); 553Assert.Same(manager, context[dataSource, null]); 580Assert.Same(list, manager.List); 585Assert.Same(manager, context[dataSource, "Property"]); 599Assert.Same(list, manager.Current); 603Assert.Same(manager, context[dataSource, "Property"]); 617Assert.Same(list, manager.List); 622Assert.Same(manager, context[dataSource, "Property"]); 639Assert.Same(list, manager.List); 644Assert.Same(manager, context[dataSource, "Property"]); 660Assert.Same(mockIListSource.Object, manager.Current); 664Assert.Same(manager, context[dataSource, "Property"]); 686Assert.Same(dataSource, parentManager.Current); 701Assert.Same(mockIListSource.Object, manager.Current); 705Assert.Same(manager, context[dataSource, "Property"]); 715Assert.Same(manager, reference.Target); 723Assert.Same(dataSource, newManager.Current); 727Assert.Same(newManager, context[dataSource]); 805Assert.Same(binding, Assert.Single(manager.Bindings)); 806Assert.Same(dataSource, manager.Current); 809Assert.Same(manager, binding.BindingManagerBase); 823Assert.Same(binding, Assert.Single(manager.Bindings)); 824Assert.Same(dataSource, manager.List); 828Assert.Same(manager, binding.BindingManagerBase); 842Assert.Same(binding, Assert.Single(manager.Bindings)); 846Assert.Same(manager, binding.BindingManagerBase); 861Assert.Same(binding, Assert.Single(manager.Bindings)); 862Assert.Same(list, manager.List); 866Assert.Same(manager, binding.BindingManagerBase); 888Assert.Same(dataSource, manager1.Current); 893Assert.Same(binding, Assert.Single(manager2.Bindings)); 894Assert.Same(dataSource, manager2.Current); 897Assert.Same(manager2, binding.BindingManagerBase); 919Assert.Same(dataSource, manager1.List); 925Assert.Same(binding, Assert.Single(manager2.Bindings)); 926Assert.Same(dataSource, manager2.List); 930Assert.Same(manager2, binding.BindingManagerBase);
System\Windows\Forms\BindingManagerBaseTests.cs (13)
14Assert.Same(manager.Bindings, manager.Bindings); 25Assert.Same(binding, Assert.Single(collection)); 26Assert.Same(manager, binding.BindingManagerBase); 69Assert.Same(binding, Assert.Single(collection)); 70Assert.Same(manager, binding.BindingManagerBase); 89Assert.Same(binding, Assert.Single(collection)); 90Assert.Same(manager, binding.BindingManagerBase); 106Assert.Same(binding, Assert.Single(collection)); 119Assert.Same(binding1, Assert.Single(collection)); 135Assert.Same(binding1, Assert.Single(collection1)); 136Assert.Same(binding2, Assert.Single(collection2)); 147Assert.Same(binding, Assert.Single(collection)); 148Assert.Same(manager, binding.BindingManagerBase);
System\Windows\Forms\BindingsCollectionTests.cs (34)
29Assert.Same(binding, collection[0]); 43Assert.Same(collection, sender); 45Assert.Same(binding, e.Element); 51Assert.Same(collection, sender); 53Assert.Same(binding, e.Element); 95Assert.Same(binding, collection[0]); 109Assert.Same(collection, sender); 111Assert.Same(binding, e.Element); 117Assert.Same(collection, sender); 119Assert.Same(binding, e.Element); 178Assert.Same(collection, sender); 186Assert.Same(collection, sender); 238Assert.Same(collection, sender); 246Assert.Same(collection, sender); 309Assert.Same(collection, sender); 311Assert.Same(binding, e.Element); 317Assert.Same(collection, sender); 319Assert.Same(binding, e.Element); 363Assert.Same(binding, Assert.Single(collection)); 375Assert.Same(binding1, Assert.Single(collection)); 389Assert.Same(binding1, Assert.Single(collection1)); 390Assert.Same(binding2, Assert.Single(collection2)); 414Assert.Same(collection, sender); 416Assert.Same(binding, e.Element); 422Assert.Same(collection, sender); 424Assert.Same(binding, e.Element); 468Assert.Same(binding, Assert.Single(collection)); 480Assert.Same(binding1, Assert.Single(collection)); 494Assert.Same(binding1, Assert.Single(collection1)); 495Assert.Same(binding2, Assert.Single(collection2)); 506Assert.Same(collection, sender); 507Assert.Same(eventArgs, e); 530Assert.Same(collection, sender); 531Assert.Same(eventArgs, e);
System\Windows\Forms\BindingSourceTests.cs (56)
24Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 27Assert.Same(source, source.CurrencyManager.List); 29Assert.Same(source.CurrencyManager, source.CurrencyManager); 35Assert.Same(source.Events, source.Events); 55Assert.Same(source.List.SyncRoot, source.SyncRoot); 83Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 86Assert.Same(source, source.CurrencyManager.List); 88Assert.Same(source.CurrencyManager, source.CurrencyManager); 90Assert.Same(dataMember, source.DataMember); 91Assert.Same(dataSource, source.DataSource); 94Assert.Same(source.Events, source.Events); 114Assert.Same(source.List.SyncRoot, source.SyncRoot); 148Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 151Assert.Same(source, source.CurrencyManager.List); 153Assert.Same(source.CurrencyManager, source.CurrencyManager); 155Assert.Same(dataMember, source.DataMember); 156Assert.Same(dataSource, source.DataSource); 159Assert.Same(source.Events, source.Events); 166Assert.Same(expected, source.List); 178Assert.Same(source.List.SyncRoot, source.SyncRoot); 234Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 237Assert.Same(source, source.CurrencyManager.List); 239Assert.Same(source.CurrencyManager, source.CurrencyManager); 241Assert.Same(dataMember, source.DataMember); 242Assert.Same(dataSource, source.DataSource); 245Assert.Same(source.Events, source.Events); 252Assert.Same(expected, source.List); 264Assert.Same(source.List.SyncRoot, source.SyncRoot); 304Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 307Assert.Same(source, source.CurrencyManager.List); 309Assert.Same(source.CurrencyManager, source.CurrencyManager); 311Assert.Same(dataMember, source.DataMember); 312Assert.Same(dataSource, source.DataSource); 315Assert.Same(source.Events, source.Events); 336Assert.Same(source.List.SyncRoot, source.SyncRoot); 413Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 416Assert.Same(source, source.CurrencyManager.List); 418Assert.Same(source.CurrencyManager, source.CurrencyManager); 420Assert.Same(dataMember, source.DataMember); 421Assert.Same(mockList.Object, source.DataSource); 424Assert.Same(source.Events, source.Events); 431Assert.Same(mockList.Object, source.List); 435Assert.Same(sortDescriptions, source.SortDescriptions); 437Assert.Same(sortProperty, source.SortProperty); 443Assert.Same(syncRoot, source.SyncRoot); 483Assert.Same(container, source.Container); 487Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 490Assert.Same(source, source.CurrencyManager.List); 492Assert.Same(source.CurrencyManager, source.CurrencyManager); 498Assert.Same(source.Events, source.Events); 518Assert.Same(source.List.SyncRoot, source.SyncRoot); 556Assert.Same(source, sender); 585Assert.Same(source, sender); 609Assert.Same(source, sender); 645Assert.Same(source, sender); 681Assert.Same(source, sender);
System\Windows\Forms\BindingTests.cs (35)
30Assert.Same(dataSource, binding.DataSource); 31Assert.Same(DBNull.Value, binding.DataSourceNullValue); 38Assert.Same(propertyName, binding.PropertyName); 59Assert.Same(dataSource, binding.DataSource); 60Assert.Same(DBNull.Value, binding.DataSourceNullValue); 67Assert.Same(propertyName, binding.PropertyName); 88Assert.Same(dataSource, binding.DataSource); 89Assert.Same(DBNull.Value, binding.DataSourceNullValue); 96Assert.Same(propertyName, binding.PropertyName); 117Assert.Same(dataSource, binding.DataSource); 118Assert.Same(DBNull.Value, binding.DataSourceNullValue); 124Assert.Same(nullValue, binding.NullValue); 125Assert.Same(propertyName, binding.PropertyName); 146Assert.Same(dataSource, binding.DataSource); 147Assert.Same(DBNull.Value, binding.DataSourceNullValue); 150Assert.Same(formatString, binding.FormatString); 153Assert.Same(nullValue, binding.NullValue); 154Assert.Same(propertyName, binding.PropertyName); 175Assert.Same(dataSource, binding.DataSource); 176Assert.Same(DBNull.Value, binding.DataSourceNullValue); 179Assert.Same(formatString, binding.FormatString); 182Assert.Same(nullValue, binding.NullValue); 183Assert.Same(propertyName, binding.PropertyName); 254Assert.Same(value, binding.FormatInfo); 258Assert.Same(value, binding.FormatInfo); 310Assert.Same(value, binding.NullValue); 314Assert.Same(value, binding.NullValue); 337Assert.Same(eventArgs, e); 361Assert.Same(eventArgs, e); 390Assert.Same(eventArgs, e); 422Assert.Same(eventArgs, e); 475Assert.Same(eventArgs, e); 520Assert.Same(eventArgs, e); 572Assert.Same(binding, sender); 573Assert.Same(binding, e.Binding);
System\Windows\Forms\ButtonBaseTests.cs (280)
47Assert.Same(control.Controls, control.Controls); 49Assert.Same(Cursors.Default, control.Cursor); 50Assert.Same(Cursors.Default, control.DefaultCursor); 63Assert.Same(control.Events, control.Events); 65Assert.Same(control.FlatAppearance, control.FlatAppearance); 84Assert.Same(control.LayoutEngine, control.LayoutEngine); 141Assert.Same(createParams, control.CreateParams); 174Assert.Same(createParams, control.CreateParams); 244Assert.Same(createParams, control.CreateParams); 473Assert.Same(control, sender); 474Assert.Same(EventArgs.Empty, e); 734Assert.Same(control, sender); 735Assert.Same(EventArgs.Empty, e); 775Assert.Same(button, sender); 776Assert.Same(EventArgs.Empty, e); 788Assert.Same(viewModel.TestCommand, button.Command); 794Assert.Same(CommandParameter, viewModel.CommandExecuteResult); 1000Assert.Same(control, sender); 1001Assert.Same(EventArgs.Empty, e); 1037Assert.Same(appearance, control.FlatAppearance); 1148Assert.Same(parent, sender); 1149Assert.Same(control, e.AffectedControl); 1319Assert.Same(parent, sender); 1320Assert.Same(control, e.AffectedControl); 1405Assert.Same(value, control.Image); 1411Assert.Same(value, control.Image); 1436Assert.Same(value, control.Image); 1460Assert.Same(value, control.Image); 1477Assert.Same(imageList, control.ImageList); 1487Assert.Same(value, control.Image); 1519Assert.Same(value, control.Image); 1525Assert.Same(value, control.Image); 1561Assert.Same(parent, sender); 1562Assert.Same(control, e.AffectedControl); 1572Assert.Same(value, control.Image); 1580Assert.Same(value, control.Image); 1628Assert.Same(value, control.Image); 1637Assert.Same(value, control.Image); 1680Assert.Same(value, control.Image); 1689Assert.Same(value, control.Image); 1736Assert.Same(parent, sender); 1737Assert.Same(control, e.AffectedControl); 1747Assert.Same(value, control.Image); 1758Assert.Same(value, control.Image); 1782Assert.Same(image, control.Image); 1801Assert.Same(image, control.Image); 1829Assert.Same(image, control.Image); 1896Assert.Same(parent, sender); 1897Assert.Same(control, e.AffectedControl); 2008Assert.Same(parent, sender); 2009Assert.Same(control, e.AffectedControl); 2087Assert.Same(image, control.Image); 2371Assert.Same(value, control.ImageList); 2377Assert.Same(value, control.ImageList); 2394Assert.Same(image, control.Image); 2400Assert.Same(imageList, control.ImageList); 2416Assert.Same(value, control.ImageList); 2422Assert.Same(value, control.ImageList); 2447Assert.Same(value, control.ImageList); 2456Assert.Same(value, control.ImageList); 2488Assert.Same(value, control.ImageList); 2497Assert.Same(value, control.ImageList); 2524Assert.Same(imageList1, control.ImageList); 2533Assert.Same(imageList2, control.ImageList); 2552Assert.Same(imageList1, control.ImageList); 2568Assert.Same(imageList2, control.ImageList); 2586Assert.Same(imageList1, control.ImageList); 2592Assert.Same(imageList1, control.ImageList); 2599Assert.Same(imageList2, control.ImageList); 2621Assert.Same(imageList1, control.ImageList); 2630Assert.Same(imageList1, control.ImageList); 2640Assert.Same(imageList2, control.ImageList); 2671Assert.Same(control, sender); 2672Assert.Same(EventArgs.Empty, e); 2818Assert.Same(value, control.Parent); 2823Assert.Same(value, control.Parent); 2852Assert.Same(value, control.Parent); 2857Assert.Same(value, control.Parent); 2875Assert.Same(value, control.Parent); 2881Assert.Same(value, control.Parent); 2894Assert.Same(parent, control.Parent); 2895Assert.Same(control, Assert.Single(parent.Controls)); 2900Assert.Same(parent, control.Parent); 2901Assert.Same(control, Assert.Single(parent.Controls)); 2924Assert.Same(value, control.Parent); 2932Assert.Same(value, control.Parent); 2972Assert.Same(value, control.Parent); 2980Assert.Same(value, control.Parent); 2995Assert.Same(control, sender); 2996Assert.Same(EventArgs.Empty, e); 3003Assert.Same(parent, control.Parent); 3008Assert.Same(parent, control.Parent); 3019Assert.Same(parent, control.Parent); 3086Assert.Same(parent, sender); 3087Assert.Same(control, e.AffectedControl); 3189Assert.Same(parent, sender); 3190Assert.Same(control, e.AffectedControl); 3232Assert.Same(control, sender); 3327Assert.Same(parent, sender); 3328Assert.Same(control, e.AffectedControl); 3451Assert.Same(parent, sender); 3452Assert.Same(control, e.AffectedControl); 3560Assert.Same(parent, sender); 3561Assert.Same(control, e.AffectedControl); 3677Assert.Same(parent, sender); 3678Assert.Same(control, e.AffectedControl); 3770Assert.Same(parent, sender); 3771Assert.Same(control, e.AffectedControl); 3874Assert.Same(parent, sender); 3875Assert.Same(control, e.AffectedControl); 3980Assert.Same(parent, sender); 3981Assert.Same(control, e.AffectedControl); 4104Assert.Same(parent, sender); 4105Assert.Same(control, e.AffectedControl); 4527Assert.Same(control, sender); 4528Assert.Same(EventArgs.Empty, e); 4618Assert.Same(imageList, control.ImageList); 4632Assert.Same(imageList, control.ImageList); 4643Assert.Same(imageList, control.ImageList); 4650Assert.Same(imageList, control.ImageList); 4773Assert.Same(imageList, control.ImageList); 4787Assert.Same(imageList, control.ImageList); 4798Assert.Same(imageList, control.ImageList); 4805Assert.Same(imageList, control.ImageList); 4921Assert.Same(imageList, control.ImageList); 4932Assert.Same(imageList, control.ImageList); 5125Assert.Same(control, sender); 5126Assert.Same(eventArgs, e); 5170Assert.Same(control, sender); 5171Assert.Same(eventArgs, e); 5223Assert.Same(control, sender); 5224Assert.Same(eventArgs, e); 5281Assert.Same(control, sender); 5282Assert.Same(eventArgs, e); 5313Assert.Same(control, sender); 5314Assert.Same(eventArgs, e); 5346Assert.Same(control, sender); 5347Assert.Same(eventArgs, e); 5378Assert.Same(control, sender); 5379Assert.Same(eventArgs, e); 5405Assert.Same(control, sender); 5406Assert.Same(eventArgs, e); 5431Assert.Same(control, sender); 5432Assert.Same(eventArgs, e); 5458Assert.Same(control, sender); 5459Assert.Same(eventArgs, e); 5502Assert.Same(control, sender); 5503Assert.Same(eventArgs, e); 5548Assert.Same(control, sender); 5549Assert.Same(eventArgs, e); 5600Assert.Same(control, sender); 5601Assert.Same(eventArgs, e); 5659Assert.Same(control, sender); 5660Assert.Same(eventArgs, e); 5769Assert.Same(control, sender); 5770Assert.Same(eventArgs, e); 5817Assert.Same(control, sender); 5818Assert.Same(EventArgs.Empty, e); 5824Assert.Same(control, sender); 5825Assert.Same(eventArgs, e); 5867Assert.Same(control, sender); 5868Assert.Same(eventArgs, e); 5929Assert.Same(control, sender); 5930Assert.Same(EventArgs.Empty, e); 5936Assert.Same(control, sender); 5937Assert.Same(eventArgs, e); 6029Assert.Same(control, sender); 6030Assert.Same(eventArgs, e); 6064Assert.Same(control, sender); 6065Assert.Same(eventArgs, e); 6121Assert.Same(control, sender); 6122Assert.Same(eventArgs, e); 6177Assert.Same(control, sender); 6178Assert.Same(eventArgs, e); 6240Assert.Same(control, sender); 6241Assert.Same(eventArgs, e); 6286Assert.Same(control, sender); 6287Assert.Same(eventArgs, e); 6325Assert.Same(control, sender); 6326Assert.Same(eventArgs, e); 6384Assert.Same(control, sender); 6385Assert.Same(eventArgs, e); 6440Assert.Same(control, sender); 6441Assert.Same(eventArgs, e); 6479Assert.Same(control, sender); 6480Assert.Same(eventArgs, e); 6536Assert.Same(control, sender); 6537Assert.Same(eventArgs, e); 6567Assert.Same(control, sender); 6568Assert.Same(eventArgs, e); 6599Assert.Same(control, sender); 6600Assert.Same(eventArgs, e); 6657Assert.Same(control, sender); 6658Assert.Same(eventArgs, e); 6724Assert.Same(control, sender); 6725Assert.Same(eventArgs, e); 6792Assert.Same(control, sender); 6793Assert.Same(eventArgs, e); 6850Assert.Same(control, sender); 6851Assert.Same(eventArgs, e); 6894Assert.Same(control, sender); 6895Assert.Same(eventArgs, e); 6954Assert.Same(control, sender); 6955Assert.Same(eventArgs, e); 6999Assert.Same(control, sender); 7000Assert.Same(eventArgs, e); 7052Assert.Same(control, sender); 7053Assert.Same(eventArgs, e); 7110Assert.Same(control, sender); 7111Assert.Same(eventArgs, e); 7156Assert.Same(control, sender); 7157Assert.Same(eventArgs, e); 7199Assert.Same(parent, sender); 7200Assert.Same(control, e.AffectedControl); 7212Assert.Same(control, sender); 7213Assert.Same(eventArgs, e); 7260Assert.Same(control, sender); 7261Assert.Same(eventArgs, e); 7309Assert.Same(parent, sender); 7310Assert.Same(control, e.AffectedControl); 7322Assert.Same(control, sender); 7323Assert.Same(eventArgs, e); 7384Assert.Same(control, sender); 7385Assert.Same(eventArgs, e); 7429Assert.Same(control, sender); 7430Assert.Same(eventArgs, e); 7482Assert.Same(control, sender); 7483Assert.Same(eventArgs, e); 7540Assert.Same(control, sender); 7541Assert.Same(eventArgs, e); 7935Assert.Same(control, sender); 7936Assert.Same(EventArgs.Empty, e); 7971Assert.Same(control, sender); 7972Assert.Same(EventArgs.Empty, e); 8008Assert.Same(control, sender); 8009Assert.Same(EventArgs.Empty, e); 8052Assert.Same(control, sender); 8053Assert.Same(EventArgs.Empty, e); 8098Assert.Same(control, sender); 8099Assert.Same(EventArgs.Empty, e); 8148Assert.Same(control, sender); 8149Assert.Same(EventArgs.Empty, e); 8196Assert.Same(control, sender); 8197Assert.Same(EventArgs.Empty, e); 8250Assert.Same(control, sender); 8251Assert.Same(EventArgs.Empty, e); 8294Assert.Same(control, sender); 8295Assert.Same(EventArgs.Empty, e); 8323Assert.Same(control, sender); 8324Assert.Same(EventArgs.Empty, e); 8364Assert.Same(control, sender); 8365Assert.Same(EventArgs.Empty, e); 8404Assert.Same(control, sender); 8405Assert.Same(EventArgs.Empty, e); 8440Assert.Same(control, sender); 8441Assert.Same(EventArgs.Empty, e); 8476Assert.Same(control, sender); 8477Assert.Same(EventArgs.Empty, e); 8513Assert.Same(control, sender); 8514Assert.Same(EventArgs.Empty, e); 8557Assert.Same(control, sender); 8558Assert.Same(EventArgs.Empty, e); 8603Assert.Same(control, sender); 8604Assert.Same(EventArgs.Empty, e); 8653Assert.Same(control, sender); 8654Assert.Same(EventArgs.Empty, e); 8701Assert.Same(control, sender); 8702Assert.Same(EventArgs.Empty, e); 8755Assert.Same(control, sender); 8756Assert.Same(EventArgs.Empty, e); 8806Assert.Same(control, sender); 8807Assert.Same(EventArgs.Empty, e); 8880Assert.Same(control, sender); 8916Assert.Same(control, sender); 8986Assert.Same(control, sender); 9030Assert.Same(control, sender); 9129Assert.Same(control, sender); 9130Assert.Same(EventArgs.Empty, e); 9165Assert.Same(control, sender); 9166Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ButtonTests.cs (112)
49Assert.Same(control.Controls, control.Controls); 51Assert.Same(Cursors.Default, control.Cursor); 52Assert.Same(Cursors.Default, control.DefaultCursor); 66Assert.Same(control.Events, control.Events); 68Assert.Same(control.FlatAppearance, control.FlatAppearance); 87Assert.Same(control.LayoutEngine, control.LayoutEngine); 139Assert.Same(createParams, control.CreateParams); 163Assert.Same(createParams, control.CreateParams); 196Assert.Same(createParams, control.CreateParams); 266Assert.Same(createParams, control.CreateParams); 307Assert.Same(parent, sender); 308Assert.Same(control, e.AffectedControl); 356Assert.Same(parent, sender); 357Assert.Same(control, e.AffectedControl); 455Assert.Same(parent, sender); 456Assert.Same(control, e.AffectedControl); 528Assert.Same(parent, sender); 529Assert.Same(control, e.AffectedControl); 712Assert.Same(control, sender); 713Assert.Same(EventArgs.Empty, e); 721Assert.Same(font1, control.Font); 726Assert.Same(font1, control.Font); 732Assert.Same(font2, control.Font); 743Assert.Same(font1, control.Font); 802Assert.Same(parent, sender); 803Assert.Same(control, e.AffectedControl); 905Assert.Same(parent, sender); 906Assert.Same(control, e.AffectedControl); 967Assert.Same(control, sender); 1007Assert.Same(control, instance.Owner); 1028Assert.Same(control, instance.Owner); 1062Assert.Same(control, instance.Owner); 1084Assert.Same(control, instance.Owner); 1105Assert.Same(control, instance.Owner); 1126Assert.Same(control, sender); 1127Assert.Same(EventArgs.Empty, e); 1148Assert.Same(control, sender); 1149Assert.Same(EventArgs.Empty, e); 1912Assert.Same(control, sender); 1913Assert.Same(eventArgs, e); 1947Assert.Same(control, sender); 1948Assert.Same(eventArgs, e); 1988Assert.Same(control, sender); 1989Assert.Same(eventArgs, e); 2036Assert.Same(control, sender); 2037Assert.Same(eventArgs, e); 2074Assert.Same(control, sender); 2075Assert.Same(eventArgs, e); 2098Assert.Same(control, sender); 2099Assert.Same(eventArgs, e); 2124Assert.Same(control, sender); 2125Assert.Same(eventArgs, e); 2151Assert.Same(control, sender); 2152Assert.Same(eventArgs, e); 2177Assert.Same(control, sender); 2178Assert.Same(eventArgs, e); 2204Assert.Same(control, sender); 2205Assert.Same(eventArgs, e); 2230Assert.Same(control, sender); 2231Assert.Same(eventArgs, e); 2273Assert.Same(control, sender); 2274Assert.Same(eventArgs, e); 2325Assert.Same(control, sender); 2326Assert.Same(eventArgs, e); 2384Assert.Same(control, sender); 2385Assert.Same(eventArgs, e); 2429Assert.Same(control, sender); 2430Assert.Same(eventArgs, e); 2467Assert.Same(control, sender); 2468Assert.Same(eventArgs, e); 2525Assert.Same(control, sender); 2526Assert.Same(eventArgs, e); 2577Assert.Same(control, sender); 2578Assert.Same(eventArgs, e); 2615Assert.Same(control, sender); 2616Assert.Same(eventArgs, e); 2665Assert.Same(control, sender); 2666Assert.Same(eventArgs, e); 2718Assert.Same(control, sender); 2719Assert.Same(eventArgs, e); 2762Assert.Same(control, sender); 2763Assert.Same(eventArgs, e); 2829Assert.Same(control, sender); 2830Assert.Same(eventArgs, e); 2890Assert.Same(control, sender); 2891Assert.Same(eventArgs, e); 2933Assert.Same(parent, sender); 2934Assert.Same(control, e.AffectedControl); 2946Assert.Same(control, sender); 2947Assert.Same(eventArgs, e); 2994Assert.Same(control, sender); 2995Assert.Same(eventArgs, e); 3043Assert.Same(parent, sender); 3044Assert.Same(control, e.AffectedControl); 3056Assert.Same(control, sender); 3057Assert.Same(eventArgs, e); 3097Assert.Same(control, sender); 3098Assert.Same(EventArgs.Empty, e); 3131Assert.Same(control, sender); 3132Assert.Same(EventArgs.Empty, e); 3169Assert.Same(control, sender); 3170Assert.Same(EventArgs.Empty, e); 3216Assert.Same(control, sender); 3217Assert.Same(EventArgs.Empty, e); 3271Assert.Same(control, sender); 3272Assert.Same(EventArgs.Empty, e); 3540Assert.Same(control, sender); 3541Assert.Same(EventArgs.Empty, e); 3606Assert.Same(control, sender); 3607Assert.Same(EventArgs.Empty, e); 3643Assert.Same(control, sender); 3644Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\CheckBoxTests.cs (7)
51Assert.Same(control.Controls, control.Controls); 53Assert.Same(Cursors.Default, control.Cursor); 54Assert.Same(Cursors.Default, control.DefaultCursor); 67Assert.Same(control.Events, control.Events); 69Assert.Same(control.FlatAppearance, control.FlatAppearance); 88Assert.Same(control.LayoutEngine, control.LayoutEngine); 142Assert.Same(createParams, control.CreateParams);
System\Windows\Forms\ColorDialogTests.cs (3)
24Assert.Same(dialog.Events, dialog.Events); 48Assert.Same(dialog.Events, dialog.Events); 345Assert.Same(dialog.Events, dialog.Events);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (19)
34Assert.Same(collection, collection.SyncRoot); 45Assert.Same(header, collection[0]); 70Assert.Same(header, collection[0]); 131Assert.Same(header, Assert.Single(collection)); 339Assert.Same(header, Assert.Single(collection)); 364Assert.Same(header1, collection[0]); 365Assert.Same(header2, collection[1]); 400Assert.Same(header1, collection[0]); 401Assert.Same(header2, collection[1]); 402Assert.Same(header3, collection[2]); 403Assert.Same(header4, collection[3]); 404Assert.Same(header5, collection[4]); 710Assert.Same(header, collection[1]); 711Assert.Same(listView, header.ListView); 843Assert.Same(header, collection[1]); 844Assert.Same(listView, header.ListView); 878Assert.Same(header, Assert.Single(collection)); 927Assert.Same(header, Assert.Single(collection)); 1090Assert.Same(listView, header.ListView);
System\Windows\Forms\ColumnHeaderTests.cs (7)
21Assert.Same(header.Events, header.Events); 47Assert.Same(header.Events, header.Events); 71Assert.Same(header.Events, header.Events); 734Assert.Same(listView.SmallImageList, header.ImageList); 752Assert.Same(listView, header.ListView); 1554Assert.Same(header.Events, header.Events); 1641Assert.Same(imageList, indexer.ImageList);
System\Windows\Forms\ColumnStyleTests.cs (4)
74Assert.Same(control, sender); 75Assert.Same(control, e.AffectedControl); 111Assert.Same(control, sender); 112Assert.Same(control, e.AffectedControl);
System\Windows\Forms\ComboBoxTests.cs (42)
30Assert.Same(control.AutoCompleteCustomSource, control.AutoCompleteCustomSource); 52Assert.Same(control.Controls, control.Controls); 54Assert.Same(Cursors.Default, control.Cursor); 57Assert.Same(Cursors.Default, control.DefaultCursor); 76Assert.Same(control.Events, control.Events); 94Assert.Same(control.Items, control.Items); 96Assert.Same(control.LayoutEngine, control.LayoutEngine); 151Assert.Same(createParams, control.CreateParams); 248Assert.Same(control, sender); 249Assert.Same(EventArgs.Empty, e); 506Assert.Same(value, control.BackgroundImage); 511Assert.Same(value, control.BackgroundImage); 522Assert.Same(control, sender); 523Assert.Same(EventArgs.Empty, e); 531Assert.Same(image1, control.BackgroundImage); 536Assert.Same(image1, control.BackgroundImage); 542Assert.Same(image2, control.BackgroundImage); 553Assert.Same(image1, control.BackgroundImage); 581Assert.Same(control, sender); 582Assert.Same(EventArgs.Empty, e); 638Assert.Same(value, control.DataSource); 645Assert.Same(value, control.DataSource); 659Assert.Same(control, sender); 660Assert.Same(EventArgs.Empty, e); 665Assert.Same(control, sender); 666Assert.Same(EventArgs.Empty, e); 675Assert.Same(dataSource1, control.DataSource); 681Assert.Same(dataSource1, control.DataSource); 688Assert.Same(dataSource2, control.DataSource); 702Assert.Same(dataSource1, control.DataSource); 949Assert.Same(control, sender); 950Assert.Same(EventArgs.Empty, e); 1011Assert.Same(control, sender); 1012Assert.Same(EventArgs.Empty, e); 1020Assert.Same(font1, control.Font); 1025Assert.Same(font1, control.Font); 1031Assert.Same(font2, control.Font); 1042Assert.Same(font1, control.Font); 1117Assert.Same(control, sender); 1118Assert.Same(EventArgs.Empty, e); 1284Assert.Same(control, sender); 1285Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\CommonDialogTests.cs (9)
21Assert.Same(dialog.Events, dialog.Events); 35Assert.Same(value, dialog.Tag); 39Assert.Same(value, dialog.Tag); 55Assert.Same(dialog, sender); 56Assert.Same(eventArgs, e); 237Assert.Same(dialog, sender); 238Assert.Same(EventArgs.Empty, e); 257Assert.Same(dialog, sender); 258Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (4)
87Assert.Same(icon, (Icon)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, null)); 107Assert.Same(bitmap, (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null)); 152Assert.Same(exclamationIcon, Instance.ConvertNativeToManaged((VARIANT)picture.AsUnknown, null)); 173Assert.Same(bitmap, Instance.ConvertNativeToManaged((VARIANT)picture.AsUnknown, null));
System\Windows\Forms\ContainerControlTests.cs (90)
39Assert.Same(control.BindingContext, control.BindingContext); 54Assert.Same(control.Controls, control.Controls); 69Assert.Same(control.DockPadding, control.DockPadding); 77Assert.Same(control.Events, control.Events); 85Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 119Assert.Same(control.VerticalScroll, control.VerticalScroll); 142Assert.Same(createParams, control.CreateParams); 156Assert.Same(child, control.ActiveControl); 160Assert.Same(child, control.ActiveControl); 164Assert.Same(grandchild, control.ActiveControl); 308Assert.Same(control, sender); 309Assert.Same(EventArgs.Empty, e); 352Assert.Same(value, control.BindingContext); 357Assert.Same(value, control.BindingContext); 373Assert.Same(control, sender); 374Assert.Same(EventArgs.Empty, e); 382Assert.Same(value1, control.BindingContext); 387Assert.Same(value1, control.BindingContext); 400Assert.Same(value3, control.BindingContext); 453Assert.Same(control, sender); 454Assert.Same(EventArgs.Empty, e); 462Assert.Same(font1, control.Font); 467Assert.Same(font1, control.Font); 473Assert.Same(font2, control.Font); 484Assert.Same(font1, control.Font); 578Assert.Same(control, sender); 579Assert.Same(EventArgs.Empty, e); 587Assert.Same(value1, control.BindingContext); 592Assert.Same(value1, control.BindingContext); 605Assert.Same(value3, control.BindingContext); 629Assert.Same(control, sender); 630Assert.Same(eventArgs, e); 652Assert.Same(control, sender); 653Assert.Same(EventArgs.Empty, e); 675Assert.Same(control, sender); 676Assert.Same(eventArgs, e); 702Assert.Same(control, sender); 703Assert.Same(eventArgs, e); 728Assert.Same(control, sender); 729Assert.Same(eventArgs, e); 752Assert.Same(control, sender); 753Assert.Same(eventArgs, e); 838Assert.Same(child1, sender); 846Assert.Same(child1, sender); 847Assert.Same(EventArgs.Empty, e); 853Assert.Same(grandchild1, sender); 862Assert.Same(child2, sender); 869Assert.Same(child2, sender); 870Assert.Same(EventArgs.Empty, e); 876Assert.Same(grandchild2, sender); 883Assert.Same(grandchild2, sender); 884Assert.Same(EventArgs.Empty, e); 890Assert.Same(child3, sender); 897Assert.Same(child3, sender); 898Assert.Same(EventArgs.Empty, e); 912Assert.Same(child5, sender); 919Assert.Same(child5, sender); 920Assert.Same(EventArgs.Empty, e); 926Assert.Same(child6, sender); 933Assert.Same(child6, sender); 934Assert.Same(EventArgs.Empty, e); 940Assert.Same(child7, sender); 947Assert.Same(child7, sender); 948Assert.Same(EventArgs.Empty, e); 1064Assert.Same(child1, sender); 1072Assert.Same(child1, sender); 1073Assert.Same(EventArgs.Empty, e); 1079Assert.Same(grandchild1, sender); 1088Assert.Same(child2, sender); 1095Assert.Same(child2, sender); 1096Assert.Same(EventArgs.Empty, e); 1102Assert.Same(grandchild2, sender); 1109Assert.Same(grandchild2, sender); 1110Assert.Same(EventArgs.Empty, e); 1116Assert.Same(child3, sender); 1123Assert.Same(child3, sender); 1124Assert.Same(EventArgs.Empty, e); 1138Assert.Same(child5, sender); 1145Assert.Same(child5, sender); 1146Assert.Same(EventArgs.Empty, e); 1152Assert.Same(child6, sender); 1159Assert.Same(child6, sender); 1160Assert.Same(EventArgs.Empty, e); 1166Assert.Same(child7, sender); 1173Assert.Same(child7, sender); 1174Assert.Same(EventArgs.Empty, e); 1233Assert.Same(control, sender); 1234Assert.Same(EventArgs.Empty, e); 1305Assert.Same(child2, control.ActiveControl);
System\Windows\Forms\ControlBindingsCollectionTests.cs (37)
27Assert.Same(control, collection.BindableComponent); 28Assert.Same(expectedControl, collection.Control); 62Assert.Same(binding, Assert.Single(collection)); 63Assert.Same(control, binding.BindableComponent); 81Assert.Same(binding1, collection[0]); 82Assert.Same(binding2, collection[1]); 83Assert.Same(binding3, collection[2]); 84Assert.Same(binding4, collection[3]); 94Assert.Same(binding, Assert.Single(collection)); 114Assert.Same(binding1, collection[0]); 115Assert.Same(binding2, collection[1]); 116Assert.Same(binding3, collection[2]); 117Assert.Same(binding4, collection[3]); 118Assert.Same(binding5, collection[4]); 127Assert.Same(binding, Assert.Single(collection)); 128Assert.Same(control, binding.BindableComponent); 144Assert.Same(binding, Assert.Single(collection)); 145Assert.Same(control, binding.BindableComponent); 161Assert.Same(binding, Assert.Single(collection)); 162Assert.Same(control, binding.BindableComponent); 178Assert.Same(binding, Assert.Single(collection)); 179Assert.Same(control, binding.BindableComponent); 195Assert.Same(binding, Assert.Single(collection)); 196Assert.Same(control, binding.BindableComponent); 212Assert.Same(binding, Assert.Single(collection)); 213Assert.Same(control, binding.BindableComponent); 307Assert.Same(binding, Assert.Single(collection)); 308Assert.Same(control, binding.BindableComponent); 327Assert.Same(binding, Assert.Single(collection)); 328Assert.Same(control, binding.BindableComponent); 344Assert.Same(binding, Assert.Single(collection)); 357Assert.Same(binding1, Assert.Single(collection)); 373Assert.Same(binding1, Assert.Single(collection1)); 374Assert.Same(binding2, Assert.Single(collection2)); 385Assert.Same(binding, Assert.Single(collection)); 386Assert.Same(control, binding.BindableComponent); 402Assert.Same(binding, collection[propertyName]);
System\Windows\Forms\ControlTests.ControlCollection.cs (184)
22Assert.Same(owner, collection.Owner); 41Assert.Same(owner, sender); 42Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 56Assert.Same(control1, Assert.Single(collection)); 57Assert.Same(owner, control1.Parent); 68Assert.Same(owner, control1.Parent); 70Assert.Same(owner, control2.Parent); 83Assert.Same(owner, control1.Parent); 85Assert.Same(owner, control2.Parent); 116Assert.Same(owner, sender); 117Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 132Assert.Same(control1, Assert.Single(collection)); 133Assert.Same(owner, control1.Parent); 135Assert.Same(control1, Assert.Single(owner.Controls)); 144Assert.Same(owner, control1.Parent); 146Assert.Same(owner, control2.Parent); 160Assert.Same(owner, control1.Parent); 162Assert.Same(owner, control2.Parent); 194Assert.Same(owner2, sender); 195Assert.Same(collection2.Cast<Control>().Last(), e.AffectedControl); 206Assert.Same(control, Assert.Single(collection2)); 208Assert.Same(owner2, control.Parent); 210Assert.Same(control, Assert.Single(owner2.Controls)); 230Assert.Same(owner, sender); 231Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 249Assert.Same(control, Assert.Single(collection)); 250Assert.Same(owner, control.Parent); 252Assert.Same(control, Assert.Single(owner.Controls)); 261Assert.Same(control, Assert.Single(collection)); 262Assert.Same(owner, control.Parent); 264Assert.Same(control, Assert.Single(owner.Controls)); 290Assert.Same(owner, control1.Parent); 300Assert.Same(owner, control1.Parent); 303Assert.Same(owner, control2.Parent); 314Assert.Same(owner, control1.Parent); 317Assert.Same(owner, control2.Parent); 320Assert.Same(owner, control3.Parent); 344Assert.Same(control, Assert.Single(collection)); 345Assert.Same(owner, control.Parent); 373Assert.Same(control, Assert.Single(collection)); 374Assert.Same(owner, control.Parent); 409Assert.Same(control, Assert.Single(collection)); 410Assert.Same(owner, control.Parent); 449Assert.Same(control, Assert.Single(collection)); 450Assert.Same(owner, control.Parent); 474Assert.Same(child1, sender); 475Assert.Same(EventArgs.Empty, e); 480Assert.Same(child2, sender); 481Assert.Same(EventArgs.Empty, e); 488Assert.Same(owner, sender); 489Assert.Same(affectedControl, e.AffectedControl); 497Assert.Same(owner, sender); 498Assert.Same(child1, e.Control); 511Assert.Same(owner, child1.Parent); 519Assert.Same(owner, child1.Parent); 529Assert.Same(owner, child2.Parent); 565Assert.Same(owner, control.Parent); 609Assert.Same(owner, control.Parent); 660Assert.Same(bindingContext, control.BindingContext); 754Assert.Same(owner, control.Parent); 760Assert.Same(font, control.Font); 768Assert.Same(expectedBindingContext, control.BindingContext); 810Assert.Same(bindingContext, control.BindingContext); 913Assert.Same(owner, control.Parent); 919Assert.Same(font, control.Font); 927Assert.Same(expectedBindingContext, control.BindingContext); 963Assert.Same(bindingContext, control.BindingContext); 990Assert.Same(owner, control.Parent); 996Assert.Same(font, control.Font); 1004Assert.Same(expectedBindingContext, control.BindingContext); 1036Assert.Same(bindingContext, control.BindingContext); 1070Assert.Same(owner, control.Parent); 1076Assert.Same(font, control.Font); 1084Assert.Same(expectedBindingContext, control.BindingContext); 1215Assert.Same(owner, sender); 1216Assert.Same(affectedControl, e.AffectedControl); 1231Assert.Same(owner, child1.Parent); 1232Assert.Same(owner, child2.Parent); 1233Assert.Same(owner, child3.Parent); 1245Assert.Same(owner, child1.Parent); 1246Assert.Same(owner, child2.Parent); 1247Assert.Same(owner, child3.Parent); 1258Assert.Same(owner, child1.Parent); 1259Assert.Same(owner, child2.Parent); 1260Assert.Same(owner, child3.Parent); 1298Assert.Same(owner, sender); 1299Assert.Same(child3, e.AffectedControl); 1359Assert.Same(owner, collection.Owner); 1360Assert.Same(owner, child1.Parent); 1361Assert.Same(owner, child2.Parent); 1362Assert.Same(owner, child2.Parent); 1626Assert.Same(child1, enumerator.Current); 1629Assert.Same(child2, enumerator.Current); 1632Assert.Same(child3, enumerator.Current); 1635Assert.Same(child3, enumerator.Current); 1639Assert.Same(child3, enumerator.Current); 1688Assert.Same(child2, enumerator.Current); 1691Assert.Same(child3, enumerator.Current); 1694Assert.Same(child3, enumerator.Current); 1698Assert.Same(child3, enumerator.Current); 1719Assert.Same(child1, enumerator.Current); 1722Assert.Same(child2, enumerator.Current); 1725Assert.Same(child3, enumerator.Current); 1738Assert.Same(child1, enumerator.Current); 1879Assert.Same(child1, collection[0]); 1880Assert.Same(child2, collection[1]); 1881Assert.Same(child3, collection[2]); 1927Assert.Same(owner, sender); 1928Assert.Same(child1, e.AffectedControl); 1940Assert.Same(owner, child2.Parent); 1950Assert.Same(owner, child2.Parent); 1960Assert.Same(owner, child2.Parent); 1984Assert.Same(child1, owner.ActiveControl); 1991Assert.Same(owner, sender); 1992Assert.Same(child1, e.AffectedControl); 2004Assert.Same(owner, child2.Parent); 2015Assert.Same(owner, child2.Parent); 2026Assert.Same(owner, child2.Parent); 2054Assert.Same(owner, sender); 2055Assert.Same(child1, e.AffectedControl); 2074Assert.Same(owner, child2.Parent); 2087Assert.Same(owner, child2.Parent); 2100Assert.Same(owner, child2.Parent); 2130Assert.Same(owner, sender); 2131Assert.Same(child1, e.AffectedControl); 2156Assert.Same(owner, child2.Parent); 2172Assert.Same(owner, child2.Parent); 2188Assert.Same(owner, child2.Parent); 2223Assert.Same(owner1, control1.Parent); 2224Assert.Same(owner2, control2.Parent); 2230Assert.Same(owner1, control1.Parent); 2231Assert.Same(owner2, control2.Parent); 2354Assert.Same(font, control.Font); 2363Assert.Same(expectedBindingContext, control.BindingContext); 2467Assert.Same(bindingContext, control.BindingContext); 2498Assert.Same(font, control.Font); 2507Assert.Same(expectedBindingContext, control.BindingContext); 2600Assert.Same(bindingContext, control.BindingContext); 2630Assert.Same(font, control.Font); 2639Assert.Same(expectedBindingContext, control.BindingContext); 2673Assert.Same(bindingContext, control.BindingContext); 2694Assert.Same(font, control.Font); 2703Assert.Same(expectedBindingContext, control.BindingContext); 2751Assert.Same(bindingContext, control.BindingContext); 2781Assert.Same(child1, sender); 2782Assert.Same(EventArgs.Empty, e); 2789Assert.Same(child2, sender); 2790Assert.Same(EventArgs.Empty, e); 2798Assert.Same(owner, sender); 2799Assert.Same(affectedControl, e.AffectedControl); 2809Assert.Same(owner, sender); 2810Assert.Same(child1, e.Control); 2860Assert.Same(owner, sender); 2861Assert.Same(affectedControl, e.AffectedControl); 2873Assert.Same(owner, child1.Parent); 2954Assert.Same(owner, sender); 2955Assert.Same(affectedControl, e.AffectedControl); 2967Assert.Same(owner, child1.Parent); 2969Assert.Same(owner, child3.Parent); 2980Assert.Same(owner, child1.Parent); 3051Assert.Same(owner, sender); 3052Assert.Same(child1, e.AffectedControl); 3119Assert.Same(owner, sender); 3120Assert.Same(child1, e.AffectedControl); 3172Assert.Same(owner, sender); 3173Assert.Same(child1, e.AffectedControl); 3251Assert.Same(owner, sender); 3252Assert.Same(child1, e.AffectedControl); 3345Assert.Same(owner, sender); 3346Assert.Same(child1, e.AffectedControl); 3439Assert.Same(owner, sender); 3440Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 3455Assert.Same(control1, Assert.Single(collection)); 3456Assert.Same(owner, control1.Parent); 3458Assert.Same(control1, Assert.Single(owner.Controls)); 3468Assert.Same(owner, control1.Parent); 3470Assert.Same(owner, control2.Parent); 3484Assert.Same(owner, control1.Parent); 3486Assert.Same(owner, control2.Parent); 3528Assert.Same(owner, sender); 3529Assert.Same(child1, e.AffectedControl); 3541Assert.Same(owner, child2.Parent); 3551Assert.Same(owner, child2.Parent); 3561Assert.Same(owner, child2.Parent);
System\Windows\Forms\ControlTests.cs (43)
42Assert.Same(control.Controls, control.Controls); 44Assert.Same(Cursors.Default, control.Cursor); 45Assert.Same(Cursors.Default, control.DefaultCursor); 58Assert.Same(control.Events, control.Events); 70Assert.Same(control.LayoutEngine, control.LayoutEngine); 131Assert.Same(control.Controls, control.Controls); 133Assert.Same(Cursors.Default, control.Cursor); 134Assert.Same(Cursors.Default, control.DefaultCursor); 147Assert.Same(control.Events, control.Events); 159Assert.Same(control.LayoutEngine, control.LayoutEngine); 227Assert.Same(control.Controls, control.Controls); 229Assert.Same(Cursors.Default, control.Cursor); 230Assert.Same(Cursors.Default, control.DefaultCursor); 243Assert.Same(control.Events, control.Events); 255Assert.Same(control.LayoutEngine, control.LayoutEngine); 323Assert.Same(control.Controls, control.Controls); 325Assert.Same(Cursors.Default, control.Cursor); 326Assert.Same(Cursors.Default, control.DefaultCursor); 339Assert.Same(control.Events, control.Events); 351Assert.Same(control.LayoutEngine, control.LayoutEngine); 358Assert.Same(parent, control.Parent); 372Assert.Same(expectedText, control.Text); 419Assert.Same(control.Controls, control.Controls); 421Assert.Same(Cursors.Default, control.Cursor); 422Assert.Same(Cursors.Default, control.DefaultCursor); 435Assert.Same(control.Events, control.Events); 447Assert.Same(control.LayoutEngine, control.LayoutEngine); 454Assert.Same(parent, control.Parent); 468Assert.Same(expectedText, control.Text); 495Assert.Same(font, Control.DefaultFont); 514Assert.Same(createParams, control.CreateParams); 538Assert.Same(createParams, control.CreateParams); 564Assert.Same(createParams, control.CreateParams); 589Assert.Same(createParams, control.CreateParams); 615Assert.Same(createParams, control.CreateParams); 637Assert.Same(createParams, control.CreateParams); 664Assert.Same(createParams, control.CreateParams); 690Assert.Same(createParams, control.CreateParams); 716Assert.Same(createParams, control.CreateParams); 732Assert.Same(control, sender); 733Assert.Same(EventArgs.Empty, e); 739Assert.Same(childControl, sender); 740Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ControlTests.Handlers.cs (404)
21Assert.Same(control, sender); 22Assert.Same(eventArgs, e); 45Assert.Same(control, sender); 46Assert.Same(eventArgs, e); 79Assert.Same(control, sender); 80Assert.Same(eventArgs, e); 142Assert.Same(control, sender); 143Assert.Same(eventArgs, e); 148Assert.Same(child1, sender); 149Assert.Same(eventArgs, e); 154Assert.Same(child2, sender); 155Assert.Same(eventArgs, e); 195Assert.Same(control, sender); 196Assert.Same(eventArgs, e); 201Assert.Same(child1, sender); 202Assert.Same(eventArgs, e); 207Assert.Same(child2, sender); 208Assert.Same(eventArgs, e); 235Assert.Same(control, sender); 236Assert.Same(eventArgs, e); 263Assert.Same(control, sender); 264Assert.Same(eventArgs, e); 337Assert.Same(control, sender); 338Assert.Same(eventArgs, e); 343Assert.Same(child1, sender); 344Assert.Same(eventArgs, e); 349Assert.Same(child2, sender); 350Assert.Same(eventArgs, e); 394Assert.Same(control, sender); 395Assert.Same(eventArgs, e); 400Assert.Same(child1, sender); 401Assert.Same(eventArgs, e); 406Assert.Same(child2, sender); 407Assert.Same(eventArgs, e); 438Assert.Same(control, sender); 439Assert.Same(eventArgs, e); 467Assert.Same(control, sender); 468Assert.Same(eventArgs, e); 518Assert.Same(control, sender); 519Assert.Same(eventArgs, e); 524Assert.Same(child1, sender); 525Assert.Same(eventArgs, e); 530Assert.Same(child2, sender); 531Assert.Same(eventArgs, e); 571Assert.Same(control, sender); 572Assert.Same(eventArgs, e); 577Assert.Same(child1, sender); 578Assert.Same(eventArgs, e); 583Assert.Same(child2, sender); 584Assert.Same(eventArgs, e); 635Assert.Same(control, sender); 636Assert.Same(eventArgs, e); 666Assert.Same(control, sender); 667Assert.Same(eventArgs, e); 672Assert.Same(child1, sender); 673Assert.Same(eventArgs, e); 678Assert.Same(child2, sender); 679Assert.Same(eventArgs, e); 721Assert.Same(control, sender); 722Assert.Same(eventArgs, e); 727Assert.Same(child1, sender); 728Assert.Same(eventArgs, e); 733Assert.Same(child2, sender); 734Assert.Same(eventArgs, e); 761Assert.Same(control, sender); 762Assert.Same(eventArgs, e); 792Assert.Same(control, sender); 793Assert.Same(eventArgs, e); 816Assert.Same(control, sender); 817Assert.Same(eventArgs, e); 840Assert.Same(control, sender); 841Assert.Same(eventArgs, e); 879Assert.Same(control, sender); 880Assert.Same(eventArgs, e); 937Assert.Same(control, sender); 938Assert.Same(eventArgs, e); 993Assert.Same(control, sender); 994Assert.Same(eventArgs, e); 1024Assert.Same(control, sender); 1025Assert.Same(eventArgs, e); 1048Assert.Same(control, sender); 1049Assert.Same(eventArgs, e); 1085Assert.Same(control, sender); 1086Assert.Same(eventArgs, e); 1116Assert.Same(control, sender); 1117Assert.Same(eventArgs, e); 1122Assert.Same(child1, sender); 1123Assert.Same(eventArgs, e); 1128Assert.Same(child2, sender); 1129Assert.Same(eventArgs, e); 1171Assert.Same(control, sender); 1172Assert.Same(eventArgs, e); 1177Assert.Same(child1, sender); 1178Assert.Same(eventArgs, e); 1183Assert.Same(child2, sender); 1184Assert.Same(eventArgs, e); 1211Assert.Same(control, sender); 1212Assert.Same(eventArgs, e); 1235Assert.Same(control, sender); 1236Assert.Same(eventArgs, e); 1259Assert.Same(control, sender); 1260Assert.Same(eventArgs, e); 1283Assert.Same(control, sender); 1284Assert.Same(eventArgs, e); 1313Assert.Same(control, sender); 1314Assert.Same(eventArgs, e); 1337Assert.Same(control, sender); 1338Assert.Same(eventArgs, e); 1361Assert.Same(control, sender); 1362Assert.Same(eventArgs, e); 1385Assert.Same(control, sender); 1386Assert.Same(eventArgs, e); 1409Assert.Same(control, sender); 1410Assert.Same(eventArgs, e); 1442Assert.Same(control, sender); 1443Assert.Same(eventArgs, e); 1476Assert.Same(control, sender); 1477Assert.Same(eventArgs, e); 1513Assert.Same(control, sender); 1514Assert.Same(eventArgs, e); 1519Assert.Same(child1, sender); 1520Assert.Same(eventArgs, e); 1525Assert.Same(child2, sender); 1526Assert.Same(eventArgs, e); 1566Assert.Same(control, sender); 1567Assert.Same(eventArgs, e); 1572Assert.Same(child1, sender); 1573Assert.Same(eventArgs, e); 1578Assert.Same(child2, sender); 1579Assert.Same(eventArgs, e); 1606Assert.Same(control, sender); 1607Assert.Same(eventArgs, e); 1630Assert.Same(control, sender); 1631Assert.Same(eventArgs, e); 1661Assert.Same(control, sender); 1662Assert.Same(eventArgs, e); 1707Assert.Same(control, sender); 1708Assert.Same(eventArgs, e); 1748Assert.Same(control, sender); 1749Assert.Same(eventArgs, e); 1754Assert.Same(child1, sender); 1755Assert.Same(eventArgs, e); 1760Assert.Same(child2, sender); 1761Assert.Same(eventArgs, e); 1803Assert.Same(control, sender); 1804Assert.Same(eventArgs, e); 1809Assert.Same(child1, sender); 1810Assert.Same(eventArgs, e); 1815Assert.Same(child2, sender); 1816Assert.Same(eventArgs, e); 1867Assert.Same(control, sender); 1868Assert.Same(eventArgs, e); 1895Assert.Same(control, sender); 1896Assert.Same(eventArgs, e); 1969Assert.Same(control, sender); 1970Assert.Same(eventArgs, e); 1975Assert.Same(child1, sender); 1976Assert.Same(eventArgs, e); 1981Assert.Same(child2, sender); 1982Assert.Same(eventArgs, e); 2022Assert.Same(control, sender); 2023Assert.Same(eventArgs, e); 2028Assert.Same(child1, sender); 2029Assert.Same(eventArgs, e); 2034Assert.Same(child2, sender); 2035Assert.Same(eventArgs, e); 2068Assert.Same(control, sender); 2069Assert.Same(eventArgs, e); 2092Assert.Same(control, sender); 2093Assert.Same(eventArgs, e); 2118Assert.Same(control, sender); 2119Assert.Same(eventArgs, e); 2158Assert.Same(control, sender); 2159Assert.Same(eventArgs, e); 2200Assert.Same(control, sender); 2201Assert.Same(eventArgs, e); 2211Assert.Same(region, control.Region); 2219Assert.Same(region, control.Region); 2245Assert.Same(control, sender); 2246Assert.Same(eventArgs, e); 2280Assert.Same(control, sender); 2281Assert.Same(eventArgs, e); 2310Assert.Same(control, sender); 2311Assert.Same(eventArgs, e); 2350Assert.Same(control, sender); 2351Assert.Same(eventArgs, e); 2361Assert.Same(region, control.Region); 2369Assert.Same(region, control.Region); 2393Assert.Same(control, sender); 2394Assert.Same(eventArgs, e); 2426Assert.Same(control, sender); 2427Assert.Same(eventArgs, e); 2458Assert.Same(control, sender); 2459Assert.Same(eventArgs, e); 2491Assert.Same(control, sender); 2492Assert.Same(eventArgs, e); 2502Assert.Same(region, control.Region); 2510Assert.Same(region, control.Region); 2526Assert.Same(control, sender); 2527Assert.Same(eventArgs, e); 2561Assert.Same(control, sender); 2562Assert.Same(eventArgs, e); 2597Assert.Same(control, sender); 2598Assert.Same(eventArgs, e); 2629Assert.Same(control, sender); 2630Assert.Same(eventArgs, e); 2655Assert.Same(control, sender); 2656Assert.Same(eventArgs, e); 2718Assert.Same(control, sender); 2719Assert.Same(eventArgs, e); 2748Assert.Same(control, sender); 2749Assert.Same(eventArgs, e); 2814Assert.Same(control, sender); 2815Assert.Same(eventArgs, e); 2844Assert.Same(control, sender); 2845Assert.Same(eventArgs, e); 2914Assert.Same(control, sender); 2915Assert.Same(eventArgs, e); 2998Assert.Same(control, sender); 2999Assert.Same(eventArgs, e); 3024Assert.Same(control, sender); 3025Assert.Same(eventArgs, e); 3050Assert.Same(control, sender); 3051Assert.Same(eventArgs, e); 3076Assert.Same(control, sender); 3077Assert.Same(eventArgs, e); 3107Assert.Same(control, sender); 3108Assert.Same(eventArgs, e); 3143Assert.Same(control, sender); 3144Assert.Same(eventArgs, e); 3167Assert.Same(control, sender); 3168Assert.Same(eventArgs, e); 3191Assert.Same(control, sender); 3192Assert.Same(eventArgs, e); 3198Assert.Same(control, sender); 3199Assert.Same(eventArgs, e); 3228Assert.Same(control, sender); 3229Assert.Same(eventArgs, e); 3235Assert.Same(control, sender); 3236Assert.Same(eventArgs, e); 3283Assert.Same(control, sender); 3284Assert.Same(eventArgs, e); 3290Assert.Same(control, sender); 3291Assert.Same(eventArgs, e); 3324Assert.Same(control, sender); 3325Assert.Same(eventArgs, e); 3348Assert.Same(control, sender); 3349Assert.Same(eventArgs, e); 3372Assert.Same(control, sender); 3373Assert.Same(eventArgs, e); 3398Assert.Same(control, sender); 3399Assert.Same(eventArgs, e); 3424Assert.Same(control, sender); 3425Assert.Same(eventArgs, e); 3450Assert.Same(control, sender); 3451Assert.Same(eventArgs, e); 3476Assert.Same(control, sender); 3477Assert.Same(eventArgs, e); 3502Assert.Same(control, sender); 3503Assert.Same(eventArgs, e); 3528Assert.Same(control, sender); 3529Assert.Same(eventArgs, e); 3554Assert.Same(control, sender); 3555Assert.Same(eventArgs, e); 3580Assert.Same(control, sender); 3581Assert.Same(eventArgs, e); 3606Assert.Same(control, sender); 3607Assert.Same(eventArgs, e); 3632Assert.Same(control, sender); 3633Assert.Same(eventArgs, e); 3653Assert.Same(control, sender); 3654Assert.Same(eventArgs, e); 3679Assert.Same(control, sender); 3680Assert.Same(eventArgs, e); 3714Assert.Same(control, sender); 3715Assert.Same(eventArgs, e); 3744Assert.Same(control, sender); 3745Assert.Same(eventArgs, e); 3779Assert.Same(control, sender); 3780Assert.Same(eventArgs, e); 3818Assert.Same(control, sender); 3819Assert.Same(eventArgs, e); 3866Assert.Same(control, sender); 3867Assert.Same(eventArgs, e); 3992Assert.Same(control, sender); 3993Assert.Same(eventArgs, e); 3999Assert.Same(parent, sender); 4038Assert.Same(control, sender); 4039Assert.Same(eventArgs, e); 4123Assert.Same(control, sender); 4124Assert.Same(eventArgs, e); 4130Assert.Same(parent, sender); 4181Assert.Same(control, sender); 4182Assert.Same(eventArgs, e); 4205Assert.Same(control, sender); 4206Assert.Same(eventArgs, e); 4233Assert.Same(control, sender); 4234Assert.Same(eventArgs, e); 4257Assert.Same(control, sender); 4258Assert.Same(eventArgs, e); 4286Assert.Same(control, sender); 4287Assert.Same(eventArgs, e); 4310Assert.Same(control, sender); 4311Assert.Same(eventArgs, e); 4339Assert.Same(control, sender); 4340Assert.Same(eventArgs, e); 4363Assert.Same(control, sender); 4364Assert.Same(eventArgs, e); 4392Assert.Same(control, sender); 4393Assert.Same(eventArgs, e); 4416Assert.Same(control, sender); 4417Assert.Same(eventArgs, e); 4444Assert.Same(control, sender); 4445Assert.Same(eventArgs, e); 4468Assert.Same(control, sender); 4469Assert.Same(eventArgs, e); 4497Assert.Same(control, sender); 4498Assert.Same(eventArgs, e); 4521Assert.Same(control, sender); 4522Assert.Same(eventArgs, e); 4549Assert.Same(control, sender); 4550Assert.Same(eventArgs, e); 4573Assert.Same(control, sender); 4574Assert.Same(eventArgs, e); 4601Assert.Same(control, sender); 4602Assert.Same(eventArgs, e); 4788Assert.Same(control, sender); 4789Assert.Same(eventArgs, e); 4813Assert.Same(control, sender); 4814Assert.Same(eventArgs, e); 4841Assert.Same(control, sender); 4842Assert.Same(eventArgs, e); 4848Assert.Same(control, sender); 4849Assert.Same(control, e.AffectedControl); 4886Assert.Same(control, sender); 4887Assert.Same(eventArgs, e); 4893Assert.Same(control, sender); 4894Assert.Same(control, e.AffectedControl); 4937Assert.Same(control, sender); 4938Assert.Same(eventArgs, e); 4975Assert.Same(control, sender); 4976Assert.Same(eventArgs, e); 5043Assert.Same(control, sender); 5044Assert.Same(eventArgs, e); 5049Assert.Same(child1, sender); 5050Assert.Same(eventArgs, e); 5055Assert.Same(child2, sender); 5056Assert.Same(eventArgs, e); 5096Assert.Same(control, sender); 5097Assert.Same(eventArgs, e); 5102Assert.Same(child1, sender); 5103Assert.Same(eventArgs, e); 5108Assert.Same(child2, sender); 5109Assert.Same(eventArgs, e); 5136Assert.Same(control, sender); 5137Assert.Same(eventArgs, e); 5163Assert.Same(control, sender); 5164Assert.Same(eventArgs, e); 5170Assert.Same(control, sender); 5171Assert.Same(EventArgs.Empty, e); 5220Assert.Same(control, sender); 5221Assert.Same(eventArgs, e); 5227Assert.Same(control, sender); 5228Assert.Same(EventArgs.Empty, e); 5275Assert.Same(control, sender); 5276Assert.Same(eventArgs, e); 5299Assert.Same(control, sender); 5300Assert.Same(eventArgs, e); 5333Assert.Same(control, sender); 5334Assert.Same(eventArgs, e); 5371Assert.Same(control, sender); 5372Assert.Same(eventArgs, e); 5377Assert.Same(child1, sender); 5378Assert.Same(EventArgs.Empty, e); 5383Assert.Same(child2, sender); 5384Assert.Same(EventArgs.Empty, e); 5417Assert.Same(control, sender); 5418Assert.Same(eventArgs, e); 5441Assert.Same(control, sender); 5442Assert.Same(eventArgs, e); 5465Assert.Same(control, sender); 5466Assert.Same(eventArgs, e); 5489Assert.Same(control, sender); 5490Assert.Same(eventArgs, e); 5520Assert.Same(control, sender); 5521Assert.Same(eventArgs, e); 5556Assert.Same(control, sender); 5557Assert.Same(eventArgs, e); 5587Assert.Same(control, sender); 5588Assert.Same(eventArgs, e); 5637Assert.Same(control, sender); 5638Assert.Same(eventArgs, e); 5683Assert.Same(control, sender); 5684Assert.Same(eventArgs, e); 5736Assert.Same(control, sender); 5737Assert.Same(eventArgs, e); 5742Assert.Same(grandchild1, sender); 5743Assert.Same(eventArgs, e); 5750Assert.Same(child1, sender); 5751Assert.Same(eventArgs, e); 5758Assert.Same(child2, sender); 5759Assert.Same(eventArgs, e); 5818Assert.Same(control, sender); 5819Assert.Same(eventArgs, e);
System\Windows\Forms\ControlTests.Internals.cs (2)
116Assert.Same(control, sender); 117Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ControlTests.Methods.cs (494)
146Assert.Same(parent, sender); 147Assert.Same(child2, e.AffectedControl); 188Assert.Same(parent, sender); 189Assert.Same(child2, e.AffectedControl); 243Assert.Same(parent, sender); 244Assert.Same(child2, e.AffectedControl); 310Assert.Same(parent, sender); 311Assert.Same(child2, e.AffectedControl); 407Assert.Same(control, instance.Owner); 467Assert.Same(region, control.Region); 580Assert.Same(control, sender); 581Assert.Same(EventArgs.Empty, e); 614Assert.Same(control, controls.Owner); 654Assert.Same(region, control.Region); 740Assert.Same(control, sender); 741Assert.Same(EventArgs.Empty, e); 854Assert.Same(parent, control.Parent); 876Assert.Same(region, control.Region); 881Assert.Same(region, control.Region); 888Assert.Same(region, control.Region); 934Assert.Same(control, sender); 935Assert.Same(EventArgs.Empty, e); 1423Assert.Same(parent, control.Parent); 1434Assert.Same(parent, control.Parent); 1552Assert.Same(control, child1.Parent); 1553Assert.Same(control, child2.Parent); 1573Assert.Same(control, child1.Parent); 1574Assert.Same(control, child2.Parent); 1658Assert.Same(binding, Assert.Single(control.DataBindings)); 1668Assert.Same(binding, Assert.Single(control.DataBindings)); 1985Assert.Same(control, Control.FromChildHandle(handle)); 2020Assert.Same(parent, Control.FromChildHandle(window.Handle)); 2040Assert.Same(control, Control.FromHandle(handle)); 2164Assert.Same(grandparent, control.GetContainerControl()); 2165Assert.Same(grandparent, parent.GetContainerControl()); 2166Assert.Same(grandparent, grandparent.GetContainerControl()); 2181Assert.Same(grandparent, control.GetContainerControl()); 2182Assert.Same(grandparent, grandparent.Panel1.GetContainerControl()); 2183Assert.Same(greatGrandparent, grandparent.GetContainerControl()); 2203Assert.Same(greatGrandparent, control.GetContainerControl()); 2204Assert.Same(greatGrandparent, parent.GetContainerControl()); 2205Assert.Same(greatGrandparent, grandparent.GetContainerControl()); 2225Assert.Same(greatGrandparent, control.GetContainerControl()); 2226Assert.Same(greatGrandparent, parent.GetContainerControl()); 2227Assert.Same(greatGrandparent, grandparent.GetContainerControl()); 2919Assert.Same(control, sender); 2920Assert.Same(EventArgs.Empty, e); 3032Assert.Same(control, sender); 3073Assert.Same(control, sender); 3147Assert.Same(control, sender); 3191Assert.Same(control, sender); 3285Assert.Same(control, sender); 3326Assert.Same(control, sender); 3426Assert.Same(control, sender); 3467Assert.Same(control, sender); 3563Assert.Same(control, sender); 3604Assert.Same(control, sender); 3706Assert.Same(control, sender); 3747Assert.Same(control, sender); 4189Assert.Same(control, sender); 4190Assert.Same(eventArgs, e); 4196Assert.Same(otherControl, sender); 4197Assert.Same(eventArgs, e); 4229Assert.Same(control, sender); 4230Assert.Same(eventArgs, e); 4236Assert.Same(otherControl, sender); 4237Assert.Same(eventArgs, e); 4271Assert.Same(otherControl, sender); 4272Assert.Same(eventArgs, e); 4323Assert.Same(otherControlParent, sender); 4539Assert.Same(control, sender); 4605Assert.Same(control, sender); 4635Assert.Same(control, sender); 4705Assert.Same(control, sender); 4767Assert.Same(control, sender); 4796Assert.Same(control, sender); 4825Assert.Same(control, sender); 4866Assert.Same(control, sender); 4874Assert.Same(parent, sender); 4875Assert.Same(control, e.AffectedControl); 4909Assert.Same(control, sender); 4936Assert.Same(control, sender); 5020Assert.Same(control, sender); 5021Assert.Same(affectedControl, e.AffectedControl); 5050Assert.Same(control, sender); 5051Assert.Same(affectedControl, e.AffectedControl); 5080Assert.Same(control, sender); 5081Assert.Same(affectedControl, e.AffectedControl); 5131Assert.Same(control, sender); 5132Assert.Same(affectedControl, e.AffectedControl); 5139Assert.Same(parent, sender); 5140Assert.Same(control, e.AffectedControl); 5184Assert.Same(control, sender); 5185Assert.Same(affectedControl, e.AffectedControl); 5210Assert.Same(control, sender); 5211Assert.Same(affectedControl, e.AffectedControl); 5702Assert.Same(control, sender); 5711Assert.Same(control, sender); 5719Assert.Same(control, sender); 5749Assert.Same(control, sender); 5758Assert.Same(control, sender); 5766Assert.Same(control, sender); 5806Assert.Same(control, sender); 5815Assert.Same(control, sender); 5823Assert.Same(control, sender); 5851Assert.Same(control, sender); 5993Assert.Same(control, sender); 6002Assert.Same(control, sender); 6010Assert.Same(control, sender); 6040Assert.Same(control, sender); 6049Assert.Same(control, sender); 6057Assert.Same(control, sender); 6097Assert.Same(control, sender); 6106Assert.Same(control, sender); 6114Assert.Same(control, sender); 6587Assert.Same(control, sender); 6588Assert.Same(affectedControl, e.AffectedControl); 6589Assert.Same(affectedProperty, e.AffectedProperty); 6615Assert.Same(control, sender); 6616Assert.Same(affectedControl, e.AffectedControl); 6617Assert.Same(affectedProperty, e.AffectedProperty); 6665Assert.Same(control, sender); 6666Assert.Same(affectedControl, e.AffectedControl); 6667Assert.Same(affectedProperty, e.AffectedProperty); 6695Assert.Same(control, sender); 6696Assert.Same(affectedControl, e.AffectedControl); 6697Assert.Same(affectedProperty, e.AffectedProperty); 6831Assert.Same(control, sender); 6832Assert.Same(affectedControl, e.AffectedControl); 6833Assert.Same(affectedProperty, e.AffectedProperty); 7032Assert.Same(parent, sender); 7033Assert.Same(child1, e.AffectedControl); 7074Assert.Same(parent, sender); 7075Assert.Same(child1, e.AffectedControl); 7129Assert.Same(parent, sender); 7130Assert.Same(child1, e.AffectedControl); 7196Assert.Same(parent, sender); 7197Assert.Same(child1, e.AffectedControl); 7379Assert.Same(control, sender); 7380Assert.Same(control, e.AffectedControl); 7389Assert.Same(control, sender); 7390Assert.Same(EventArgs.Empty, e); 7398Assert.Same(control, sender); 7399Assert.Same(EventArgs.Empty, e); 7407Assert.Same(control, sender); 7408Assert.Same(EventArgs.Empty, e); 7490Assert.Same(control, sender); 7491Assert.Same(control, e.AffectedControl); 7500Assert.Same(control, sender); 7501Assert.Same(EventArgs.Empty, e); 7509Assert.Same(control, sender); 7510Assert.Same(EventArgs.Empty, e); 7518Assert.Same(control, sender); 7519Assert.Same(EventArgs.Empty, e); 7588Assert.Same(control, sender); 7589Assert.Same(control, e.AffectedControl); 7598Assert.Same(control, sender); 7599Assert.Same(EventArgs.Empty, e); 7607Assert.Same(control, sender); 7608Assert.Same(EventArgs.Empty, e); 7616Assert.Same(control, sender); 7617Assert.Same(EventArgs.Empty, e); 7691Assert.Same(control, sender); 7692Assert.Same(control, e.AffectedControl); 7702Assert.Same(control, sender); 7703Assert.Same(EventArgs.Empty, e); 7712Assert.Same(control, sender); 7713Assert.Same(EventArgs.Empty, e); 7722Assert.Same(control, sender); 7723Assert.Same(EventArgs.Empty, e); 7732Assert.Same(parent, sender); 7733Assert.Same(control, e.AffectedControl); 7822Assert.Same(control, sender); 7823Assert.Same(control, e.AffectedControl); 7832Assert.Same(control, sender); 7833Assert.Same(EventArgs.Empty, e); 7841Assert.Same(control, sender); 7842Assert.Same(EventArgs.Empty, e); 7850Assert.Same(control, sender); 7851Assert.Same(EventArgs.Empty, e); 7949Assert.Same(control, sender); 7950Assert.Same(control, e.AffectedControl); 7960Assert.Same(control, sender); 7961Assert.Same(EventArgs.Empty, e); 7970Assert.Same(control, sender); 7971Assert.Same(EventArgs.Empty, e); 7980Assert.Same(control, sender); 7981Assert.Same(EventArgs.Empty, e); 7990Assert.Same(parent, sender); 7991Assert.Same(control, e.AffectedControl); 8166Assert.Same(control, sender); 8167Assert.Same(control, e.AffectedControl); 8176Assert.Same(control, sender); 8177Assert.Same(EventArgs.Empty, e); 8185Assert.Same(control, sender); 8186Assert.Same(EventArgs.Empty, e); 8194Assert.Same(control, sender); 8195Assert.Same(EventArgs.Empty, e); 8277Assert.Same(control, sender); 8278Assert.Same(control, e.AffectedControl); 8287Assert.Same(control, sender); 8288Assert.Same(EventArgs.Empty, e); 8296Assert.Same(control, sender); 8297Assert.Same(EventArgs.Empty, e); 8305Assert.Same(control, sender); 8306Assert.Same(EventArgs.Empty, e); 8375Assert.Same(control, sender); 8376Assert.Same(control, e.AffectedControl); 8385Assert.Same(control, sender); 8386Assert.Same(EventArgs.Empty, e); 8394Assert.Same(control, sender); 8395Assert.Same(EventArgs.Empty, e); 8403Assert.Same(control, sender); 8404Assert.Same(EventArgs.Empty, e); 8548Assert.Same(control, sender); 8549Assert.Same(control, e.AffectedControl); 8559Assert.Same(control, sender); 8560Assert.Same(EventArgs.Empty, e); 8569Assert.Same(control, sender); 8570Assert.Same(EventArgs.Empty, e); 8579Assert.Same(control, sender); 8580Assert.Same(EventArgs.Empty, e); 8589Assert.Same(parent, sender); 8590Assert.Same(control, e.AffectedControl); 8679Assert.Same(control, sender); 8680Assert.Same(control, e.AffectedControl); 8689Assert.Same(control, sender); 8690Assert.Same(EventArgs.Empty, e); 8698Assert.Same(control, sender); 8699Assert.Same(EventArgs.Empty, e); 8707Assert.Same(control, sender); 8708Assert.Same(EventArgs.Empty, e); 8806Assert.Same(control, sender); 8807Assert.Same(control, e.AffectedControl); 8817Assert.Same(control, sender); 8818Assert.Same(EventArgs.Empty, e); 8827Assert.Same(control, sender); 8828Assert.Same(EventArgs.Empty, e); 8837Assert.Same(control, sender); 8838Assert.Same(EventArgs.Empty, e); 8847Assert.Same(parent, sender); 8848Assert.Same(control, e.AffectedControl); 8958Assert.Same(control, sender); 8959Assert.Same(EventArgs.Empty, e); 8969Assert.Same(control, sender); 8970Assert.Same(EventArgs.Empty, e); 8980Assert.Same(control, sender); 8981Assert.Same(control, e.AffectedControl); 8990Assert.Same(control, sender); 8991Assert.Same(EventArgs.Empty, e); 8999Assert.Same(control, sender); 9000Assert.Same(EventArgs.Empty, e); 9008Assert.Same(control, sender); 9009Assert.Same(EventArgs.Empty, e); 9100Assert.Same(control, sender); 9101Assert.Same(EventArgs.Empty, e); 9111Assert.Same(control, sender); 9112Assert.Same(EventArgs.Empty, e); 9122Assert.Same(control, sender); 9123Assert.Same(control, e.AffectedControl); 9132Assert.Same(control, sender); 9133Assert.Same(EventArgs.Empty, e); 9141Assert.Same(control, sender); 9142Assert.Same(EventArgs.Empty, e); 9150Assert.Same(control, sender); 9151Assert.Same(EventArgs.Empty, e); 9229Assert.Same(control, sender); 9230Assert.Same(EventArgs.Empty, e); 9240Assert.Same(control, sender); 9241Assert.Same(EventArgs.Empty, e); 9251Assert.Same(control, sender); 9252Assert.Same(control, e.AffectedControl); 9261Assert.Same(control, sender); 9262Assert.Same(EventArgs.Empty, e); 9270Assert.Same(control, sender); 9271Assert.Same(EventArgs.Empty, e); 9279Assert.Same(control, sender); 9280Assert.Same(EventArgs.Empty, e); 9347Assert.Same(control, sender); 9348Assert.Same(EventArgs.Empty, e); 9358Assert.Same(control, sender); 9359Assert.Same(EventArgs.Empty, e); 9369Assert.Same(control, sender); 9370Assert.Same(control, e.AffectedControl); 9380Assert.Same(control, sender); 9381Assert.Same(EventArgs.Empty, e); 9390Assert.Same(control, sender); 9391Assert.Same(EventArgs.Empty, e); 9400Assert.Same(control, sender); 9401Assert.Same(EventArgs.Empty, e); 9410Assert.Same(parent, sender); 9411Assert.Same(control, e.AffectedControl); 9521Assert.Same(control, sender); 9522Assert.Same(EventArgs.Empty, e); 9532Assert.Same(control, sender); 9533Assert.Same(EventArgs.Empty, e); 9543Assert.Same(control, sender); 9544Assert.Same(control, e.AffectedControl); 9553Assert.Same(control, sender); 9554Assert.Same(EventArgs.Empty, e); 9562Assert.Same(control, sender); 9563Assert.Same(EventArgs.Empty, e); 9571Assert.Same(control, sender); 9572Assert.Same(EventArgs.Empty, e); 9660Assert.Same(control, sender); 9661Assert.Same(EventArgs.Empty, e); 9671Assert.Same(control, sender); 9672Assert.Same(EventArgs.Empty, e); 9682Assert.Same(control, sender); 9683Assert.Same(control, e.AffectedControl); 9693Assert.Same(control, sender); 9694Assert.Same(EventArgs.Empty, e); 9703Assert.Same(control, sender); 9704Assert.Same(EventArgs.Empty, e); 9713Assert.Same(control, sender); 9714Assert.Same(EventArgs.Empty, e); 9723Assert.Same(parent, sender); 9724Assert.Same(control, e.AffectedControl); 9808Assert.Same(control, sender); 9809Assert.Same(control, e.AffectedControl); 9842Assert.Same(control, sender); 9843Assert.Same(control, e.AffectedControl); 9941Assert.Same(control, sender); 9942Assert.Same(EventArgs.Empty, e); 9948Assert.Same(control, sender); 9949Assert.Same(EventArgs.Empty, e); 10509Assert.Same(control, sender); 10510Assert.Same(control, e.AffectedControl); 10519Assert.Same(control, sender); 10520Assert.Same(EventArgs.Empty, e); 10528Assert.Same(control, sender); 10529Assert.Same(EventArgs.Empty, e); 10537Assert.Same(control, sender); 10538Assert.Same(EventArgs.Empty, e); 10601Assert.Same(control, sender); 10602Assert.Same(control, e.AffectedControl); 10611Assert.Same(control, sender); 10612Assert.Same(EventArgs.Empty, e); 10620Assert.Same(control, sender); 10621Assert.Same(EventArgs.Empty, e); 10629Assert.Same(control, sender); 10630Assert.Same(EventArgs.Empty, e); 10685Assert.Same(control, sender); 10686Assert.Same(control, e.AffectedControl); 10695Assert.Same(control, sender); 10696Assert.Same(EventArgs.Empty, e); 10704Assert.Same(control, sender); 10705Assert.Same(EventArgs.Empty, e); 10713Assert.Same(control, sender); 10714Assert.Same(EventArgs.Empty, e); 10949Assert.Same(control, sender); 10950Assert.Same(control, e.AffectedControl); 10959Assert.Same(control, sender); 10960Assert.Same(EventArgs.Empty, e); 10968Assert.Same(control, sender); 10969Assert.Same(EventArgs.Empty, e); 10977Assert.Same(control, sender); 10978Assert.Same(EventArgs.Empty, e); 11060Assert.Same(control, sender); 11061Assert.Same(control, e.AffectedControl); 11070Assert.Same(control, sender); 11071Assert.Same(EventArgs.Empty, e); 11079Assert.Same(control, sender); 11080Assert.Same(EventArgs.Empty, e); 11088Assert.Same(control, sender); 11089Assert.Same(EventArgs.Empty, e); 11158Assert.Same(control, sender); 11159Assert.Same(control, e.AffectedControl); 11168Assert.Same(control, sender); 11169Assert.Same(EventArgs.Empty, e); 11177Assert.Same(control, sender); 11178Assert.Same(EventArgs.Empty, e); 11186Assert.Same(control, sender); 11187Assert.Same(EventArgs.Empty, e); 11248Assert.Same(control, sender); 11249Assert.Same(control, e.AffectedControl); 11259Assert.Same(control, sender); 11260Assert.Same(EventArgs.Empty, e); 11269Assert.Same(control, sender); 11270Assert.Same(EventArgs.Empty, e); 11279Assert.Same(control, sender); 11280Assert.Same(EventArgs.Empty, e); 11289Assert.Same(parent, sender); 11290Assert.Same(control, e.AffectedControl); 11383Assert.Same(control, sender); 11384Assert.Same(control, e.AffectedControl); 11393Assert.Same(control, sender); 11394Assert.Same(EventArgs.Empty, e); 11402Assert.Same(control, sender); 11403Assert.Same(EventArgs.Empty, e); 11411Assert.Same(control, sender); 11412Assert.Same(EventArgs.Empty, e); 11487Assert.Same(control, sender); 11488Assert.Same(control, e.AffectedControl); 11498Assert.Same(control, sender); 11499Assert.Same(EventArgs.Empty, e); 11508Assert.Same(control, sender); 11509Assert.Same(EventArgs.Empty, e); 11518Assert.Same(control, sender); 11519Assert.Same(EventArgs.Empty, e); 11528Assert.Same(parent, sender); 11529Assert.Same(control, e.AffectedControl); 11644Assert.Same(control, sender); 11645Assert.Same(control, e.AffectedControl); 11654Assert.Same(control, sender); 11655Assert.Same(EventArgs.Empty, e); 11663Assert.Same(control, sender); 11664Assert.Same(EventArgs.Empty, e); 11672Assert.Same(control, sender); 11673Assert.Same(EventArgs.Empty, e); 11734Assert.Same(control, sender); 11735Assert.Same(control, e.AffectedControl); 11745Assert.Same(control, sender); 11746Assert.Same(EventArgs.Empty, e); 11755Assert.Same(control, sender); 11756Assert.Same(EventArgs.Empty, e); 11765Assert.Same(control, sender); 11766Assert.Same(EventArgs.Empty, e); 11775Assert.Same(parent, sender); 11776Assert.Same(control, e.AffectedControl); 11881Assert.Same(control, sender); 11882Assert.Same(control, e.AffectedControl); 11891Assert.Same(control, sender); 11892Assert.Same(EventArgs.Empty, e); 11900Assert.Same(control, sender); 11901Assert.Same(EventArgs.Empty, e); 11909Assert.Same(control, sender); 11910Assert.Same(EventArgs.Empty, e); 11985Assert.Same(control, sender); 11986Assert.Same(control, e.AffectedControl); 11996Assert.Same(control, sender); 11997Assert.Same(EventArgs.Empty, e); 12006Assert.Same(control, sender); 12007Assert.Same(EventArgs.Empty, e); 12016Assert.Same(control, sender); 12017Assert.Same(EventArgs.Empty, e); 12026Assert.Same(parent, sender); 12027Assert.Same(control, e.AffectedControl); 12119Assert.Same(control, sender); 12120Assert.Same(EventArgs.Empty, e); 12146Assert.Same(control, sender); 12147Assert.Same(EventArgs.Empty, e); 12410Assert.Same(control, sender); 12411Assert.Same(EventArgs.Empty, e); 12441Assert.Same(control, sender); 12442Assert.Same(EventArgs.Empty, e); 12683Assert.Same(control, sender); 12684Assert.Same(EventArgs.Empty, e); 12726Assert.Same(control, sender); 12727Assert.Same(EventArgs.Empty, e); 12765Assert.Same(control, sender); 12766Assert.Same(EventArgs.Empty, e); 12808Assert.Same(control, sender); 12809Assert.Same(EventArgs.Empty, e); 13112Assert.Same(control, sender); 13113Assert.Same(EventArgs.Empty, e); 13143Assert.Same(control, sender); 13144Assert.Same(EventArgs.Empty, e); 13475Assert.Same(control, sender); 13511Assert.Same(control, sender); 13585Assert.Same(control, sender); 13629Assert.Same(control, sender); 13705Assert.Same(control, sender); 13706Assert.Same(EventArgs.Empty, e); 13736Assert.Same(control, sender); 13737Assert.Same(EventArgs.Empty, e); 13810Assert.Same(control, sender); 13846Assert.Same(control, sender); 13916Assert.Same(control, sender); 13960Assert.Same(control, sender); 14032Assert.Same(control, sender); 14033Assert.Same(EventArgs.Empty, e); 14063Assert.Same(control, sender); 14064Assert.Same(EventArgs.Empty, e); 14101Assert.Same(control, sender); 14102Assert.Same(EventArgs.Empty, e); 14113Assert.Same(control, parent.ActiveControl); 14149Assert.Same(control, active); 14157Assert.Same(control, sender); 14158Assert.Same(EventArgs.Empty, e); 14217Assert.Same(control, sender); 14218Assert.Same(EventArgs.Empty, e); 14229Assert.Same(control, parent.ActiveControl); 14230Assert.Same(parent, grandparent.ActiveControl); 14261Assert.Same(control, sender); 14262Assert.Same(EventArgs.Empty, e); 14273Assert.Same(control, parent.ActiveControl); 14305Assert.Same(control, sender); 14306Assert.Same(EventArgs.Empty, e); 14317Assert.Same(control, parent.ActiveControl); 14318Assert.Same(parent, grandparent.ActiveControl); 14349Assert.Same(control, sender); 14350Assert.Same(EventArgs.Empty, e); 14361Assert.Same(control, parent.ActiveControl);
System\Windows\Forms\ControlTests.Properties.cs (787)
29Assert.Same(accessibleObject, control.AccessibilityObject); 31Assert.Same(control, accessibleObject.Owner); 47Assert.Same(accessibleObject, control.AccessibilityObject); 52Assert.Same(control, accessibleObject.Owner); 73Assert.Same(expected, control.AccessibilityObject); 74Assert.Same(control.AccessibilityObject, control.AccessibilityObject); 90Assert.Same(controlAccessibleObject, control.AccessibilityObject); 91Assert.Same(control.AccessibilityObject, control.AccessibilityObject); 420Assert.Same(parent, sender); 421Assert.Same(control, e.AffectedControl); 469Assert.Same(parent, sender); 470Assert.Same(control, e.AffectedControl); 567Assert.Same(parent, sender); 568Assert.Same(control, e.AffectedControl); 690Assert.Same(parent, sender); 691Assert.Same(control, e.AffectedControl); 699Assert.Same(grandparent, sender); 700Assert.Same(control, e.AffectedControl); 834Assert.Same(parent, sender); 835Assert.Same(control, e.AffectedControl); 956Assert.Same(parent, sender); 957Assert.Same(control, e.AffectedControl); 1018Assert.Same(parent, sender); 1019Assert.Same(control, e.AffectedControl); 1130Assert.Same(parent, sender); 1131Assert.Same(control, e.AffectedControl); 1197Assert.Same(control, sender); 1198Assert.Same(EventArgs.Empty, e); 1381Assert.Same(control, sender); 1382Assert.Same(EventArgs.Empty, e); 1448Assert.Same(control, sender); 1449Assert.Same(EventArgs.Empty, e); 1456Assert.Same(child1, sender); 1457Assert.Same(EventArgs.Empty, e); 1464Assert.Same(child2, sender); 1465Assert.Same(EventArgs.Empty, e); 1534Assert.Same(control, sender); 1535Assert.Same(EventArgs.Empty, e); 1540Assert.Same(child1, sender); 1541Assert.Same(EventArgs.Empty, e); 1546Assert.Same(child2, sender); 1547Assert.Same(EventArgs.Empty, e); 1641Assert.Same(value, control.BackgroundImage); 1646Assert.Same(value, control.BackgroundImage); 1670Assert.Same(value, control.BackgroundImage); 1678Assert.Same(value, control.BackgroundImage); 1696Assert.Same(value, control.BackgroundImage); 1702Assert.Same(value, control.BackgroundImage); 1726Assert.Same(value, control.BackgroundImage); 1727Assert.Same(image1, child1.BackgroundImage); 1728Assert.Same(image2, child2.BackgroundImage); 1732Assert.Same(value, control.BackgroundImage); 1733Assert.Same(image1, child1.BackgroundImage); 1734Assert.Same(image2, child2.BackgroundImage); 1744Assert.Same(control, sender); 1745Assert.Same(EventArgs.Empty, e); 1753Assert.Same(image1, control.BackgroundImage); 1758Assert.Same(image1, control.BackgroundImage); 1764Assert.Same(image2, control.BackgroundImage); 1775Assert.Same(image1, control.BackgroundImage); 1795Assert.Same(value, control.BackgroundImage); 1819Assert.Same(control, sender); 1820Assert.Same(EventArgs.Empty, e); 1825Assert.Same(child1, sender); 1826Assert.Same(EventArgs.Empty, e); 1831Assert.Same(child2, sender); 1832Assert.Same(EventArgs.Empty, e); 1842Assert.Same(image1, control.BackgroundImage); 1851Assert.Same(image1, control.BackgroundImage); 1861Assert.Same(image2, control.BackgroundImage); 1882Assert.Same(image1, control.BackgroundImage); 1912Assert.Same(control, sender); 1913Assert.Same(EventArgs.Empty, e); 1918Assert.Same(child1, sender); 1919Assert.Same(EventArgs.Empty, e); 1924Assert.Same(child2, sender); 1925Assert.Same(EventArgs.Empty, e); 1935Assert.Same(image1, control.BackgroundImage); 1936Assert.Same(childBackgroundImage1, child1.BackgroundImage); 1937Assert.Same(childBackgroundImage2, child2.BackgroundImage); 1944Assert.Same(image1, control.BackgroundImage); 1945Assert.Same(childBackgroundImage1, child1.BackgroundImage); 1946Assert.Same(childBackgroundImage2, child2.BackgroundImage); 1954Assert.Same(image2, control.BackgroundImage); 1955Assert.Same(childBackgroundImage1, child1.BackgroundImage); 1956Assert.Same(childBackgroundImage2, child2.BackgroundImage); 1964Assert.Same(childBackgroundImage1, child1.BackgroundImage); 1965Assert.Same(childBackgroundImage2, child2.BackgroundImage); 1975Assert.Same(image1, control.BackgroundImage); 1976Assert.Same(childBackgroundImage1, child1.BackgroundImage); 1977Assert.Same(childBackgroundImage2, child2.BackgroundImage); 2077Assert.Same(control, sender); 2078Assert.Same(EventArgs.Empty, e); 2150Assert.Same(bindingContext, control.BindingContext); 2182Assert.Same(value, control.BindingContext); 2187Assert.Same(value, control.BindingContext); 2201Assert.Same(value, control.BindingContext); 2206Assert.Same(value, control.BindingContext); 2217Assert.Same(control, sender); 2218Assert.Same(EventArgs.Empty, e); 2226Assert.Same(context1, control.BindingContext); 2231Assert.Same(context1, control.BindingContext); 2237Assert.Same(context2, control.BindingContext); 2248Assert.Same(context1, control.BindingContext); 2266Assert.Same(control, sender); 2267Assert.Same(EventArgs.Empty, e); 2272Assert.Same(child1, sender); 2273Assert.Same(EventArgs.Empty, e); 2278Assert.Same(child2, sender); 2279Assert.Same(EventArgs.Empty, e); 2289Assert.Same(context1, control.BindingContext); 2290Assert.Same(context1, child1.BindingContext); 2291Assert.Same(context1, child2.BindingContext); 2298Assert.Same(context1, control.BindingContext); 2299Assert.Same(context1, child1.BindingContext); 2300Assert.Same(context1, child2.BindingContext); 2308Assert.Same(context2, control.BindingContext); 2309Assert.Same(context2, child1.BindingContext); 2310Assert.Same(context2, child2.BindingContext); 2329Assert.Same(context1, control.BindingContext); 2330Assert.Same(context1, child1.BindingContext); 2331Assert.Same(context1, child2.BindingContext); 2359Assert.Same(control, sender); 2360Assert.Same(EventArgs.Empty, e); 2365Assert.Same(child1, sender); 2366Assert.Same(EventArgs.Empty, e); 2371Assert.Same(child2, sender); 2372Assert.Same(EventArgs.Empty, e); 2382Assert.Same(context1, control.BindingContext); 2383Assert.Same(childContext1, child1.BindingContext); 2384Assert.Same(childContext2, child2.BindingContext); 2391Assert.Same(context1, control.BindingContext); 2392Assert.Same(childContext1, child1.BindingContext); 2393Assert.Same(childContext2, child2.BindingContext); 2401Assert.Same(context2, control.BindingContext); 2402Assert.Same(childContext1, child1.BindingContext); 2403Assert.Same(childContext2, child2.BindingContext); 2411Assert.Same(childContext1, child1.BindingContext); 2412Assert.Same(childContext2, child2.BindingContext); 2422Assert.Same(context1, control.BindingContext); 2423Assert.Same(childContext1, child1.BindingContext); 2424Assert.Same(childContext2, child2.BindingContext); 2441Assert.Same(control, sender); 2442Assert.Same(control, e.AffectedControl); 2451Assert.Same(control, sender); 2452Assert.Same(EventArgs.Empty, e); 2460Assert.Same(control, sender); 2461Assert.Same(EventArgs.Empty, e); 2469Assert.Same(control, sender); 2470Assert.Same(EventArgs.Empty, e); 2530Assert.Same(control, sender); 2531Assert.Same(control, e.AffectedControl); 2540Assert.Same(control, sender); 2541Assert.Same(EventArgs.Empty, e); 2549Assert.Same(control, sender); 2550Assert.Same(EventArgs.Empty, e); 2558Assert.Same(control, sender); 2559Assert.Same(EventArgs.Empty, e); 2615Assert.Same(control, sender); 2616Assert.Same(control, e.AffectedControl); 2625Assert.Same(control, sender); 2626Assert.Same(EventArgs.Empty, e); 2634Assert.Same(control, sender); 2635Assert.Same(EventArgs.Empty, e); 2643Assert.Same(control, sender); 2644Assert.Same(EventArgs.Empty, e); 2705Assert.Same(control, sender); 2706Assert.Same(control, e.AffectedControl); 2716Assert.Same(control, sender); 2717Assert.Same(EventArgs.Empty, e); 2726Assert.Same(control, sender); 2727Assert.Same(EventArgs.Empty, e); 2736Assert.Same(control, sender); 2737Assert.Same(EventArgs.Empty, e); 2746Assert.Same(parent, sender); 2747Assert.Same(control, e.AffectedControl); 2813Assert.Same(control, sender); 2814Assert.Same(control, e.AffectedControl); 2823Assert.Same(control, sender); 2824Assert.Same(EventArgs.Empty, e); 2832Assert.Same(control, sender); 2833Assert.Same(EventArgs.Empty, e); 2841Assert.Same(control, sender); 2842Assert.Same(EventArgs.Empty, e); 2917Assert.Same(control, sender); 2918Assert.Same(control, e.AffectedControl); 2928Assert.Same(control, sender); 2929Assert.Same(EventArgs.Empty, e); 2938Assert.Same(control, sender); 2939Assert.Same(EventArgs.Empty, e); 2948Assert.Same(control, sender); 2949Assert.Same(EventArgs.Empty, e); 2958Assert.Same(parent, sender); 2959Assert.Same(control, e.AffectedControl); 3254Assert.Same(control, sender); 3255Assert.Same(EventArgs.Empty, e); 3330Assert.Same(control, sender); 3331Assert.Same(control, e.AffectedControl); 3374Assert.Same(control, sender); 3375Assert.Same(control, e.AffectedControl); 3488Assert.Same(control, sender); 3489Assert.Same(EventArgs.Empty, e); 3495Assert.Same(control, sender); 3496Assert.Same(EventArgs.Empty, e); 3542Assert.Same(value, control.ContextMenuStrip); 3547Assert.Same(value, control.ContextMenuStrip); 3561Assert.Same(value, control.ContextMenuStrip); 3566Assert.Same(value, control.ContextMenuStrip); 3578Assert.Same(menu, control.ContextMenuStrip); 3593Assert.Same(menu1, control.ContextMenuStrip); 3596Assert.Same(menu2, control.ContextMenuStrip); 3599Assert.Same(menu2, control.ContextMenuStrip); 3609Assert.Same(control, sender); 3610Assert.Same(EventArgs.Empty, e); 3618Assert.Same(menu1, control.ContextMenuStrip); 3623Assert.Same(menu1, control.ContextMenuStrip); 3629Assert.Same(menu2, control.ContextMenuStrip); 3640Assert.Same(menu1, control.ContextMenuStrip); 3658Assert.Same(result, control.Controls); 3659Assert.Same(control.Controls, control.Controls); 3682Assert.Same(child, Assert.Single(control.Controls)); 3686Assert.Same(child, Assert.Single(control.Controls)); 3702Assert.Same(child, Assert.Single(control.Controls)); 3706Assert.Same(child, Assert.Single(control.Controls)); 3718Assert.Same(Cursors.WaitCursor, control.Cursor); 3722Assert.Same(Cursors.WaitCursor, control.Cursor); 3738Assert.Same(cursor1, control.Cursor); 3742Assert.Same(cursor2, control.Cursor); 3758Assert.Same(cursor1, control.Cursor); 3762Assert.Same(cursor2, control.Cursor); 3770Assert.Same(control.DefaultCursorResult, control.Cursor); 3774Assert.Same(cursor, control.Cursor); 3790Assert.Same(control.DefaultCursorResult, control.Cursor); 3794Assert.Same(cursor2, control.Cursor); 3812Assert.Same(value ?? Cursors.Default, control.Cursor); 3817Assert.Same(value ?? Cursors.Default, control.Cursor); 3835Assert.Same(value ?? Cursors.Default, control.Cursor); 3843Assert.Same(value ?? Cursors.Default, control.Cursor); 3861Assert.Same(value ?? Cursors.Default, control.Cursor); 3862Assert.Same(value ?? Cursors.Default, child1.Cursor); 3863Assert.Same(value ?? Cursors.Default, child2.Cursor); 3867Assert.Same(value ?? Cursors.Default, control.Cursor); 3868Assert.Same(value ?? Cursors.Default, child1.Cursor); 3869Assert.Same(value ?? Cursors.Default, child2.Cursor); 3891Assert.Same(value ?? Cursors.Default, control.Cursor); 3892Assert.Same(cursor1, child1.Cursor); 3893Assert.Same(cursor2, child2.Cursor); 3897Assert.Same(value ?? Cursors.Default, control.Cursor); 3898Assert.Same(cursor1, child1.Cursor); 3899Assert.Same(cursor2, child2.Cursor); 3909Assert.Same(control, sender); 3910Assert.Same(EventArgs.Empty, e); 3918Assert.Same(cursor1, control.Cursor); 3923Assert.Same(cursor1, control.Cursor); 3929Assert.Same(cursor2, control.Cursor); 3934Assert.Same(Cursors.Default, control.Cursor); 3940Assert.Same(cursor1, control.Cursor); 3958Assert.Same(control, sender); 3959Assert.Same(EventArgs.Empty, e); 3964Assert.Same(child1, sender); 3965Assert.Same(EventArgs.Empty, e); 3970Assert.Same(child2, sender); 3971Assert.Same(EventArgs.Empty, e); 3981Assert.Same(cursor1, control.Cursor); 3982Assert.Same(cursor1, child1.Cursor); 3983Assert.Same(cursor1, child2.Cursor); 3990Assert.Same(cursor1, control.Cursor); 3991Assert.Same(cursor1, child1.Cursor); 3992Assert.Same(cursor1, child2.Cursor); 4000Assert.Same(cursor2, control.Cursor); 4001Assert.Same(cursor2, child1.Cursor); 4002Assert.Same(cursor2, child2.Cursor); 4009Assert.Same(Cursors.Default, control.Cursor); 4010Assert.Same(Cursors.Default, child1.Cursor); 4011Assert.Same(Cursors.Default, child2.Cursor); 4021Assert.Same(cursor1, control.Cursor); 4022Assert.Same(cursor1, child1.Cursor); 4023Assert.Same(cursor1, child2.Cursor); 4051Assert.Same(control, sender); 4052Assert.Same(EventArgs.Empty, e); 4057Assert.Same(child1, sender); 4058Assert.Same(EventArgs.Empty, e); 4063Assert.Same(child2, sender); 4064Assert.Same(EventArgs.Empty, e); 4074Assert.Same(cursor1, control.Cursor); 4075Assert.Same(childCursor1, child1.Cursor); 4076Assert.Same(childCursor2, child2.Cursor); 4083Assert.Same(cursor1, control.Cursor); 4084Assert.Same(childCursor1, child1.Cursor); 4085Assert.Same(childCursor2, child2.Cursor); 4093Assert.Same(cursor2, control.Cursor); 4094Assert.Same(childCursor1, child1.Cursor); 4095Assert.Same(childCursor2, child2.Cursor); 4102Assert.Same(Cursors.Default, control.Cursor); 4103Assert.Same(childCursor1, child1.Cursor); 4104Assert.Same(childCursor2, child2.Cursor); 4114Assert.Same(cursor1, control.Cursor); 4115Assert.Same(childCursor1, child1.Cursor); 4116Assert.Same(childCursor2, child2.Cursor); 4193Assert.Same(parent, sender); 4194Assert.Same(control, e.AffectedControl); 4284Assert.Same(parent, sender); 4285Assert.Same(control, e.AffectedControl); 4390Assert.Same(control, sender); 4391Assert.Same(EventArgs.Empty, e); 4574Assert.Same(control, sender); 4575Assert.Same(EventArgs.Empty, e); 4619Assert.Same(control, sender); 4620Assert.Same(EventArgs.Empty, e); 4625Assert.Same(child1, sender); 4626Assert.Same(EventArgs.Empty, e); 4631Assert.Same(child2, sender); 4632Assert.Same(EventArgs.Empty, e); 4702Assert.Same(control, sender); 4703Assert.Same(EventArgs.Empty, e); 4708Assert.Same(child1, sender); 4709Assert.Same(EventArgs.Empty, e); 4714Assert.Same(child2, sender); 4715Assert.Same(EventArgs.Empty, e); 4807Assert.Same(font1, control.Font); 4811Assert.Same(font2, control.Font); 4831Assert.Same(font2, control.Font); 5026Assert.Same(control, sender); 5027Assert.Same(EventArgs.Empty, e); 5035Assert.Same(font1, control.Font); 5040Assert.Same(font1, control.Font); 5046Assert.Same(font2, control.Font); 5057Assert.Same(font1, control.Font); 5075Assert.Same(control, sender); 5076Assert.Same(EventArgs.Empty, e); 5081Assert.Same(child1, sender); 5082Assert.Same(EventArgs.Empty, e); 5087Assert.Same(child2, sender); 5088Assert.Same(EventArgs.Empty, e); 5098Assert.Same(font1, control.Font); 5099Assert.Same(font1, child1.Font); 5100Assert.Same(font1, child2.Font); 5107Assert.Same(font1, control.Font); 5108Assert.Same(font1, child1.Font); 5109Assert.Same(font1, child2.Font); 5117Assert.Same(font2, control.Font); 5118Assert.Same(font2, child1.Font); 5119Assert.Same(font2, child2.Font); 5138Assert.Same(font1, control.Font); 5139Assert.Same(font1, child1.Font); 5140Assert.Same(font1, child2.Font); 5168Assert.Same(control, sender); 5169Assert.Same(EventArgs.Empty, e); 5174Assert.Same(child1, sender); 5175Assert.Same(EventArgs.Empty, e); 5180Assert.Same(child2, sender); 5181Assert.Same(EventArgs.Empty, e); 5191Assert.Same(font1, control.Font); 5192Assert.Same(childFont1, child1.Font); 5193Assert.Same(childFont2, child2.Font); 5200Assert.Same(font1, control.Font); 5201Assert.Same(childFont1, child1.Font); 5202Assert.Same(childFont2, child2.Font); 5210Assert.Same(font2, control.Font); 5211Assert.Same(childFont1, child1.Font); 5212Assert.Same(childFont2, child2.Font); 5220Assert.Same(childFont1, child1.Font); 5221Assert.Same(childFont2, child2.Font); 5231Assert.Same(font1, control.Font); 5232Assert.Same(childFont1, child1.Font); 5233Assert.Same(childFont2, child2.Font); 5248Assert.Same(font, control.Font); 5256Assert.Same(font, control.Font); 5273Assert.Same(font, control.Font); 5281Assert.Same(font, control.Font); 5422Assert.Same(control, sender); 5423Assert.Same(EventArgs.Empty, e); 5489Assert.Same(control, sender); 5490Assert.Same(EventArgs.Empty, e); 5497Assert.Same(child1, sender); 5498Assert.Same(EventArgs.Empty, e); 5505Assert.Same(child2, sender); 5506Assert.Same(EventArgs.Empty, e); 5575Assert.Same(control, sender); 5576Assert.Same(EventArgs.Empty, e); 5581Assert.Same(child1, sender); 5582Assert.Same(EventArgs.Empty, e); 5587Assert.Same(child2, sender); 5588Assert.Same(EventArgs.Empty, e); 5691Assert.Same(control, sender); 5692Assert.Same(control, e.AffectedControl); 5701Assert.Same(control, sender); 5702Assert.Same(EventArgs.Empty, e); 5710Assert.Same(control, sender); 5711Assert.Same(EventArgs.Empty, e); 5719Assert.Same(control, sender); 5720Assert.Same(EventArgs.Empty, e); 5801Assert.Same(control, sender); 5802Assert.Same(control, e.AffectedControl); 5811Assert.Same(control, sender); 5812Assert.Same(EventArgs.Empty, e); 5820Assert.Same(control, sender); 5821Assert.Same(EventArgs.Empty, e); 5829Assert.Same(control, sender); 5830Assert.Same(EventArgs.Empty, e); 5889Assert.Same(control, sender); 5890Assert.Same(control, e.AffectedControl); 5899Assert.Same(control, sender); 5900Assert.Same(EventArgs.Empty, e); 5908Assert.Same(control, sender); 5909Assert.Same(EventArgs.Empty, e); 5917Assert.Same(control, sender); 5918Assert.Same(EventArgs.Empty, e); 5982Assert.Same(control, sender); 5983Assert.Same(control, e.AffectedControl); 5993Assert.Same(control, sender); 5994Assert.Same(EventArgs.Empty, e); 6003Assert.Same(control, sender); 6004Assert.Same(EventArgs.Empty, e); 6013Assert.Same(control, sender); 6014Assert.Same(EventArgs.Empty, e); 6023Assert.Same(parent, sender); 6024Assert.Same(control, e.AffectedControl); 6102Assert.Same(control, sender); 6103Assert.Same(control, e.AffectedControl); 6112Assert.Same(control, sender); 6113Assert.Same(EventArgs.Empty, e); 6121Assert.Same(control, sender); 6122Assert.Same(EventArgs.Empty, e); 6130Assert.Same(control, sender); 6131Assert.Same(EventArgs.Empty, e); 6218Assert.Same(control, sender); 6219Assert.Same(control, e.AffectedControl); 6229Assert.Same(control, sender); 6230Assert.Same(EventArgs.Empty, e); 6239Assert.Same(control, sender); 6240Assert.Same(EventArgs.Empty, e); 6249Assert.Same(control, sender); 6250Assert.Same(EventArgs.Empty, e); 6259Assert.Same(parent, sender); 6260Assert.Same(control, e.AffectedControl); 6412Assert.Same(control, sender); 6413Assert.Same(EventArgs.Empty, e); 6519Assert.Same(control, sender); 6520Assert.Same(EventArgs.Empty, e); 6673Assert.Same(control, sender); 6674Assert.Same(EventArgs.Empty, e); 6680Assert.Same(control, sender); 6681Assert.Same(EventArgs.Empty, e); 6754Assert.Same(control, sender); 6755Assert.Same(EventArgs.Empty, e); 6761Assert.Same(control, sender); 6762Assert.Same(EventArgs.Empty, e); 6772Assert.Same(parent, sender); 6773Assert.Same(control, e.AffectedControl); 6863Assert.Same(control, sender); 6864Assert.Same(EventArgs.Empty, e); 6870Assert.Same(control, sender); 6871Assert.Same(EventArgs.Empty, e); 6963Assert.Same(control, sender); 6964Assert.Same(EventArgs.Empty, e); 6970Assert.Same(control, sender); 6971Assert.Same(EventArgs.Empty, e); 6981Assert.Same(parent, sender); 6982Assert.Same(control, e.AffectedControl); 7091Assert.Same(control, sender); 7092Assert.Same(EventArgs.Empty, e); 7099Assert.Same(control, sender); 7100Assert.Same(EventArgs.Empty, e); 7154Assert.Same(control, sender); 7155Assert.Same(EventArgs.Empty, e); 7161Assert.Same(control, sender); 7162Assert.Same(EventArgs.Empty, e); 7233Assert.Same(control, sender); 7234Assert.Same(EventArgs.Empty, e); 7240Assert.Same(control, sender); 7241Assert.Same(EventArgs.Empty, e); 7251Assert.Same(parent, sender); 7252Assert.Same(control, e.AffectedControl); 7346Assert.Same(control, sender); 7347Assert.Same(EventArgs.Empty, e); 7353Assert.Same(control, sender); 7354Assert.Same(EventArgs.Empty, e); 7446Assert.Same(control, sender); 7447Assert.Same(EventArgs.Empty, e); 7453Assert.Same(control, sender); 7454Assert.Same(EventArgs.Empty, e); 7464Assert.Same(parent, sender); 7465Assert.Same(control, e.AffectedControl); 7624Assert.Same(control, sender); 7625Assert.Same(EventArgs.Empty, e); 7632Assert.Same(control, sender); 7633Assert.Same(EventArgs.Empty, e); 7761Assert.Same(control, sender); 7762Assert.Same(control, e.AffectedControl); 8004Assert.Same(control, sender); 8005Assert.Same(control, e.AffectedControl); 8061Assert.Same(control, sender); 8062Assert.Same(control, e.AffectedControl); 8110Assert.Same(parent, sender); 8111Assert.Same(control, e.AffectedControl); 8166Assert.Same(parent, sender); 8167Assert.Same(control, e.AffectedControl); 8319Assert.Same(parent, sender); 8320Assert.Same(control, e.AffectedControl); 8387Assert.Same(parent, sender); 8388Assert.Same(control, e.AffectedControl); 8542Assert.Same(control, sender); 8543Assert.Same(control, e.AffectedControl); 8589Assert.Same(control, sender); 8590Assert.Same(control, e.AffectedControl); 8642Assert.Same(control, sender); 8643Assert.Same(control, e.AffectedControl); 8673Assert.Same(control, sender); 8674Assert.Same(control, e.AffectedControl); 8705Assert.Same(control, sender); 8706Assert.Same(control, e.AffectedControl); 8752Assert.Same(control, sender); 8753Assert.Same(control, e.AffectedControl); 8760Assert.Same(parent, sender); 8761Assert.Same(control, e.AffectedControl); 8814Assert.Same(control, sender); 8815Assert.Same(control, e.AffectedControl); 8822Assert.Same(parent, sender); 8823Assert.Same(control, e.AffectedControl); 8874Assert.Same(control, sender); 8875Assert.Same(control, e.AffectedControl); 8934Assert.Same(control, sender); 8935Assert.Same(control, e.AffectedControl); 9000Assert.Same(control, sender); 9001Assert.Same(control, e.AffectedControl); 9060Assert.Same(control, sender); 9061Assert.Same(control, e.AffectedControl); 9068Assert.Same(parent, sender); 9069Assert.Same(control, e.AffectedControl); 9149Assert.Same(control, sender); 9150Assert.Same(control, e.AffectedControl); 9157Assert.Same(parent, sender); 9158Assert.Same(control, e.AffectedControl); 9417Assert.Same(control, sender); 9418Assert.Same(control, e.AffectedControl); 9447Assert.Same(control, sender); 9448Assert.Same(control, e.AffectedControl); 9455Assert.Same(parent, sender); 9456Assert.Same(control, e.AffectedControl); 9502Assert.Same(control, sender); 9503Assert.Same(control, e.AffectedControl); 9546Assert.Same(control, sender); 9547Assert.Same(control, e.AffectedControl); 9554Assert.Same(parent, sender); 9555Assert.Same(control, e.AffectedControl); 9689Assert.Same(value, control.Parent); 9694Assert.Same(value, control.Parent); 9709Assert.Same(value, control.Parent); 9715Assert.Same(value, control.Parent); 9728Assert.Same(parent, control.Parent); 9729Assert.Same(control, Assert.Single(parent.Controls)); 9734Assert.Same(parent, control.Parent); 9735Assert.Same(control, Assert.Single(parent.Controls)); 9753Assert.Same(value, control.Parent); 9761Assert.Same(value, control.Parent); 9776Assert.Same(control, sender); 9777Assert.Same(EventArgs.Empty, e); 9784Assert.Same(parent, control.Parent); 9789Assert.Same(parent, control.Parent); 9800Assert.Same(parent, control.Parent); 9882Assert.Same(value, control.Region); 9887Assert.Same(value, control.Region); 9903Assert.Same(value, control.Region); 9909Assert.Same(value, control.Region); 9928Assert.Same(value, control.Region); 9936Assert.Same(value, control.Region); 9962Assert.Same(value, control.Region); 9971Assert.Same(value, control.Region); 9986Assert.Same(control, sender); 9987Assert.Same(EventArgs.Empty, e); 9995Assert.Same(region1, control.Region); 10000Assert.Same(region1, control.Region); 10006Assert.Same(region2, control.Region); 10018Assert.Same(region1, control.Region); 10215Assert.Same(control, sender); 10216Assert.Same(EventArgs.Empty, e); 10285Assert.Same(control, sender); 10286Assert.Same(EventArgs.Empty, e); 10293Assert.Same(child1, sender); 10294Assert.Same(EventArgs.Empty, e); 10301Assert.Same(child2, sender); 10302Assert.Same(EventArgs.Empty, e); 10371Assert.Same(control, sender); 10372Assert.Same(EventArgs.Empty, e); 10377Assert.Same(child1, sender); 10378Assert.Same(EventArgs.Empty, e); 10383Assert.Same(child2, sender); 10384Assert.Same(EventArgs.Empty, e); 10653Assert.Same(value, control.Site); 10658Assert.Same(value, control.Site); 10676Assert.Same(value, control.Site); 10684Assert.Same(value, control.Site); 10708Assert.Same(value, control.Site); 10712Assert.Same(value, control.Site); 10783Assert.Same(control, sender); 10784Assert.Same(EventArgs.Empty, e); 10790Assert.Same(control, sender); 10791Assert.Same(EventArgs.Empty, e); 10797Assert.Same(control, sender); 10798Assert.Same(EventArgs.Empty, e); 10804Assert.Same(control, sender); 10805Assert.Same(EventArgs.Empty, e); 10810Assert.Same(mockSite1.Object, control.Site); 10812Assert.Same(cursor1, control.Cursor); 10814Assert.Same(font1, control.Font); 10826Assert.Same(mockSite1.Object, control.Site); 10828Assert.Same(cursor1, control.Cursor); 10830Assert.Same(font1, control.Font); 10842Assert.Same(mockSite2.Object, control.Site); 10844Assert.Same(cursor1, control.Cursor); 10846Assert.Same(font1, control.Font); 10858Assert.Same(mockSite3.Object, control.Site); 10860Assert.Same(cursor2, control.Cursor); 10862Assert.Same(font2, control.Font); 10874Assert.Same(mockSite4.Object, control.Site); 10876Assert.Same(Cursors.Default, control.Cursor); 10965Assert.Same(control, sender); 10966Assert.Same(EventArgs.Empty, e); 10972Assert.Same(control, sender); 10973Assert.Same(EventArgs.Empty, e); 10979Assert.Same(control, sender); 10980Assert.Same(EventArgs.Empty, e); 10986Assert.Same(control, sender); 10987Assert.Same(EventArgs.Empty, e); 10992Assert.Same(mockSite1.Object, control.Site); 10994Assert.Same(controlCursor, control.Cursor); 10996Assert.Same(controlFont, control.Font); 11008Assert.Same(mockSite1.Object, control.Site); 11010Assert.Same(controlCursor, control.Cursor); 11012Assert.Same(controlFont, control.Font); 11024Assert.Same(mockSite2.Object, control.Site); 11026Assert.Same(controlCursor, control.Cursor); 11028Assert.Same(controlFont, control.Font); 11040Assert.Same(mockSite3.Object, control.Site); 11042Assert.Same(controlCursor, control.Cursor); 11044Assert.Same(controlFont, control.Font); 11075Assert.Same(control, sender); 11076Assert.Same(control, e.AffectedControl); 11085Assert.Same(control, sender); 11086Assert.Same(EventArgs.Empty, e); 11094Assert.Same(control, sender); 11095Assert.Same(EventArgs.Empty, e); 11103Assert.Same(control, sender); 11104Assert.Same(EventArgs.Empty, e); 11186Assert.Same(control, sender); 11187Assert.Same(control, e.AffectedControl); 11196Assert.Same(control, sender); 11197Assert.Same(EventArgs.Empty, e); 11205Assert.Same(control, sender); 11206Assert.Same(EventArgs.Empty, e); 11214Assert.Same(control, sender); 11215Assert.Same(EventArgs.Empty, e); 11281Assert.Same(control, sender); 11282Assert.Same(control, e.AffectedControl); 11291Assert.Same(control, sender); 11292Assert.Same(EventArgs.Empty, e); 11300Assert.Same(control, sender); 11301Assert.Same(EventArgs.Empty, e); 11309Assert.Same(control, sender); 11310Assert.Same(EventArgs.Empty, e); 11381Assert.Same(control, sender); 11382Assert.Same(control, e.AffectedControl); 11392Assert.Same(control, sender); 11393Assert.Same(EventArgs.Empty, e); 11402Assert.Same(control, sender); 11403Assert.Same(EventArgs.Empty, e); 11412Assert.Same(control, sender); 11413Assert.Same(EventArgs.Empty, e); 11422Assert.Same(parent, sender); 11423Assert.Same(control, e.AffectedControl); 11506Assert.Same(control, sender); 11507Assert.Same(control, e.AffectedControl); 11516Assert.Same(control, sender); 11517Assert.Same(EventArgs.Empty, e); 11525Assert.Same(control, sender); 11526Assert.Same(EventArgs.Empty, e); 11534Assert.Same(control, sender); 11535Assert.Same(EventArgs.Empty, e); 11627Assert.Same(control, sender); 11628Assert.Same(control, e.AffectedControl); 11638Assert.Same(control, sender); 11639Assert.Same(EventArgs.Empty, e); 11648Assert.Same(control, sender); 11649Assert.Same(EventArgs.Empty, e); 11658Assert.Same(control, sender); 11659Assert.Same(EventArgs.Empty, e); 11668Assert.Same(parent, sender); 11669Assert.Same(control, e.AffectedControl); 11827Assert.Same(control, sender); 11828Assert.Same(EventArgs.Empty, e); 11931Assert.Same(control, sender); 11932Assert.Same(EventArgs.Empty, e); 12012Assert.Same(control, sender); 12109Assert.Same(control, sender); 12110Assert.Same(EventArgs.Empty, e); 12116Assert.Same(control, sender); 12117Assert.Same(EventArgs.Empty, e); 12188Assert.Same(control, sender); 12189Assert.Same(EventArgs.Empty, e); 12195Assert.Same(control, sender); 12196Assert.Same(EventArgs.Empty, e); 12206Assert.Same(parent, sender); 12207Assert.Same(control, e.AffectedControl); 12297Assert.Same(control, sender); 12298Assert.Same(EventArgs.Empty, e); 12304Assert.Same(control, sender); 12305Assert.Same(EventArgs.Empty, e); 12395Assert.Same(control, sender); 12396Assert.Same(EventArgs.Empty, e); 12402Assert.Same(control, sender); 12403Assert.Same(EventArgs.Empty, e); 12413Assert.Same(parent, sender); 12414Assert.Same(control, e.AffectedControl); 12523Assert.Same(control, sender); 12524Assert.Same(EventArgs.Empty, e); 12531Assert.Same(control, sender); 12532Assert.Same(EventArgs.Empty, e); 12594Assert.Same(grandparent, control.TopLevelControl); 12595Assert.Same(grandparent, parent.TopLevelControl); 12596Assert.Same(grandparent, grandparent.TopLevelControl); 12876Assert.Same(control, sender); 12877Assert.Same(EventArgs.Empty, e); 12921Assert.Same(control, sender); 12922Assert.Same(EventArgs.Empty, e); 12927Assert.Same(child1, sender); 12928Assert.Same(EventArgs.Empty, e); 12933Assert.Same(child2, sender); 12934Assert.Same(EventArgs.Empty, e); 13004Assert.Same(control, sender); 13005Assert.Same(EventArgs.Empty, e); 13010Assert.Same(child1, sender); 13011Assert.Same(EventArgs.Empty, e); 13016Assert.Same(child2, sender); 13017Assert.Same(EventArgs.Empty, e); 13110Assert.Same(control, sender); 13111Assert.Same(control, e.AffectedControl); 13120Assert.Same(control, sender); 13121Assert.Same(EventArgs.Empty, e); 13129Assert.Same(control, sender); 13130Assert.Same(EventArgs.Empty, e); 13138Assert.Same(control, sender); 13139Assert.Same(EventArgs.Empty, e); 13220Assert.Same(control, sender); 13221Assert.Same(control, e.AffectedControl); 13230Assert.Same(control, sender); 13231Assert.Same(EventArgs.Empty, e); 13239Assert.Same(control, sender); 13240Assert.Same(EventArgs.Empty, e); 13248Assert.Same(control, sender); 13249Assert.Same(EventArgs.Empty, e); 13308Assert.Same(control, sender); 13309Assert.Same(control, e.AffectedControl); 13318Assert.Same(control, sender); 13319Assert.Same(EventArgs.Empty, e); 13327Assert.Same(control, sender); 13328Assert.Same(EventArgs.Empty, e); 13336Assert.Same(control, sender); 13337Assert.Same(EventArgs.Empty, e); 13401Assert.Same(control, sender); 13402Assert.Same(control, e.AffectedControl); 13412Assert.Same(control, sender); 13413Assert.Same(EventArgs.Empty, e); 13422Assert.Same(control, sender); 13423Assert.Same(EventArgs.Empty, e); 13432Assert.Same(control, sender); 13433Assert.Same(EventArgs.Empty, e); 13442Assert.Same(parent, sender); 13443Assert.Same(control, e.AffectedControl); 13521Assert.Same(control, sender); 13522Assert.Same(control, e.AffectedControl); 13531Assert.Same(control, sender); 13532Assert.Same(EventArgs.Empty, e); 13540Assert.Same(control, sender); 13541Assert.Same(EventArgs.Empty, e); 13549Assert.Same(control, sender); 13550Assert.Same(EventArgs.Empty, e); 13637Assert.Same(control, sender); 13638Assert.Same(control, e.AffectedControl); 13648Assert.Same(control, sender); 13649Assert.Same(EventArgs.Empty, e); 13658Assert.Same(control, sender); 13659Assert.Same(EventArgs.Empty, e); 13668Assert.Same(control, sender); 13669Assert.Same(EventArgs.Empty, e); 13678Assert.Same(parent, sender); 13679Assert.Same(control, e.AffectedControl);
System\Windows\Forms\CursorConverterTests.cs (1)
30Assert.Same(Cursors.AppStarting, converter.ConvertFrom(value));
System\Windows\Forms\CursorTests.cs (2)
317Assert.Same(value, cursor.Tag); 321Assert.Same(value, cursor.Tag);
System\Windows\Forms\DataFormatsTests.cs (5)
68Assert.Same(result, DataFormats.GetFormat(format.ToLower())); 73Assert.Same(result, DataFormats.GetFormat(format)); 91Assert.Same(result, DataFormats.GetFormat(format)); 92Assert.Same(result, DataFormats.GetFormat(format.ToLower())); 102Assert.Same(result, DataFormats.GetFormat(result.Id));
System\Windows\Forms\DataGridView.DataGridViewControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
28Assert.Same(value, cell.GetErrorText(0));
System\Windows\Forms\DataGridViewCellStyleTests.cs (4)
229Assert.Same(value, style.DataSourceNullValue); 451Assert.Same(value, style.NullValue); 568Assert.Same(value, style.Tag); 572Assert.Same(value, style.Tag);
System\Windows\Forms\DataGridViewCellTests.cs (72)
45Assert.Same(cell.Style, cell.Style); 173Assert.Same(control, sender); 175Assert.Same(menu1, e.ContextMenuStrip); 180Assert.Same(menu2, cell.ContextMenuStrip); 185Assert.Same(menu1, cell.ContextMenuStrip); 210Assert.Same(control, sender); 212Assert.Same(menu1, e.ContextMenuStrip); 217Assert.Same(menu2, cell.ContextMenuStrip); 222Assert.Same(menu1, cell.ContextMenuStrip); 312Assert.Same(control, sender); 321Assert.Same(menu1, cell.ContextMenuStrip); 326Assert.Same(menu1, cell.ContextMenuStrip); 332Assert.Same(menu2, cell.ContextMenuStrip); 353Assert.Same(menu, cell.ContextMenuStrip); 366Assert.Same(menu1, cell.ContextMenuStrip); 372Assert.Same(menu2, cell.ContextMenuStrip); 793Assert.Same(control, sender); 854Assert.Same(control, sender); 1213Assert.Same(control, sender); 1927Assert.Same(control, sender); 1928Assert.Same(cell, e.Cell); 2210Assert.Same(control, sender); 2211Assert.Same(cell, e.Cell); 2437Assert.Same(control, sender); 2467Assert.Same(style2, cell.Style); 2505Assert.Same(value, cell.Tag); 2509Assert.Same(value, cell.Tag); 2521Assert.Same(value, cell.Tag); 2525Assert.Same(value, cell.Tag); 2804Assert.Same(valueType, cell.ValueType); 3079Assert.Same(controlAdvancedBorderStylePlaceholder, cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, controlAdvancedBorderStylePlaceholder, singleVerticalBorderAdded, singleHorizontalBorderAdded, isFirstDisplayedColumn, isFirstDisplayedRow)); 3101Assert.Same(controlAdvancedBorderStyleInput, cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, controlAdvancedBorderStylePlaceholder, true, true, true, true)); 3122Assert.Same(controlAdvancedBorderStyleInput, cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, controlAdvancedBorderStylePlaceholder, true, true, true, true)); 3420Assert.Same(accessibleObject, cell.AccessibilityObject); 3421Assert.Same(cell, accessibleObject.Owner); 3439Assert.Same(result, control.AccessibilityObject); 3440Assert.Same(control.AccessibilityObject, control.AccessibilityObject); 3449Assert.Same(cell, instance.Owner); 3505Assert.Same(menu, cell.ContextMenuStrip); 3510Assert.Same(menu, cell.ContextMenuStrip); 3515Assert.Same(menu, cell.ContextMenuStrip); 3542Assert.Same(menu, cell.ContextMenuStrip); 3547Assert.Same(menu, cell.ContextMenuStrip); 3976Assert.Same(control, sender); 4015Assert.Same(control, sender); 4058Assert.Same(control, sender); 4101Assert.Same(control, sender); 4193Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 4216Assert.Same(menu, cell.GetInheritedContextMenuStrip(rowIndex)); 4233Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 4260Assert.Same(menu, cell.GetInheritedContextMenuStrip(0)); 4284Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(0)); 4305Assert.Same(menu, cell.GetInheritedContextMenuStrip(0)); 4327Assert.Same(control, sender); 4329Assert.Same(menu1, e.ContextMenuStrip); 4334Assert.Same(menu2, cell.GetInheritedContextMenuStrip(0)); 4339Assert.Same(menu1, cell.GetInheritedContextMenuStrip(0)); 4364Assert.Same(control, sender); 4366Assert.Same(menu1, e.ContextMenuStrip); 4371Assert.Same(menu2, cell.GetInheritedContextMenuStrip(0)); 4376Assert.Same(menu1, cell.GetInheritedContextMenuStrip(0)); 4761Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 4770Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 4959Assert.Same(value, cell.GetValue(rowIndex)); 4989Assert.Same(value, cell.GetValue(rowIndex)); 5021Assert.Same(value, cell.GetValue(0)); 5077Assert.Same(control, sender); 5084Assert.Same(value2, cell.GetValue(0)); 5115Assert.Same(control, sender); 5156Assert.Same(control, sender); 5163Assert.Same(value1, cell.GetValue(0)); 5168Assert.Same(value1, cell.GetValue(0));
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (25)
18Assert.Same(control, collection.DataGridView); 23Assert.Same(collection, collection.SyncRoot); 46Assert.Same(control, column1.DataGridView); 54Assert.Same(control, column1.DataGridView); 57Assert.Same(control, column2.DataGridView); 74Assert.Same(control, column1.DataGridView); 82Assert.Same(control, column1.DataGridView); 85Assert.Same(control, column2.DataGridView); 124Assert.Same(control, column1.DataGridView); 132Assert.Same(control, column1.DataGridView); 135Assert.Same(control, column2.DataGridView); 198Assert.Same(control, column1.DataGridView); 206Assert.Same(control, column1.DataGridView); 209Assert.Same(control, column2.DataGridView); 232Assert.Same(control, column1.DataGridView); 240Assert.Same(control, column1.DataGridView); 243Assert.Same(control, column2.DataGridView); 274Assert.Same(control, column1.DataGridView); 282Assert.Same(control, column1.DataGridView); 285Assert.Same(control, column2.DataGridView); 293Assert.Same(control, column1.DataGridView); 296Assert.Same(control, column2.DataGridView); 299Assert.Same(control, column3.DataGridView); 318Assert.Same(control, column.DataGridView); 321Assert.Same(control, headerCell.DataGridView);
System\Windows\Forms\DataGridViewColumnTests.cs (49)
21Assert.Same(column.DefaultCellStyle, column.DefaultCellStyle); 22Assert.Same(typeof(DataGridViewColumnHeaderCell), column.DefaultHeaderCellType); 30Assert.Same(column.HeaderCell, column.HeaderCell); 32Assert.Same(column.HeaderCellCore, column.HeaderCellCore); 36Assert.Same(column.DefaultCellStyle, column.InheritedStyle); 66Assert.Same(cellTemplate, column.CellTemplate); 72Assert.Same(column.DefaultCellStyle, column.DefaultCellStyle); 73Assert.Same(typeof(DataGridViewColumnHeaderCell), column.DefaultHeaderCellType); 83Assert.Same(column.DefaultCellStyle, column.InheritedStyle); 456Assert.Same(control, sender); 457Assert.Same(column, e.Column); 508Assert.Same(value, column.CellTemplate); 509Assert.Same(value?.GetType(), column.CellType); 513Assert.Same(value, column.CellTemplate); 514Assert.Same(value?.GetType(), column.CellType); 531Assert.Same(value, column.ContextMenuStrip); 535Assert.Same(value, column.ContextMenuStrip); 549Assert.Same(value, column.ContextMenuStrip); 553Assert.Same(value, column.ContextMenuStrip); 569Assert.Same(value, column.ContextMenuStrip); 574Assert.Same(value, column.ContextMenuStrip); 586Assert.Same(menu, control.ContextMenuStrip); 601Assert.Same(menu1, control.ContextMenuStrip); 604Assert.Same(menu2, control.ContextMenuStrip); 607Assert.Same(menu2, control.ContextMenuStrip); 623Assert.Same(control, sender); 624Assert.Same(column, e.Column); 632Assert.Same(menu1, column.ContextMenuStrip); 637Assert.Same(menu1, column.ContextMenuStrip); 643Assert.Same(menu2, column.ContextMenuStrip); 654Assert.Same(menu1, column.ContextMenuStrip); 708Assert.Same(control, sender); 853Assert.Same(control, sender); 854Assert.Same(column, e.Column); 882Assert.Same(style2, column.DefaultCellStyle); 1085Assert.Same(control, sender); 1086Assert.Same(column, e.Column); 1316Assert.Same(control, sender); 1317Assert.Same(column, e.Column); 1349Assert.Same(column, column.HeaderCell.OwningColumn); 1351Assert.Same(column.HeaderCell, column.HeaderCell); 1352Assert.Same(column.HeaderCell, column.HeaderCellCore); 1361Assert.Same(column, column.HeaderCellCore.OwningColumn); 1363Assert.Same(column.HeaderCellCore, column.HeaderCellCore); 1364Assert.Same(column.HeaderCell, column.HeaderCellCore); 1490Assert.Same(control, sender); 1491Assert.Same(column, e.Column); 1717Assert.Same(control, sender); 1718Assert.Same(column, e.Column);
System\Windows\Forms\DataGridViewElementTests.cs (12)
66Assert.Same(sender, control); 67Assert.Same(eventArgs, e); 118Assert.Same(sender, control); 119Assert.Same(eventArgs, e); 170Assert.Same(sender, control); 171Assert.Same(eventArgs, e); 222Assert.Same(sender, control); 223Assert.Same(eventArgs, e); 294Assert.Same(sender, control); 295Assert.Same(eventArgs, e); 346Assert.Same(sender, control); 347Assert.Same(eventArgs, e);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (27)
43Assert.Same(cell.Style, cell.Style); 2211Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 2251Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 2284Assert.Same(menu, cell.GetInheritedContextMenuStrip(rowIndex)); 2308Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 2325Assert.Same(menu, cell.GetInheritedContextMenuStrip(rowIndex)); 2346Assert.Same(cellMenu, cell.GetInheritedContextMenuStrip(rowIndex)); 2367Assert.Same(menu, cell.GetInheritedContextMenuStrip(rowIndex)); 2389Assert.Same(control, sender); 2391Assert.Same(menu1, e.ContextMenuStrip); 2396Assert.Same(menu2, cell.GetInheritedContextMenuStrip(0)); 2401Assert.Same(menu1, cell.GetInheritedContextMenuStrip(0)); 2426Assert.Same(control, sender); 2428Assert.Same(menu1, e.ContextMenuStrip); 2433Assert.Same(menu2, cell.GetInheritedContextMenuStrip(0)); 2438Assert.Same(menu1, cell.GetInheritedContextMenuStrip(0)); 3362Assert.Same(value, cell.GetValue(-1)); 3384Assert.Same(value, cell.GetValue(-1)); 3414Assert.Same(value, cell.GetValue(rowIndex)); 3436Assert.Same(value, cell.GetValue(-1)); 3504Assert.Same(value, cell.GetValue(-1)); 3538Assert.Same(value, cell.GetValue(-1)); 3558Assert.Same(value, cell.GetValue(-1)); 3588Assert.Same(value, cell.GetValue(-1)); 3614Assert.Same(control, sender); 3652Assert.Same(control, sender); 3693Assert.Same(control, sender);
System\Windows\Forms\DataGridViewRowErrorTextNeededEventArgsTests.cs (1)
28Assert.Same(value, row.GetErrorText(0));
System\Windows\Forms\DataGridViewRowTests.cs (130)
16Assert.Same(row.Cells, row.Cells); 22Assert.Same(row.DefaultCellStyle, row.DefaultCellStyle); 23Assert.Same(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 30Assert.Same(row.HeaderCell, row.HeaderCell); 32Assert.Same(row.HeaderCellCore, row.HeaderCellCore); 81Assert.Same(control, sender); 83Assert.Same(menu1, e.ContextMenuStrip); 88Assert.Same(menu2, row.ContextMenuStrip); 93Assert.Same(menu1, row.ContextMenuStrip); 118Assert.Same(control, sender); 120Assert.Same(menu1, e.ContextMenuStrip); 125Assert.Same(menu2, row.ContextMenuStrip); 130Assert.Same(menu1, row.ContextMenuStrip); 160Assert.Same(value, row.ContextMenuStrip); 164Assert.Same(value, row.ContextMenuStrip); 178Assert.Same(value, row.ContextMenuStrip); 182Assert.Same(value, row.ContextMenuStrip); 197Assert.Same(value, row.ContextMenuStrip); 202Assert.Same(value, row.ContextMenuStrip); 235Assert.Same(menu, row.ContextMenuStrip); 250Assert.Same(menu1, row.ContextMenuStrip); 253Assert.Same(menu2, row.ContextMenuStrip); 256Assert.Same(menu2, row.ContextMenuStrip); 271Assert.Same(control, sender); 272Assert.Same(row, e.Row); 280Assert.Same(menu1, row.ContextMenuStrip); 285Assert.Same(menu1, row.ContextMenuStrip); 291Assert.Same(menu2, row.ContextMenuStrip); 302Assert.Same(menu1, row.ContextMenuStrip); 330Assert.Same(boundObject, row.DataBoundItem); 370Assert.Same(row.DefaultCellStyle, row.DefaultCellStyle); 383Assert.Same(row.DefaultCellStyle, row.DefaultCellStyle); 500Assert.Same(control, sender); 501Assert.Same(row, e.Row); 529Assert.Same(style2, row.DefaultCellStyle); 841Assert.Same(control, sender); 842Assert.Same(row, e.Row); 917Assert.Same(control, sender); 923Assert.Same("errorText2", row.ErrorText); 928Assert.Same("errorText1", row.ErrorText); 952Assert.Same(control, sender); 1068Assert.Same(control, sender); 1069Assert.Same(row, e.Row); 1329Assert.Same(control, sender); 1330Assert.Same(row, e.Row); 1376Assert.Same(row, row.HeaderCell.OwningRow); 1378Assert.Same(row.HeaderCell, row.HeaderCell); 1379Assert.Same(row.HeaderCell, row.HeaderCellCore); 1394Assert.Same(row, row.HeaderCell.OwningRow); 1396Assert.Same(row.HeaderCell, row.HeaderCell); 1397Assert.Same(row.HeaderCell, row.HeaderCellCore); 1412Assert.Same(row, row.HeaderCell.OwningRow); 1414Assert.Same(row.HeaderCell, row.HeaderCell); 1415Assert.Same(row.HeaderCell, row.HeaderCellCore); 1423Assert.Same(row, row.HeaderCellCore.OwningRow); 1425Assert.Same(row.HeaderCellCore, row.HeaderCellCore); 1426Assert.Same(row.HeaderCell, row.HeaderCellCore); 1441Assert.Same(row, row.HeaderCellCore.OwningRow); 1443Assert.Same(row.HeaderCellCore, row.HeaderCellCore); 1444Assert.Same(row.HeaderCell, row.HeaderCellCore); 1459Assert.Same(row, row.HeaderCellCore.OwningRow); 1461Assert.Same(row.HeaderCellCore, row.HeaderCellCore); 1462Assert.Same(row.HeaderCell, row.HeaderCellCore); 1481Assert.Same(value, row.HeaderCell); 1494Assert.Same(value, row.HeaderCell); 1517Assert.Same(value, row.HeaderCell); 1530Assert.Same(value, row.HeaderCell); 1552Assert.Same(value, row.HeaderCell); 1558Assert.Same(value, row.HeaderCell); 1577Assert.Same(value, row.HeaderCell); 1590Assert.Same(value, row.HeaderCell); 1617Assert.Same(value, row.HeaderCell); 1630Assert.Same(value, row.HeaderCell); 1654Assert.Same(value, row.HeaderCell); 1667Assert.Same(value, row.HeaderCell); 1694Assert.Same(value, row.HeaderCell); 1707Assert.Same(value, row.HeaderCell); 1731Assert.Same(control, sender); 1732Assert.Same(row, e.Row); 1739Assert.Same(cell1, row.HeaderCell); 1744Assert.Same(cell1, row.HeaderCell); 1750Assert.Same(cell2, row.HeaderCell); 1844Assert.Same(control, sender); 1879Assert.Same(control, sender); 1983Assert.Same(control, sender); 1984Assert.Same(row, e.Row); 2313Assert.Same(control, sender); 2348Assert.Same(control, sender); 2450Assert.Same(control, sender); 2451Assert.Same(row, e.Row); 2687Assert.Same(control, sender); 2688Assert.Same(row, e.Row); 2845Assert.Same(control, sender); 2846Assert.Same(row, e.Row); 2985Assert.Same(row1, Assert.Single(control.SelectedRows)); 2990Assert.Same(row2, Assert.Single(control.SelectedRows)); 3019Assert.Same(row1, Assert.Single(control.SelectedRows)); 3029Assert.Same(row2, Assert.Single(control.SelectedRows)); 3317Assert.Same(control, sender); 3318Assert.Same(row, e.Row); 3738Assert.Same(returnsAdvanced ? dataGridViewAdvancedBorderStylePlaceholder : dataGridViewAdvancedBorderStyleInput, result); 3891Assert.Same(returnsAdvanced ? dataGridViewAdvancedBorderStylePlaceholder : dataGridViewAdvancedBorderStyleInput, result); 4260Assert.Same(menu, row.GetContextMenuStrip(rowIndex)); 4279Assert.Same(menu1, row1.GetContextMenuStrip(0)); 4280Assert.Same(menu1, row1.GetContextMenuStrip(0)); 4281Assert.Same(menu2, row2.GetContextMenuStrip(1)); 4282Assert.Same(menu2, row2.GetContextMenuStrip(1)); 4305Assert.Same(control, sender); 4307Assert.Same(menu1, e.ContextMenuStrip); 4312Assert.Same(menu2, row.GetContextMenuStrip(0)); 4317Assert.Same(menu1, row.GetContextMenuStrip(0)); 4342Assert.Same(control, sender); 4344Assert.Same(menu1, e.ContextMenuStrip); 4349Assert.Same(menu2, row.GetContextMenuStrip(0)); 4354Assert.Same(menu1, row.GetContextMenuStrip(0)); 4410Assert.Same("ErrorText1", row1.GetErrorText(0)); 4411Assert.Same("ErrorText1", row1.GetErrorText(0)); 4412Assert.Same("ErrorText2", row2.GetErrorText(1)); 4413Assert.Same("ErrorText2", row2.GetErrorText(1)); 4433Assert.Same(control, sender); 4435Assert.Same("ErrorText1", e.ErrorText); 4439Assert.Same("ErrorText2", row.GetErrorText(0)); 4444Assert.Same("ErrorText1", row.GetErrorText(0)); 4467Assert.Same(control, sender); 4469Assert.Same("ErrorText1", e.ErrorText); 4811Assert.Same(control, sender); 4812Assert.Same(graphics, e.Graphics); 4888Assert.Same(control, sender); 4889Assert.Same(graphics, e.Graphics); 5803Assert.Same(AccessibilityObject, AccessibilityObject);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (6)
18Assert.Same(collection, collection.SyncRoot); 38Assert.Same(collection, collection.SyncRoot); 190Assert.Same(collection, iList.SyncRoot); 212Assert.Same(collection, iList.SyncRoot); 419Assert.Same(control.Rows[2].Cells[0], enumerator.Current); 422Assert.Same(control.Rows[0].Cells[0], enumerator.Current);
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (6)
18Assert.Same(collection, collection.SyncRoot); 42Assert.Same(collection, collection.SyncRoot); 210Assert.Same(collection, iList.SyncRoot); 236Assert.Same(collection, iList.SyncRoot); 463Assert.Same(control.Columns[2], enumerator.Current); 466Assert.Same(control.Columns[0], enumerator.Current);
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (6)
18Assert.Same(collection, collection.SyncRoot); 37Assert.Same(collection, collection.SyncRoot); 185Assert.Same(collection, iList.SyncRoot); 206Assert.Same(collection, iList.SyncRoot); 408Assert.Same(control.Rows[2], enumerator.Current); 411Assert.Same(control.Rows[0], enumerator.Current);
System\Windows\Forms\DataGridViewTests.cs (78)
36Assert.Same(control.RowTemplate, control.RowTemplate); 126Assert.Same(parent, sender); 127Assert.Same(control, e.AffectedControl); 273Assert.Same(parent, sender); 274Assert.Same(control, e.AffectedControl); 319Assert.Same(control, sender); 320Assert.Same(EventArgs.Empty, e); 617Assert.Same(control, sender); 829Assert.Same(value, control.Parent); 834Assert.Same(value, control.Parent); 849Assert.Same(value, control.Parent); 855Assert.Same(value, control.Parent); 868Assert.Same(parent, control.Parent); 869Assert.Same(control, Assert.Single(parent.Controls)); 874Assert.Same(parent, control.Parent); 875Assert.Same(control, Assert.Single(parent.Controls)); 893Assert.Same(value, control.Parent); 900Assert.Same(value, control.Parent); 914Assert.Same(control, sender); 915Assert.Same(EventArgs.Empty, e); 922Assert.Same(parent, control.Parent); 927Assert.Same(parent, control.Parent); 938Assert.Same(parent, control.Parent); 1043Assert.Same(parent, sender); 1044Assert.Same(control, e.AffectedControl); 1197Assert.Same(parent, sender); 1198Assert.Same(control, e.AffectedControl); 1245Assert.Same(control, sender); 1246Assert.Same(EventArgs.Empty, e); 1552Assert.Same(control, sender); 1742Assert.Same(cell1, control.TopLeftHeaderCell); 1743Assert.Same(control, cell1.DataGridView); 1750Assert.Same(cell1, control.TopLeftHeaderCell); 1751Assert.Same(control, cell1.DataGridView); 1759Assert.Same(cell2, control.TopLeftHeaderCell); 1763Assert.Same(control, cell2.DataGridView); 1771Assert.Same(control, cell.DataGridView); 1774Assert.Same(control.TopLeftHeaderCell, control.TopLeftHeaderCell); 1806Assert.Same(cell1, control.TopLeftHeaderCell); 1807Assert.Same(control, cell1.DataGridView); 1816Assert.Same(cell1, control.TopLeftHeaderCell); 1817Assert.Same(control, cell1.DataGridView); 1827Assert.Same(cell2, control.TopLeftHeaderCell); 1831Assert.Same(control, cell2.DataGridView); 1841Assert.Same(control, cell.DataGridView); 1844Assert.Same(control.TopLeftHeaderCell, control.TopLeftHeaderCell); 1869Assert.Same(control, cell.DataGridView); 1872Assert.Same(control.TopLeftHeaderCell, control.TopLeftHeaderCell); 1897Assert.Same(control, cell.DataGridView); 1900Assert.Same(control.TopLeftHeaderCell, control.TopLeftHeaderCell); 1938Assert.Same(control, sender); 1939Assert.Same(eventArgs, e); 1976Assert.Same(control, sender); 1977Assert.Same(eventArgs, e); 2121Assert.Same(control, sender); 2122Assert.Same(eventArgs, e); 2167Assert.Same(control, sender); 2168Assert.Same(eventArgs, e); 2357Assert.Same(customFont1, dataGridView.DefaultCellStyle.Font); 2358Assert.Same(customFont2, dataGridView.ColumnHeadersDefaultCellStyle.Font); 2359Assert.Same(customFont3, dataGridView.RowHeadersDefaultCellStyle.Font); 2365Assert.Same(customFont1, dataGridView.DefaultCellStyle.Font); 2366Assert.Same(customFont2, dataGridView.ColumnHeadersDefaultCellStyle.Font); 2367Assert.Same(customFont3, dataGridView.RowHeadersDefaultCellStyle.Font); 2374Assert.Same(customFont1, dataGridView.DefaultCellStyle.Font); 2375Assert.Same(customFont2, dataGridView.ColumnHeadersDefaultCellStyle.Font); 2376Assert.Same(customFont3, dataGridView.RowHeadersDefaultCellStyle.Font); 2383Assert.Same(customFont2, dataGridView.DefaultCellStyle.Font); 2384Assert.Same(customFont3, dataGridView.ColumnHeadersDefaultCellStyle.Font); 2385Assert.Same(customFont1, dataGridView.RowHeadersDefaultCellStyle.Font); 2412Assert.Same(control, sender); 2413Assert.Same(eventArgs, e); 2449Assert.Same(control, sender); 2450Assert.Same(eventArgs, e); 2598Assert.Same(control, sender); 2599Assert.Same(eventArgs, e); 2648Assert.Same(control, sender); 2649Assert.Same(eventArgs, e);
System\Windows\Forms\DataGridViewTests.Rendering.cs (3)
153Assert.Same(customCellStyleFont, dataGridView.DefaultCellStyle.Font); 154Assert.Same(customColumnHeaderFont, dataGridView.ColumnHeadersDefaultCellStyle.Font); 155Assert.Same(customRowHeaderFont, dataGridView.RowHeadersDefaultCellStyle.Font);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (49)
29Assert.Same(control.AutoCompleteCustomSource, control.AutoCompleteCustomSource); 53Assert.Same(control.Controls, control.Controls); 55Assert.Same(Cursors.IBeam, control.Cursor); 56Assert.Same(Cursors.IBeam, control.DefaultCursor); 71Assert.Same(Cursors.Default, control.EditingPanelCursor); 74Assert.Same(control.Events, control.Events); 85Assert.Same(control.LayoutEngine, control.LayoutEngine); 149Assert.Same(createParams, control.CreateParams); 167Assert.Same(value, control.EditingControlDataGridView); 172Assert.Same(value, control.EditingControlDataGridView); 457Assert.Same(control, sender); 500Assert.Same(control, sender); 987Assert.Same(control, instance.Owner); 1002Assert.Same(control, instance.Owner); 1142Assert.Same(control, sender); 1143Assert.Same(eventArgs, e); 1177Assert.Same(control, sender); 1178Assert.Same(eventArgs, e); 1209Assert.Same(control, sender); 1210Assert.Same(eventArgs, e); 1241Assert.Same(control, sender); 1242Assert.Same(eventArgs, e); 1281Assert.Same(control, sender); 1282Assert.Same(eventArgs, e); 1328Assert.Same(dataGridView, sender); 1329Assert.Same(eventArgs, e); 1360Assert.Same(control, sender); 1361Assert.Same(eventArgs, e); 1424Assert.Same(control, sender); 1425Assert.Same(eventArgs, e); 1548Assert.Same(control, sender); 1557Assert.Same(control, sender); 1565Assert.Same(control, sender); 1595Assert.Same(control, sender); 1604Assert.Same(control, sender); 1612Assert.Same(control, sender); 1652Assert.Same(control, sender); 1661Assert.Same(control, sender); 1669Assert.Same(control, sender); 1697Assert.Same(control, sender); 1839Assert.Same(control, sender); 1848Assert.Same(control, sender); 1856Assert.Same(control, sender); 1886Assert.Same(control, sender); 1895Assert.Same(control, sender); 1903Assert.Same(control, sender); 1943Assert.Same(control, sender); 1952Assert.Same(control, sender); 1960Assert.Same(control, sender);
System\Windows\Forms\DateTimePickerTests.cs (6)
56Assert.Same(control.Controls, control.Controls); 58Assert.Same(Cursors.Default, control.Cursor); 60Assert.Same(Cursors.Default, control.DefaultCursor); 74Assert.Same(control.Events, control.Events); 87Assert.Same(control.LayoutEngine, control.LayoutEngine); 142Assert.Same(createParams, control.CreateParams);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (15)
46Assert.Same(control.BindingContext, control.BindingContext); 63Assert.Same(control.Controls, control.Controls); 82Assert.Same(control.DockPadding, control.DockPadding); 90Assert.Same(control.Events, control.Events); 100Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 112Assert.Same(control.LayoutEngine, control.LayoutEngine); 154Assert.Same(control, control.TopLevelControl); 160Assert.Same(control.VerticalScroll, control.VerticalScroll); 185Assert.Same(createParams, control.CreateParams); 291Assert.Same(control, sender); 292Assert.Same(eventArgs, e); 318Assert.Same(control, sender); 319Assert.Same(eventArgs, e); 346Assert.Same(control, sender); 347Assert.Same(eventArgs, e);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (32)
51Assert.Same(control.Controls, control.Controls); 53Assert.Same(Cursors.Default, control.Cursor); 54Assert.Same(Cursors.Default, control.DefaultCursor); 65Assert.Same(control.DockPadding, control.DockPadding); 73Assert.Same(control.Events, control.Events); 82Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 85Assert.Same(control.Icon, control.Icon); 91Assert.Same(control.LayoutEngine, control.LayoutEngine); 122Assert.Same(control.VerticalScroll, control.VerticalScroll); 145Assert.Same(createParams, control.CreateParams); 185Assert.Same(control, sender); 186Assert.Same(EventArgs.Empty, e); 252Assert.Same(value, control.Component); 253Assert.Same(value, control.GetSelectedComponent()); 258Assert.Same(value, control.Component); 259Assert.Same(value, control.GetSelectedComponent()); 293Assert.Same(value, control.Icon); 298Assert.Same(value, control.Icon); 305Assert.Same(control.Icon, control.Icon); 367Assert.Same(value, control.PageSite); 372Assert.Same(value, control.PageSite); 433Assert.Same(control, sender); 650Assert.Same(control, control.GetControl()); 750Assert.Same(component, control.Component); 757Assert.Same(component, control.Component); 816Assert.Same(controlSite.Object, control.PageSite); 817Assert.Same(control, Assert.Single(result.Controls)); 824Assert.Same(controlSite.Object, control.PageSite); 825Assert.Same(control, Assert.Single(result.Controls)); 832Assert.Same(noControlSite.Object, control.PageSite); 833Assert.Same(control, Assert.Single(result.Controls)); 841Assert.Same(control, Assert.Single(result.Controls));
System\Windows\Forms\Design\EventsTabTests.cs (2)
82Assert.Same(expected, tab.GetDefaultProperty(obj)); 85Assert.Same(expected, tab.GetDefaultProperty(obj));
System\Windows\Forms\Design\PropertyTabTests.cs (8)
29Assert.Same(bitmap, tab.Bitmap); 104Assert.Same(bitmap, tab.Bitmap); 116Assert.Same(bitmap, tab.Bitmap); 150Assert.Same(component, componentResult); 156Assert.Same(result, tab.GetProperties(component)); 176Assert.Same(component, componentResult); 177Assert.Same(attributes, attributesResult); 182Assert.Same(result, tab.GetProperties(context, component, attributes));
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (1)
30Assert.Same(attribute, ToolStripItemDesignerAvailabilityAttribute.Default);
System\Windows\Forms\DockingAttributeTests.cs (1)
31Assert.Same(attribute, DockingAttribute.Default);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (2)
26Assert.Same(graphics, e.Graphics); 29Assert.Same(header, e.Header);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
27Assert.Same(graphics, e.Graphics); 28Assert.Same(item, e.Item);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (4)
27Assert.Same(graphics, e.Graphics); 29Assert.Same(item, e.Item); 30Assert.Same(subItem, e.SubItem); 33Assert.Same(header, e.Header);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (4)
25Assert.Same(graphics, e.Graphics); 26Assert.Same(associatedWindow, e.AssociatedWindow); 27Assert.Same(associatedControl, e.AssociatedControl); 30Assert.Same(font, e.Font);
System\Windows\Forms\ErrorProviderTests.cs (56)
26Assert.Same(provider.Events, provider.Events); 28Assert.Same(provider.Icon, provider.Icon); 44Assert.Same(parentControl, provider.ContainerControl); 49Assert.Same(provider.Events, provider.Events); 51Assert.Same(provider.Icon, provider.Icon); 70Assert.Same(container, provider.Container); 76Assert.Same(provider.Events, provider.Events); 78Assert.Same(provider.Icon, provider.Icon); 197Assert.Same(value, provider.ContainerControl); 201Assert.Same(value, provider.ContainerControl); 214Assert.Same(value, provider.ContainerControl); 218Assert.Same(value, provider.ContainerControl); 300Assert.Same(value, provider.DataSource); 301Assert.Same(dataMember, provider.DataMember); 347Assert.Same(value, provider.DataSource); 362Assert.Same(value, provider.DataSource); 381Assert.Same(value, provider.DataSource); 386Assert.Same(value, provider.DataSource); 399Assert.Same(value, provider.DataSource); 404Assert.Same(value, provider.DataSource); 418Assert.Same(value, provider.DataSource); 422Assert.Same(value, provider.DataSource); 444Assert.Same(value, provider.DataSource); 448Assert.Same(value, provider.DataSource); 472Assert.Same(value, provider.DataSource); 473Assert.Same(dataMember, provider.DataMember); 487Assert.Same(value, provider.DataSource); 502Assert.Same(value, provider.DataSource); 546Assert.Same(value, provider.Icon); 550Assert.Same(value, provider.Icon); 617Assert.Same(provider, sender); 618Assert.Same(EventArgs.Empty, e); 674Assert.Same(value, provider.Site); 678Assert.Same(value, provider.Site); 700Assert.Same(value, provider.Site); 704Assert.Same(value, provider.Site); 740Assert.Same(mockSite.Object, provider.Site); 741Assert.Same(expected, provider.ContainerControl); 759Assert.Same(value, provider.Tag); 763Assert.Same(value, provider.Tag); 788Assert.Same(newDataSource, provider.DataSource); 789Assert.Same(newDataMember, provider.DataMember); 793Assert.Same(newDataSource, provider.DataSource); 794Assert.Same(newDataMember, provider.DataMember); 822Assert.Same(newDataSource, provider.DataSource); 823Assert.Same(newDataMember, provider.DataMember); 827Assert.Same(newDataSource, provider.DataSource); 828Assert.Same(newDataMember, provider.DataMember); 841Assert.Same(newDataSource, provider.DataSource); 846Assert.Same(newDataSource, provider.DataSource); 1011Assert.Same(provider, sender); 1012Assert.Same(eventArgs, e); 1164Assert.Same(newParent, control.Parent); 1170Assert.Same(originalParent, control.Parent); 1196Assert.Same(newParent, control.Parent); 1202Assert.Same(originalParent, control.Parent);
System\Windows\Forms\FileDialogTests.cs (14)
23Assert.Same(dialog.CustomPlaces, dialog.CustomPlaces); 28Assert.Same(dialog.Events, dialog.Events); 31Assert.Same(dialog.FileNames, dialog.FileNames); 61Assert.Same(dialog.CustomPlaces, dialog.CustomPlaces); 66Assert.Same(dialog.Events, dialog.Events); 69Assert.Same(dialog.FileNames, dialog.FileNames); 91Assert.Same(SubFileDialog.EventFileOk, SubFileDialog.EventFileOk); 285Assert.Same(dialog.FileNames, dialog.FileNames); 300Assert.Same(dialog.FileNames, dialog.FileNames); 565Assert.Same(dialog, sender); 566Assert.Same(eventArgs, e); 617Assert.Same(dialog.CustomPlaces, dialog.CustomPlaces); 622Assert.Same(dialog.Events, dialog.Events); 625Assert.Same(dialog.FileNames, dialog.FileNames);
System\Windows\Forms\FlowLayoutPanelTests.cs (15)
49Assert.Same(control.Controls, control.Controls); 50Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(Cursors.Default, control.DefaultCursor); 62Assert.Same(control.DockPadding, control.DockPadding); 70Assert.Same(control.Events, control.Events); 79Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 86Assert.Same(control.LayoutEngine, control.LayoutEngine); 112Assert.Same(control.VerticalScroll, control.VerticalScroll); 137Assert.Same(createParams, control.CreateParams); 152Assert.Same(control, sender); 153Assert.Same(control, e.AffectedControl); 187Assert.Same(control, sender); 188Assert.Same(control, e.AffectedControl); 367Assert.Same(parent, sender); 368Assert.Same(child, eventArgs.AffectedControl);
System\Windows\Forms\FlowLayoutSettingsTests.cs (6)
24Assert.Same(control, sender); 25Assert.Same(control, e.AffectedControl); 68Assert.Same(control, sender); 69Assert.Same(control, e.AffectedControl); 186Assert.Same(parent, sender); 187Assert.Same(child, eventArgs.AffectedControl);
System\Windows\Forms\FolderBrowserDialogTests.cs (4)
22Assert.Same(dialog.SelectedPaths, dialog.SelectedPaths); 174Assert.Same(dialog.SelectedPaths, dialog.SelectedPaths); 188Assert.Same(dialog.SelectedPaths, dialog.SelectedPaths); 300Assert.Same(dialog.SelectedPaths, dialog.SelectedPaths);
System\Windows\Forms\FontDialogTests.cs (9)
24Assert.Same(dialog.Events, dialog.Events); 54Assert.Same(dialog.Events, dialog.Events); 235Assert.Same(font, dialog.Font); 283Assert.Same(font, dialog.Font); 337Assert.Same(font, dialog.Font); 354Assert.Same(font, dialog.Font); 613Assert.Same(dialog.Events, dialog.Events); 729Assert.Same(dialog, sender); 730Assert.Same(eventArgs, e);
System\Windows\Forms\Form.ControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\FormTests.cs (50)
44Assert.Same(control.BindingContext, control.BindingContext); 62Assert.Same(control.Controls, control.Controls); 84Assert.Same(control.DockPadding, control.DockPadding); 92Assert.Same(control.Events, control.Events); 102Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 114Assert.Same(control.LayoutEngine, control.LayoutEngine); 156Assert.Same(control, control.TopLevelControl); 162Assert.Same(control.VerticalScroll, control.VerticalScroll); 186Assert.Same(createParams, control.CreateParams); 938Assert.Same(value, control.Parent); 944Assert.Same(value, control.Parent); 961Assert.Same(value, control.Parent); 968Assert.Same(value, control.Parent); 1085Assert.Same(value, control.Parent); 1091Assert.Same(value, control.Parent); 1105Assert.Same(parent, control.Parent); 1106Assert.Same(control, Assert.Single(parent.Controls)); 1111Assert.Same(parent, control.Parent); 1112Assert.Same(control, Assert.Single(parent.Controls)); 1133Assert.Same(value, control.Parent); 1142Assert.Same(value, control.Parent); 1161Assert.Same(control, sender); 1162Assert.Same(EventArgs.Empty, e); 1169Assert.Same(parent, control.Parent); 1174Assert.Same(parent, control.Parent); 1185Assert.Same(parent, control.Parent); 1223Assert.Same(oldParent, control.MdiParent); 2136Assert.Same(control, sender); 2137Assert.Same(EventArgs.Empty, e); 2143Assert.Same(control, sender); 2144Assert.Same(EventArgs.Empty, e); 2196Assert.Same(control, sender); 2197Assert.Same(EventArgs.Empty, e); 2248Assert.Same(control, sender); 2249Assert.Same(EventArgs.Empty, e); 2299Assert.Same(control, sender); 2300Assert.Same(EventArgs.Empty, e); 2306Assert.Same(control, sender); 2307Assert.Same(EventArgs.Empty, e); 2362Assert.Same(control, sender); 2363Assert.Same(EventArgs.Empty, e); 2473Assert.Same(control, sender); 2474Assert.Same(eventArgs, e); 2500Assert.Same(control, sender); 2501Assert.Same(eventArgs, e); 2526Assert.Same(control, sender); 2527Assert.Same(eventArgs, e); 2553Assert.Same(control, sender); 2554Assert.Same(eventArgs, e); 2615Assert.Same(parent, owner);
System\Windows\Forms\GridItemCollectionTests.cs (2)
16Assert.Same(collection, GridItemCollection.Empty); 26Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\GridItemTests.cs (2)
41Assert.Same(value, item.Tag); 45Assert.Same(value, item.Tag);
System\Windows\Forms\GroupBoxTests.cs (60)
45Assert.Same(control.Controls, control.Controls); 47Assert.Same(Cursors.Default, control.Cursor); 48Assert.Same(Cursors.Default, control.DefaultCursor); 61Assert.Same(control.Events, control.Events); 74Assert.Same(control.LayoutEngine, control.LayoutEngine); 122Assert.Same(createParams, control.CreateParams); 150Assert.Same(createParams, control.CreateParams); 212Assert.Same(control, sender); 213Assert.Same(EventArgs.Empty, e); 277Assert.Same(parent, sender); 278Assert.Same(control, e.AffectedControl); 326Assert.Same(parent, sender); 327Assert.Same(control, e.AffectedControl); 425Assert.Same(parent, sender); 426Assert.Same(control, e.AffectedControl); 498Assert.Same(parent, sender); 499Assert.Same(control, e.AffectedControl); 1026Assert.Same(control, sender); 1027Assert.Same(EventArgs.Empty, e); 1157Assert.Same(control, sender); 1229Assert.Same(parent, sender); 1230Assert.Same(control, e.AffectedControl); 1333Assert.Same(parent, sender); 1334Assert.Same(control, e.AffectedControl); 1384Assert.Same(control, instance.Owner); 1399Assert.Same(control, instance.Owner); 1457Assert.Same(control, sender); 1458Assert.Same(eventArgs, e); 1481Assert.Same(control, sender); 1482Assert.Same(eventArgs, e); 1505Assert.Same(control, sender); 1506Assert.Same(eventArgs, e); 1553Assert.Same(control, sender); 1554Assert.Same(eventArgs, e); 1589Assert.Same(control, sender); 1590Assert.Same(eventArgs, e); 1613Assert.Same(control, sender); 1614Assert.Same(eventArgs, e); 1637Assert.Same(control, sender); 1638Assert.Same(eventArgs, e); 1661Assert.Same(control, sender); 1662Assert.Same(eventArgs, e); 1685Assert.Same(control, sender); 1686Assert.Same(eventArgs, e); 1709Assert.Same(control, sender); 1710Assert.Same(eventArgs, e); 1733Assert.Same(control, sender); 1734Assert.Same(eventArgs, e); 1757Assert.Same(control, sender); 1758Assert.Same(eventArgs, e); 1781Assert.Same(control, sender); 1782Assert.Same(eventArgs, e); 1805Assert.Same(control, sender); 1806Assert.Same(eventArgs, e); 1865Assert.Same(control, sender); 1866Assert.Same(eventArgs, e); 1911Assert.Same(control, sender); 1912Assert.Same(eventArgs, e); 2277Assert.Same(control, sender); 2278Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\HelpProviderTests.cs (15)
19Assert.Same(provider.Events, provider.Events); 64Assert.Same(value, provider.Tag); 68Assert.Same(value, provider.Tag); 196Assert.Same(keyword, provider.GetHelpKeyword(control)); 204Assert.Same(keyword, provider.GetHelpKeyword(control)); 225Assert.Same(keyword, provider.GetHelpKeyword(control)); 232Assert.Same(keyword, provider.GetHelpKeyword(control)); 263Assert.Same(keyword, provider.GetHelpKeyword(control)); 271Assert.Same(keyword, provider.GetHelpKeyword(control)); 361Assert.Same(helpString, provider.GetHelpString(control)); 367Assert.Same(helpString, provider.GetHelpString(control)); 381Assert.Same(helpString, provider.GetHelpString(control)); 387Assert.Same(helpString, provider.GetHelpString(control)); 401Assert.Same(helpString, provider.GetHelpString(control)); 407Assert.Same(helpString, provider.GetHelpString(control));
System\Windows\Forms\HScrollBarTests.cs (8)
49Assert.Same(control.Controls, control.Controls); 51Assert.Same(Cursors.Default, control.Cursor); 52Assert.Same(Cursors.Default, control.DefaultCursor); 69Assert.Same(control.Events, control.Events); 82Assert.Same(control.LayoutEngine, control.LayoutEngine); 136Assert.Same(createParams, control.CreateParams); 164Assert.Same(control, sender); 165Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\HtmlDocumentTests.cs (12)
563Assert.Same(domDocument, document.DomDocument); 1477Assert.Same(EventArgs.Empty, e); 2007Assert.Same(document, sender); 2045Assert.Same(document, sender); 2083Assert.Same(document, sender); 2121Assert.Same(document, sender); 2159Assert.Same(document, sender); 2197Assert.Same(document, sender); 2235Assert.Same(document, sender); 2273Assert.Same(document, sender); 2311Assert.Same(document, sender); 2349Assert.Same(document, sender);
System\Windows\Forms\HtmlElementTests.cs (23)
167Assert.Same(domElement, element.DomElement); 1588Assert.Same(EventArgs.Empty, e); 1629Assert.Same(EventArgs.Empty, e); 1671Assert.Same(EventArgs.Empty, e); 2555Assert.Same(element, sender); 2596Assert.Same(element, sender); 2637Assert.Same(element, sender); 2678Assert.Same(element, sender); 2719Assert.Same(element, sender); 2760Assert.Same(element, sender); 2801Assert.Same(element, sender); 2842Assert.Same(element, sender); 2883Assert.Same(element, sender); 2924Assert.Same(element, sender); 2965Assert.Same(element, sender); 3006Assert.Same(element, sender); 3047Assert.Same(element, sender); 3088Assert.Same(element, sender); 3129Assert.Same(element, sender); 3170Assert.Same(element, sender); 3211Assert.Same(element, sender); 3252Assert.Same(element, sender); 3293Assert.Same(element, sender);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (1)
1625Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\ImageListTests.cs (5)
20Assert.Same(list.Images, list.Images); 36Assert.Same(container, list.Container); 38Assert.Same(list.Images, list.Images); 130Assert.Same(list, sender); 311Assert.Same(list, sender);
System\Windows\Forms\LabelTests.cs (23)
45Assert.Same(control.Controls, control.Controls); 47Assert.Same(Cursors.Default, control.Cursor); 48Assert.Same(Cursors.Default, control.DefaultCursor); 61Assert.Same(control.Events, control.Events); 79Assert.Same(control.LayoutEngine, control.LayoutEngine); 133Assert.Same(createParams, control.CreateParams); 432Assert.Same(label, sender); 433Assert.Same(EventArgs.Empty, e); 506Assert.Same(image1, label.BackgroundImage); 510Assert.Same(image1, label.BackgroundImage); 515Assert.Same(image2, label.BackgroundImage); 529Assert.Same(label, sender); 530Assert.Same(EventArgs.Empty, e); 583Assert.Same(label, sender); 584Assert.Same(EventArgs.Empty, e); 688Assert.Same(imageList, label.ImageList); 745Assert.Same(label, sender); 767Assert.Same(label, sender); 789Assert.Same(label, sender); 811Assert.Same(label, sender); 812Assert.Same(EventArgs.Empty, e); 832Assert.Same(label, sender); 833Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (25)
21Assert.Same(settings.ColumnStyles, settings.ColumnStyles); 24Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 27Assert.Same(settings.RowStyles, settings.RowStyles); 38Assert.Same(settings.ColumnStyles, settings.ColumnStyles); 40Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 43Assert.Same(settings.RowStyles, settings.RowStyles); 56Assert.Same(control, sender); 57Assert.Same(control, e.AffectedControl); 93Assert.Same(control, sender); 94Assert.Same(control, e.AffectedControl); 130Assert.Same(control, sender); 131Assert.Same(control, e.AffectedControl); 511Assert.Same(parent, sender); 512Assert.Same(child, eventArgs.AffectedControl); 584Assert.Same(parent, sender); 585Assert.Same(child, eventArgs.AffectedControl); 730Assert.Same(parent, sender); 731Assert.Same(child, eventArgs.AffectedControl); 965Assert.Same(parent, sender); 966Assert.Same(child, eventArgs.AffectedControl); 1206Assert.Same(parent, sender); 1207Assert.Same(child, eventArgs.AffectedControl); 1441Assert.Same(parent, sender); 1442Assert.Same(child, eventArgs.AffectedControl); 1849Assert.Same(result.LayoutEngine, result.LayoutEngine);
System\Windows\Forms\LinkTests.cs (7)
54Assert.Same(linkData, link.LinkData); 69Assert.Same(value, link.Description); 73Assert.Same(value, link.Description); 121Assert.Same(value, link.LinkData); 125Assert.Same(value, link.LinkData); 166Assert.Same(value, link.Tag); 170Assert.Same(value, link.Tag);
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (2)
32Assert.Same(collection, collection.SyncRoot); 44Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (34)
89Assert.Same(collection, collection.SyncRoot); 101Assert.Same(collection, collection.SyncRoot); 922Assert.Same(owner, sender); 923Assert.Same(EventArgs.Empty, e); 995Assert.Same(owner, sender); 996Assert.Same(EventArgs.Empty, e); 1072Assert.Same(owner, sender); 1073Assert.Same(EventArgs.Empty, e); 1172Assert.Same(owner, sender); 1173Assert.Same(EventArgs.Empty, e); 5740Assert.Same(owner, sender); 5741Assert.Same(EventArgs.Empty, e); 5802Assert.Same(owner, sender); 5803Assert.Same(EventArgs.Empty, e); 6595Assert.Same(owner, sender); 6596Assert.Same(EventArgs.Empty, e); 6657Assert.Same(owner, sender); 6658Assert.Same(EventArgs.Empty, e); 7727Assert.Same(owner, sender); 7728Assert.Same(EventArgs.Empty, e); 7800Assert.Same(owner, sender); 7801Assert.Same(EventArgs.Empty, e); 7877Assert.Same(owner, sender); 7878Assert.Same(EventArgs.Empty, e); 7977Assert.Same(owner, sender); 7978Assert.Same(EventArgs.Empty, e); 11062Assert.Same(owner, sender); 11063Assert.Same(EventArgs.Empty, e); 11124Assert.Same(owner, sender); 11125Assert.Same(EventArgs.Empty, e); 11917Assert.Same(owner, sender); 11918Assert.Same(EventArgs.Empty, e); 11979Assert.Same(owner, sender); 11980Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ListBox.SelectedIndexCollectionTests.cs (2)
33Assert.Same(collection, collection.SyncRoot); 45Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (2)
33Assert.Same(collection, collection.SyncRoot); 45Assert.Same(collection, collection.SyncRoot);
System\Windows\Forms\ListBoxTests.cs (89)
47Assert.Same(control.Controls, control.Controls); 49Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(control.CustomTabOffsets, control.CustomTabOffsets); 54Assert.Same(Cursors.Default, control.DefaultCursor); 69Assert.Same(control.Events, control.Events); 88Assert.Same(control.Items, control.Items); 90Assert.Same(control.LayoutEngine, control.LayoutEngine); 112Assert.Same(control.SelectedIndices, control.SelectedIndices); 115Assert.Same(control.SelectedItems, control.SelectedItems); 154Assert.Same(createParams, control.CreateParams); 180Assert.Same(createParams, control.CreateParams); 206Assert.Same(createParams, control.CreateParams); 232Assert.Same(createParams, control.CreateParams); 259Assert.Same(createParams, control.CreateParams); 288Assert.Same(createParams, control.CreateParams); 316Assert.Same(createParams, control.CreateParams); 343Assert.Same(createParams, control.CreateParams); 412Assert.Same(control, sender); 413Assert.Same(EventArgs.Empty, e); 480Assert.Same(value, control.BackgroundImage); 485Assert.Same(value, control.BackgroundImage); 496Assert.Same(control, sender); 497Assert.Same(EventArgs.Empty, e); 505Assert.Same(image1, control.BackgroundImage); 510Assert.Same(image1, control.BackgroundImage); 516Assert.Same(image2, control.BackgroundImage); 527Assert.Same(image1, control.BackgroundImage); 555Assert.Same(control, sender); 556Assert.Same(EventArgs.Empty, e); 801Assert.Same(value, control.DataSource); 808Assert.Same(value, control.DataSource); 822Assert.Same(control, sender); 823Assert.Same(EventArgs.Empty, e); 828Assert.Same(control, sender); 829Assert.Same(EventArgs.Empty, e); 838Assert.Same(dataSource1, control.DataSource); 844Assert.Same(dataSource1, control.DataSource); 851Assert.Same(dataSource2, control.DataSource); 865Assert.Same(dataSource1, control.DataSource); 940Assert.Same(parent, sender); 941Assert.Same(control, e.AffectedControl); 1203Assert.Same(control, sender); 1204Assert.Same(EventArgs.Empty, e); 1212Assert.Same(font1, control.Font); 1217Assert.Same(font1, control.Font); 1223Assert.Same(font2, control.Font); 1234Assert.Same(font1, control.Font); 1309Assert.Same(control, sender); 1310Assert.Same(EventArgs.Empty, e); 1860Assert.Same(result, control.Items); 1861Assert.Same(control.Items, control.Items); 2197Assert.Same(control, sender); 2198Assert.Same(EventArgs.Empty, e); 2691Assert.Same(control, sender); 2692Assert.Same(EventArgs.Empty, e); 3215Assert.Same(control, sender); 3216Assert.Same(EventArgs.Empty, e); 4270Assert.Same(control, sender); 4762Assert.Same(control, instance.Owner); 5498Assert.Same(control, sender); 5499Assert.Same(eventArgs, e); 5531Assert.Same(control, sender); 5532Assert.Same(eventArgs, e); 5555Assert.Same(control, sender); 5556Assert.Same(eventArgs, e); 5581Assert.Same(control, sender); 5582Assert.Same(eventArgs, e); 5614Assert.Same(control, sender); 5615Assert.Same(eventArgs, e); 5653Assert.Same(control, sender); 5654Assert.Same(eventArgs, e); 5677Assert.Same(control, sender); 5678Assert.Same(eventArgs, e); 5701Assert.Same(control, sender); 5702Assert.Same(eventArgs, e); 5725Assert.Same(control, sender); 5726Assert.Same(eventArgs, e); 5732Assert.Same(control, sender); 5733Assert.Same(eventArgs, e); 5768Assert.Same(control, sender); 5769Assert.Same(eventArgs, e); 5775Assert.Same(control, sender); 5776Assert.Same(eventArgs, e); 5830Assert.Same(control, sender); 5831Assert.Same(eventArgs, e); 5837Assert.Same(control, sender); 5838Assert.Same(eventArgs, e); 5866Assert.Same(control, sender); 5867Assert.Same(eventArgs, e);
System\Windows\Forms\ListControlTests.cs (156)
46Assert.Same(control.Controls, control.Controls); 48Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(Cursors.Default, control.DefaultCursor); 65Assert.Same(control.Events, control.Events); 80Assert.Same(control.LayoutEngine, control.LayoutEngine); 130Assert.Same(createParams, control.CreateParams); 148Assert.Same(value, control.BindingContext); 156Assert.Same(value, control.BindingContext); 173Assert.Same(value, control.BindingContext); 181Assert.Same(value, control.BindingContext); 199Assert.Same(value, control.BindingContext); 200Assert.Same(dataSource, control.DataSource); 202Assert.Same(value[dataSource], control.DataManager); 207Assert.Same(value, control.BindingContext); 208Assert.Same(dataSource, control.DataSource); 210Assert.Same(value[dataSource], control.DataManager); 226Assert.Same(value, control.BindingContext); 227Assert.Same(dataSource, control.DataSource); 229Assert.Same(value[dataSource], control.DataManager); 234Assert.Same(value, control.BindingContext); 235Assert.Same(dataSource, control.DataSource); 237Assert.Same(value[dataSource], control.DataManager); 254Assert.Same(value, control.BindingContext); 255Assert.Same(dataSource, control.DataSource); 257Assert.Same(value[dataSource], control.DataManager); 262Assert.Same(value, control.BindingContext); 263Assert.Same(dataSource, control.DataSource); 265Assert.Same(value[dataSource], control.DataManager); 283Assert.Same(value, control.BindingContext); 284Assert.Same(dataSource, control.DataSource); 286Assert.Same(value[dataSource], control.DataManager); 291Assert.Same(dataSource, control.DataSource); 293Assert.Same(value[dataSource], control.DataManager); 304Assert.Same(control, sender); 305Assert.Same(EventArgs.Empty, e); 313Assert.Same(context1, control.BindingContext); 318Assert.Same(context1, control.BindingContext); 324Assert.Same(context2, control.BindingContext); 335Assert.Same(context1, control.BindingContext); 384Assert.Same(dataSource, items); 429Assert.Same(dataSource, items); 460Assert.Same(dataSource, items); 503Assert.Same(dataSource[0], value); 530Assert.Same(dataSource[0], value); 568Assert.Same(value, control.DataSource); 575Assert.Same(value, control.DataSource); 591Assert.Same(value, control.DataSource); 598Assert.Same(value, control.DataSource); 614Assert.Same(value, control.DataSource); 621Assert.Same(value, control.DataSource); 639Assert.Same(value, control.DataSource); 646Assert.Same(value, control.DataSource); 661Assert.Same(value, control.DataSource); 680Assert.Same(value, control.DataSource); 699Assert.Same(value, control.DataSource); 719Assert.Same(originalValue, control.DataSource); 725Assert.Same(value, control.DataSource); 744Assert.Same(value, control.DataSource); 749Assert.Same(value, control.DataSource); 763Assert.Same(value, control.DataSource); 768Assert.Same(value, control.DataSource); 782Assert.Same(value, control.DataSource); 787Assert.Same(value, control.DataSource); 801Assert.Same(value, control.DataSource); 806Assert.Same(value, control.DataSource); 820Assert.Same(value, control.DataSource); 825Assert.Same(value, control.DataSource); 841Assert.Same(originalValue, control.DataSource); 848Assert.Same(value, control.DataSource); 864Assert.Same(value, control.DataSource); 872Assert.Same(context[value], control.DataManager); 877Assert.Same(value, control.DataSource); 885Assert.Same(context[value], control.DataManager); 901Assert.Same(value, control.DataSource); 909Assert.Same(context[value], control.DataManager); 914Assert.Same(value, control.DataSource); 922Assert.Same(context[value], control.DataManager); 938Assert.Same(value, control.DataSource); 940Assert.Same(context[value], control.DataManager); 944Assert.Same(value, control.DataSource); 946Assert.Same(context[value], control.DataManager); 961Assert.Same(value, control.DataSource); 969Assert.Same(context[value], control.DataManager); 974Assert.Same(value, control.DataSource); 982Assert.Same(context[value], control.DataManager); 994Assert.Same(control, sender); 995Assert.Same(EventArgs.Empty, e); 1000Assert.Same(control, sender); 1001Assert.Same(EventArgs.Empty, e); 1010Assert.Same(dataSource1, control.DataSource); 1016Assert.Same(dataSource1, control.DataSource); 1023Assert.Same(dataSource2, control.DataSource); 1037Assert.Same(dataSource1, control.DataSource); 1056Assert.Same(value, control.DataSource); 1124Assert.Same(dataSource, control.DataSource); 1131Assert.Same(dataSource, control.DataSource); 1174Assert.Same(dataSource, control.DataSource); 1175Assert.Same(context[dataSource], control.DataManager); 1181Assert.Same(dataSource, control.DataSource); 1182Assert.Same(context[dataSource], control.DataManager); 1204Assert.Same(context[dataSource], control.DataManager); 1211Assert.Same(context[dataSource], control.DataManager); 1229Assert.Same(dataSource, control.DataSource); 1237Assert.Same(context[dataSource], control.DataManager); 1244Assert.Same(dataSource, control.DataSource); 1252Assert.Same(context[dataSource], control.DataManager); 1266Assert.Same(control, sender); 1267Assert.Same(EventArgs.Empty, e); 1272Assert.Same(control, sender); 1273Assert.Same(EventArgs.Empty, e); 1366Assert.Same(value, control.FormatInfo); 1371Assert.Same(value, control.FormatInfo); 1385Assert.Same(value, control.FormatInfo); 1390Assert.Same(value, control.FormatInfo); 1429Assert.Same(control, sender); 1430Assert.Same(EventArgs.Empty, e); 1538Assert.Same(control, sender); 1539Assert.Same(EventArgs.Empty, e); 1652Assert.Same(control, sender); 1653Assert.Same(EventArgs.Empty, e); 1770Assert.Same(dataSource, control.DataSource); 1773Assert.Same(context[dataSource], control.DataManager); 1778Assert.Same(dataSource, control.DataSource); 1781Assert.Same(context[dataSource], control.DataManager); 1818Assert.Same(dataSource, control.DataSource); 1821Assert.Same(context[dataSource], control.DataManager); 1826Assert.Same(dataSource, control.DataSource); 1829Assert.Same(context[dataSource], control.DataManager); 1858Assert.Same(control, sender); 1859Assert.Same(EventArgs.Empty, e); 1864Assert.Same(control, sender); 1865Assert.Same(EventArgs.Empty, e); 2032Assert.Same(control, sender); 2033Assert.Same(EventArgs.Empty, e); 2412Assert.Same(item, e.ListItem); 2454Assert.Same(item, e.ListItem); 2606Assert.Same(control, sender); 2607Assert.Same(eventArgs, e); 2630Assert.Same(control, sender); 2631Assert.Same(eventArgs, e); 2654Assert.Same(control, sender); 2655Assert.Same(eventArgs, e); 2685Assert.Same(control, sender); 2686Assert.Same(eventArgs, e); 2709Assert.Same(control, sender); 2710Assert.Same(eventArgs, e); 2733Assert.Same(control, sender); 2734Assert.Same(eventArgs, e); 2757Assert.Same(control, sender); 2758Assert.Same(eventArgs, e); 2781Assert.Same(control, sender); 2782Assert.Same(eventArgs, e); 2805Assert.Same(control, sender); 2806Assert.Same(eventArgs, e); 2829Assert.Same(control, sender); 2830Assert.Same(eventArgs, e);
System\Windows\Forms\ListViewGroupCollectionTests.cs (57)
19Assert.Same(collection, collection.SyncRoot); 30Assert.Same(group, collection[0]); 53Assert.Same(group, collection[0]); 54Assert.Same(listView, group.ListView); 68Assert.Same(group, collection[0]); 69Assert.Same(listView, group.ListView); 87Assert.Same(group, Assert.Single(collection)); 88Assert.Same(listView, group.ListView); 108Assert.Same(group, Assert.Single(collection)); 109Assert.Same(listView, group.ListView); 127Assert.Same(group1, collection[0]); 144Assert.Same(group, collection[0]); 145Assert.Same(listView, group.ListView); 165Assert.Same(oldGroup, Assert.Single(collection.Cast<ListViewGroup>())); 197Assert.Same(group, collection[0]); 220Assert.Same(group, collection[0]); 235Assert.Same(group1, collection[0]); 323Assert.Same(group3, collection[expectedIndex]); 346Assert.Same(group1, collection[0]); 347Assert.Same(group2, collection[1]); 374Assert.Same(group1, Assert.Single(collection)); 375Assert.Same(listView, group1.ListView); 381Assert.Same(listView, group2.ListView); 393Assert.Same(group1, Assert.Single(collection)); 394Assert.Same(listView, group1.ListView); 400Assert.Same(listView, group2.ListView); 416Assert.Same(group, Assert.Single(collection)); 417Assert.Same(listView, group.ListView); 435Assert.Same(group1, Assert.Single(collection)); 436Assert.Same(listView, group1.ListView); 469Assert.Same(group, collection[0]); 470Assert.Same(listView, group.ListView); 521Assert.Same(group, Assert.Single(collection)); 522Assert.Same(listView, group.ListView); 546Assert.Same(group1, collection[0]); 547Assert.Same(group2, collection[1]); 566Assert.Same(group1, collection[0]); 567Assert.Same(group2, collection[1]); 569Assert.Same(group1, otherCollection[0]); 570Assert.Same(group2, otherCollection[1]); 589Assert.Same(group, Assert.Single(collection.Cast<ListViewGroup>())); 745Assert.Same(group, collection[1]); 746Assert.Same(listView, group.ListView); 760Assert.Same(group, collection[1]); 761Assert.Same(listView, group.ListView); 777Assert.Same(group, Assert.Single(collection)); 778Assert.Same(listView, group.ListView); 796Assert.Same(group, Assert.Single(collection)); 797Assert.Same(listView, group.ListView); 815Assert.Same(group, collection[0]); 816Assert.Same(listView, group.ListView); 836Assert.Same(group1, collection[0]); 886Assert.Same(group, collection[1]); 887Assert.Same(listView, group.ListView); 922Assert.Same(group, Assert.Single(collection)); 946Assert.Same(group, Assert.Single(collection)); 987Assert.Same(group, Assert.Single(collection));
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
82Assert.Same(group, converter.ConvertFrom(mockContext.Object, null, value));
System\Windows\Forms\ListViewGroupTests.cs (7)
24Assert.Same(group.Items, group.Items); 45Assert.Same(group.Items, group.Items); 103Assert.Same(group.Items, group.Items); 1180Assert.Same(value, group.Name); 1184Assert.Same(value, group.Name); 1309Assert.Same(value, group.Tag); 1313Assert.Same(value, group.Tag);
System\Windows\Forms\ListViewItemTests.cs (45)
35Assert.Same(item.SubItems, item.SubItems); 63Assert.Same(expectedImageKey, item.ImageKey); 73Assert.Same(item.SubItems, item.SubItems); 75Assert.Same(expectedText, item.Text); 111Assert.Same(item.SubItems, item.SubItems); 113Assert.Same(expectedText, item.Text); 139Assert.Same(expectedImageKey, item.ImageKey); 149Assert.Same(item.SubItems, item.SubItems); 151Assert.Same(expectedText, item.Text); 187Assert.Same(item.SubItems, item.SubItems); 189Assert.Same(expectedText, item.Text); 214Assert.Same(expectedImageKey, item.ImageKey); 224Assert.Same(item.SubItems, item.SubItems); 226Assert.Same(expectedText, item.Text); 261Assert.Same(item.SubItems, item.SubItems); 263Assert.Same(expectedText, item.Text); 289Assert.Same(expectedImageKey, item.ImageKey); 299Assert.Same(item.SubItems, item.SubItems); 301Assert.Same(expectedText, item.Text); 337Assert.Same(item.SubItems, item.SubItems); 339Assert.Same(expectedText, item.Text); 364Assert.Same(expectedImageKey, item.ImageKey); 374Assert.Same(expectedText, subItem.Text); 375Assert.Same(item.SubItems, item.SubItems); 377Assert.Same(expectedText, item.Text); 412Assert.Same(expectedText, subItem.Text); 413Assert.Same(item.SubItems, item.SubItems); 415Assert.Same(expectedText, item.Text); 440Assert.Same(expectedImageKey, item.ImageKey); 450Assert.Same(item.SubItems, item.SubItems); 452Assert.Same(expectedText, item.Text); 487Assert.Same(item.SubItems, item.SubItems); 489Assert.Same(expectedText, item.Text); 525Assert.Same(item.SubItems, item.SubItems); 527Assert.Same(expectedText, item.Text); 563Assert.Same(item.SubItems, item.SubItems); 601Assert.Same(item.SubItems, item.SubItems); 638Assert.Same(expectedText, subItem.Text); 639Assert.Same(item.SubItems, item.SubItems); 641Assert.Same(expectedText, item.Text); 677Assert.Same(item.SubItems, item.SubItems); 715Assert.Same(item.SubItems, item.SubItems); 752Assert.Same(item.SubItems, item.SubItems); 790Assert.Same(item.SubItems, item.SubItems); 821Assert.Same(item.SubItems, item.SubItems);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (82)
35Assert.Same(collection, collection.SyncRoot); 46Assert.Same(subItem, collection[0]); 73Assert.Same(subItem, collection[0]); 108Assert.Same(subItem, collection[0]); 135Assert.Same(subItem, collection[0]); 191Assert.Same(subItem, Assert.Single(collection)); 204Assert.Same(subItem, collection[i]); 237Assert.Same(subItem, collection[0]); 238Assert.Same(subItem, otherCollection[0]); 273Assert.Same(expectedText, subItem.Text); 295Assert.Same(subItem, Assert.Single(collection)); 320Assert.Same(subItem1, collection[0]); 321Assert.Same(subItem2, collection[1]); 337Assert.Same(subItem1, collection[0]); 338Assert.Same(subItem2, collection[1]); 339Assert.Same(subItem3, collection[2]); 340Assert.Same(subItem4, collection[3]); 362Assert.Same(subItem1, collection[0]); 363Assert.Same(subItem2, collection[1]); 364Assert.Same(subItem3, collection[2]); 365Assert.Same(subItem4, collection[3]); 366Assert.Same(subItem5, collection[4]); 367Assert.Same(subItem6, collection[5]); 368Assert.Same(subItem7, collection[6]); 369Assert.Same(subItem8, collection[7]); 370Assert.Same(subItem9, collection[8]); 626Assert.Same(subItem, collection[1]); 627Assert.Same(item, subItem._owner); 639Assert.Same(subItem, collection[0]); 675Assert.Same(subItem, collection[1]); 676Assert.Same(item, subItem._owner); 709Assert.Same(subItem, Assert.Single(collection)); 750Assert.Same(subItem, Assert.Single(collection)); 771Assert.Same(item, subItem2._owner); 772Assert.Same(item, subItem3._owner); 773Assert.Same(item, subItem4._owner); 779Assert.Same(item, subItem2._owner); 781Assert.Same(item, subItem4._owner); 787Assert.Same(item, subItem2._owner); 845Assert.Same(item, subItem._owner); 886Assert.Same(listViewItem, subItem._owner); 896Assert.Same(listViewItem, listViewItem.SubItems[1]._owner); 906Assert.Same(listViewItem, listViewItem.SubItems[1]._owner); 921Assert.Same(listViewItem, subItem1._owner); 922Assert.Same(listViewItem, subItem2._owner); 932Assert.Same(listViewItem, listViewItem.SubItems[1]._owner); 933Assert.Same(listViewItem, listViewItem.SubItems[2]._owner); 943Assert.Same(listViewItem, listViewItem.SubItems[1]._owner); 944Assert.Same(listViewItem, listViewItem.SubItems[2]._owner); 958Assert.Same(listViewItem, oldSubItem._owner); 959Assert.Same(listViewItem, subItem1._owner); 960Assert.Same(listViewItem, subItem1._owner); 964Assert.Same(listViewItem, listViewItem.SubItems[0]._owner); 980Assert.Same(listViewItem, subItem._owner); 995Assert.Same(listViewItem, oldSubItem1._owner); 996Assert.Same(listViewItem, oldSubItem2._owner); 1003Assert.Same(subItem1, listViewItem.SubItems[0]); 1004Assert.Same(subItem2, listViewItem.SubItems[1]); 1005Assert.Same(oldSubItem1, listViewItem.SubItems[2]); 1006Assert.Same(oldSubItem2, listViewItem.SubItems[3]); 1008Assert.Same(listViewItem, oldSubItem1._owner); 1009Assert.Same(listViewItem, oldSubItem2._owner); 1010Assert.Same(listViewItem, subItem1._owner); 1011Assert.Same(listViewItem, subItem2._owner); 1022Assert.Same(listViewItem, subItem._owner); 1023Assert.Same(listViewItem, oldSubItem._owner); 1028Assert.Same(listViewItem, listViewItem.SubItems[0]._owner); 1040Assert.Same(listViewItem, oldSubItem._owner); 1046Assert.Same(listViewItem, subItem._owner); 1059Assert.Same(listViewItem, defaultSubItem._owner); 1066Assert.Same(listViewItem, defaultSubItem._owner); 1067Assert.Same(listViewItem, subItem1._owner); 1068Assert.Same(listViewItem, subItem2._owner); 1079Assert.Same(listViewItem, subItem._owner); 1080Assert.Same(listViewItem, oldSubItem._owner); 1087Assert.Same(listViewItem, listViewItem.SubItems[0]._owner); 1098Assert.Same(listViewItem, subItem._owner); 1099Assert.Same(listViewItem, oldSubItem._owner); 1106Assert.Same(listViewItem, listViewItem.SubItems[0]._owner); 1118Assert.Same(listViewItem, subItem._owner); 1119Assert.Same(listViewItem, oldSubItem._owner); 1126Assert.Same(listViewItem, listViewItem.SubItems[0]._owner);
System\Windows\Forms\ListViewSubItemTests.cs (4)
278Assert.Same(value ?? Control.DefaultFont, subItem.Font); 282Assert.Same(value ?? Control.DefaultFont, subItem.Font); 493Assert.Same(value, subItem.Tag); 497Assert.Same(value, subItem.Tag);
System\Windows\Forms\ListViewTests.cs (70)
49Assert.Same(control.CheckedIndices, control.CheckedIndices); 51Assert.Same(control.CheckedItems, control.CheckedItems); 55Assert.Same(control.Columns, control.Columns); 60Assert.Same(control.Controls, control.Controls); 63Assert.Same(Cursors.Default, control.DefaultCursor); 76Assert.Same(control.Events, control.Events); 85Assert.Same(control.Groups, control.Groups); 96Assert.Same(control.InsertionMark, control.InsertionMark); 100Assert.Same(control.Items, control.Items); 105Assert.Same(control.LayoutEngine, control.LayoutEngine); 126Assert.Same(control.SelectedIndices, control.SelectedIndices); 128Assert.Same(control.SelectedItems, control.SelectedItems); 172Assert.Same(createParams, control.CreateParams); 525Assert.Same(control, sender); 526Assert.Same(EventArgs.Empty, e); 579Assert.Same(control, sender); 580Assert.Same(EventArgs.Empty, e); 1292Assert.Same(value, control.FocusedItem); 1297Assert.Same(value, control.FocusedItem); 1302Assert.Same(value, control.FocusedItem); 1387Assert.Same(control, sender); 1388Assert.Same(EventArgs.Empty, e); 1567Assert.Same(value, listView.GroupImageList); 1572Assert.Same(value, listView.GroupImageList); 1590Assert.Same(value, listView.GroupImageList); 1595Assert.Same(value, listView.GroupImageList); 1670Assert.Same(value, listView.GroupImageList); 1678Assert.Same(value, listView.GroupImageList); 1756Assert.Same(value, listView.GroupImageList); 1764Assert.Same(value, listView.GroupImageList); 1783Assert.Same(imageList1, listView.GroupImageList); 1792Assert.Same(imageList2, listView.GroupImageList); 1816Assert.Same(imageList1, listView.GroupImageList); 1832Assert.Same(imageList2, listView.GroupImageList); 2511Assert.Same(value, listView.LargeImageList); 2516Assert.Same(value, listView.LargeImageList); 2534Assert.Same(value, listView.LargeImageList); 2539Assert.Same(value, listView.LargeImageList); 2613Assert.Same(value, listView.LargeImageList); 2621Assert.Same(value, listView.LargeImageList); 2700Assert.Same(value, listView.LargeImageList); 2708Assert.Same(value, listView.LargeImageList); 2726Assert.Same(imageList1, listView.LargeImageList); 2735Assert.Same(imageList2, listView.LargeImageList); 2758Assert.Same(imageList1, listView.LargeImageList); 2774Assert.Same(imageList2, listView.LargeImageList); 3175Assert.Same(value, listView.SmallImageList); 3180Assert.Same(value, listView.SmallImageList); 3198Assert.Same(value, listView.SmallImageList); 3203Assert.Same(value, listView.SmallImageList); 3303Assert.Same(value, listView.SmallImageList); 3311Assert.Same(value, listView.SmallImageList); 3416Assert.Same(value, listView.SmallImageList); 3424Assert.Same(value, listView.SmallImageList); 3442Assert.Same(imageList1, listView.SmallImageList); 3451Assert.Same(imageList2, listView.SmallImageList); 3474Assert.Same(imageList1, listView.SmallImageList); 3490Assert.Same(imageList2, listView.SmallImageList); 3540Assert.Same(value, listView.StateImageList); 3545Assert.Same(value, listView.StateImageList); 3565Assert.Same(value, listView.StateImageList); 3570Assert.Same(value, listView.StateImageList); 3744Assert.Same(value, listView.StateImageList); 3752Assert.Same(value, listView.StateImageList); 3934Assert.Same(value, listView.StateImageList); 3942Assert.Same(value, listView.StateImageList); 3964Assert.Same(imageList1, listView.StateImageList); 3973Assert.Same(imageList2, listView.StateImageList); 3999Assert.Same(imageList1, listView.StateImageList); 4015Assert.Same(imageList2, listView.StateImageList);
System\Windows\Forms\MdiClient.ControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\MdiClientTests.cs (65)
41Assert.Same(control, Assert.IsType<MdiClient.ControlCollection>(control.Controls).Owner); 43Assert.Same(control.Controls, control.Controls); 45Assert.Same(Cursors.Default, control.Cursor); 58Assert.Same(control.LayoutEngine, control.LayoutEngine); 64Assert.Same(control.MdiChildren, control.MdiChildren); 114Assert.Same(control, sender); 115Assert.Same(EventArgs.Empty, e); 187Assert.Same(parentBackgroundImage, control.BackgroundImage); 191Assert.Same(image, control.BackgroundImage); 202Assert.Same(value, control.BackgroundImage); 207Assert.Same(value, control.BackgroundImage); 218Assert.Same(control, sender); 219Assert.Same(EventArgs.Empty, e); 227Assert.Same(image1, control.BackgroundImage); 232Assert.Same(image1, control.BackgroundImage); 238Assert.Same(image2, control.BackgroundImage); 249Assert.Same(image1, control.BackgroundImage); 297Assert.Same(control, sender); 298Assert.Same(EventArgs.Empty, e); 500Assert.Same(control, sender); 501Assert.Same(control, e.AffectedControl); 510Assert.Same(control, sender); 511Assert.Same(EventArgs.Empty, e); 519Assert.Same(control, sender); 520Assert.Same(EventArgs.Empty, e); 528Assert.Same(control, sender); 529Assert.Same(EventArgs.Empty, e); 595Assert.Same(control, sender); 596Assert.Same(control, e.AffectedControl); 605Assert.Same(control, sender); 606Assert.Same(EventArgs.Empty, e); 614Assert.Same(control, sender); 615Assert.Same(EventArgs.Empty, e); 623Assert.Same(control, sender); 624Assert.Same(EventArgs.Empty, e); 708Assert.Same(control, sender); 709Assert.Same(control, e.AffectedControl); 719Assert.Same(control, sender); 720Assert.Same(EventArgs.Empty, e); 729Assert.Same(control, sender); 730Assert.Same(EventArgs.Empty, e); 739Assert.Same(control, sender); 740Assert.Same(EventArgs.Empty, e); 749Assert.Same(parent, sender); 750Assert.Same(control, e.AffectedControl); 860Assert.Same(control, sender); 861Assert.Same(control, e.AffectedControl); 871Assert.Same(control, sender); 872Assert.Same(EventArgs.Empty, e); 881Assert.Same(control, sender); 882Assert.Same(EventArgs.Empty, e); 891Assert.Same(control, sender); 892Assert.Same(EventArgs.Empty, e); 901Assert.Same(parent, sender); 902Assert.Same(control, e.AffectedControl); 1022Assert.Same(control, sender); 1023Assert.Same(control, e.AffectedControl); 1033Assert.Same(control, sender); 1034Assert.Same(EventArgs.Empty, e); 1043Assert.Same(control, sender); 1044Assert.Same(EventArgs.Empty, e); 1053Assert.Same(control, sender); 1054Assert.Same(EventArgs.Empty, e); 1063Assert.Same(parent, sender); 1064Assert.Same(control, e.AffectedControl);
System\Windows\Forms\MdiControlStripTests.cs (3)
54Assert.Same(Cursors.Default, mdiControlStrip.DefaultCursor); 67Assert.Same(mdiControlStrip.DisplayedItems, mdiControlStrip.DisplayedItems); 79Assert.Same(mdiControlStrip.Events, mdiControlStrip.Events);
System\Windows\Forms\MenuStripTests.cs (34)
49Assert.Same(control.Controls, control.Controls); 51Assert.Same(Cursors.Default, control.Cursor); 52Assert.Same(Cursors.Default, control.DefaultCursor); 65Assert.Same(control.DisplayedItems, control.DisplayedItems); 69Assert.Same(control.DockPadding, control.DockPadding); 77Assert.Same(control.Events, control.Events); 89Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 100Assert.Same(control.Items, control.Items); 102Assert.Same(control.LayoutEngine, control.LayoutEngine); 114Assert.Same(control.OverflowButton, control.OverflowButton); 115Assert.Same(control, control.OverflowButton.GetCurrentParent()); 124Assert.Same(control.Renderer, control.Renderer); 144Assert.Same(control.VerticalScroll, control.VerticalScroll); 194Assert.Same(control, sender); 195Assert.Same(control, e.AffectedControl); 246Assert.Same(control, sender); 247Assert.Same(control, e.AffectedControl); 280Assert.Same(control, sender); 281Assert.Same(control, e.AffectedControl); 318Assert.Same(value, control.MdiWindowListItem); 323Assert.Same(value, control.MdiWindowListItem); 415Assert.Same(control, instance.Owner); 430Assert.Same(control, instance.Owner); 452Assert.Same(image, item.Image); 555Assert.Same(control, sender); 556Assert.Same(eventArgs, e); 589Assert.Same(control, sender); 590Assert.Same(eventArgs, e); 621Assert.Same(control, sender); 622Assert.Same(eventArgs, e); 655Assert.Same(control, sender); 656Assert.Same(eventArgs, e); 805Assert.Same(control, sender); 806Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\MonthCalendarTests.cs (83)
28Assert.Same(control.AnnuallyBoldedDates, control.AnnuallyBoldedDates); 35Assert.Same(control.BoldedDates, control.BoldedDates); 58Assert.Same(control.Controls, control.Controls); 60Assert.Same(Cursors.Default, control.Cursor); 61Assert.Same(Cursors.Default, control.DefaultCursor); 78Assert.Same(control.Events, control.Events); 91Assert.Same(control.LayoutEngine, control.LayoutEngine); 101Assert.Same(control.MonthlyBoldedDates, control.MonthlyBoldedDates); 161Assert.Same(createParams, control.CreateParams); 209Assert.Same(calendar.AnnuallyBoldedDates, calendar.AnnuallyBoldedDates); 224Assert.Same(calendar.AnnuallyBoldedDates, calendar.AnnuallyBoldedDates); 252Assert.Same(calendar.AnnuallyBoldedDates, calendar.AnnuallyBoldedDates); 270Assert.Same(calendar.AnnuallyBoldedDates, calendar.AnnuallyBoldedDates); 344Assert.Same(control, sender); 345Assert.Same(EventArgs.Empty, e); 380Assert.Same(value, control.BackgroundImage); 385Assert.Same(value, control.BackgroundImage); 396Assert.Same(control, sender); 397Assert.Same(EventArgs.Empty, e); 405Assert.Same(image1, control.BackgroundImage); 410Assert.Same(image1, control.BackgroundImage); 416Assert.Same(image2, control.BackgroundImage); 427Assert.Same(image1, control.BackgroundImage); 457Assert.Same(control, sender); 458Assert.Same(EventArgs.Empty, e); 537Assert.Same(calendar.BoldedDates, calendar.BoldedDates); 552Assert.Same(calendar.BoldedDates, calendar.BoldedDates); 580Assert.Same(calendar.BoldedDates, calendar.BoldedDates); 598Assert.Same(calendar.BoldedDates, calendar.BoldedDates); 990Assert.Same(control, sender); 991Assert.Same(EventArgs.Empty, e); 1273Assert.Same(control, sender); 1274Assert.Same(EventArgs.Empty, e); 1563Assert.Same(calendar.MonthlyBoldedDates, calendar.MonthlyBoldedDates); 1578Assert.Same(calendar.MonthlyBoldedDates, calendar.MonthlyBoldedDates); 1606Assert.Same(calendar.MonthlyBoldedDates, calendar.MonthlyBoldedDates); 1624Assert.Same(calendar.MonthlyBoldedDates, calendar.MonthlyBoldedDates); 1732Assert.Same(control, sender); 1733Assert.Same(control, e.AffectedControl); 1779Assert.Same(control, sender); 1780Assert.Same(control, e.AffectedControl); 1822Assert.Same(control, sender); 1823Assert.Same(EventArgs.Empty, e); 2294Assert.Same(control, instance.Owner); 2591Assert.Same(control, sender); 2592Assert.Same(EventArgs.Empty, e); 2598Assert.Same(control, sender); 2599Assert.Same(EventArgs.Empty, e); 2684Assert.Same(control, sender); 3367Assert.Same(control, sender); 3368Assert.Same(eventArgs, e); 3395Assert.Same(control, sender); 3396Assert.Same(eventArgs, e); 3438Assert.Same(control, sender); 3439Assert.Same(eventArgs, e); 3468Assert.Same(calendar, sender); 3469Assert.Same(eventArgs, e); 3492Assert.Same(calendar, sender); 3493Assert.Same(eventArgs, e); 3516Assert.Same(control, sender); 3517Assert.Same(eventArgs, e); 3540Assert.Same(control, sender); 3541Assert.Same(eventArgs, e); 3568Assert.Same(control, sender); 3569Assert.Same(eventArgs, e); 3611Assert.Same(control, sender); 3612Assert.Same(eventArgs, e); 3638Assert.Same(control, sender); 3639Assert.Same(eventArgs, e); 3664Assert.Same(control, sender); 3665Assert.Same(eventArgs, e); 3691Assert.Same(control, sender); 3692Assert.Same(eventArgs, e); 3717Assert.Same(control, sender); 3718Assert.Same(eventArgs, e); 3741Assert.Same(control, sender); 3742Assert.Same(eventArgs, e); 3765Assert.Same(control, sender); 3766Assert.Same(eventArgs, e); 3802Assert.Same(control, sender); 3803Assert.Same(eventArgs, e); 3849Assert.Same(control, sender); 3850Assert.Same(eventArgs, e);
System\Windows\Forms\NotifyIconTests.cs (14)
36Assert.Same(container, notifyIcon.Container); 206Assert.Same(value, notifyIcon.Icon); 210Assert.Same(value, notifyIcon.Icon); 224Assert.Same(value, notifyIcon.Icon); 228Assert.Same(value, notifyIcon.Icon); 240Assert.Same(value, notifyIcon.Icon); 244Assert.Same(value, notifyIcon.Icon); 269Assert.Same(value, notifyIcon.Icon); 274Assert.Same(value, notifyIcon.Icon); 295Assert.Same(value, notifyIcon.Icon); 300Assert.Same(value, notifyIcon.Icon); 311Assert.Same(value, notifyIcon.Icon); 322Assert.Same(value, notifyIcon.Tag); 326Assert.Same(value, notifyIcon.Tag);
System\Windows\Forms\OSFeatureTests.cs (3)
21Assert.Same(feature, OSFeature.Feature); 29Assert.Same(feature, OSFeature.LayeredWindows); 37Assert.Same(feature, OSFeature.Themes);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (2)
48Assert.Same(value, bag.Font); 53Assert.Same(value, bag.Font);
System\Windows\Forms\PageSetupDialogTests.cs (28)
23Assert.Same(dialog.MinMargins, dialog.MinMargins); 122Assert.Same(value, dialog.Document); 123Assert.Same(value?.DefaultPageSettings, dialog.PageSettings); 124Assert.Same(value?.PrinterSettings, dialog.PrinterSettings); 128Assert.Same(value, dialog.Document); 129Assert.Same(value?.DefaultPageSettings, dialog.PageSettings); 130Assert.Same(value?.PrinterSettings, dialog.PrinterSettings); 143Assert.Same(value, dialog.Document); 144Assert.Same(value.DefaultPageSettings, dialog.PageSettings); 145Assert.Same(value.PrinterSettings, dialog.PrinterSettings); 149Assert.Same(value, dialog.Document); 150Assert.Same(value.DefaultPageSettings, dialog.PageSettings); 151Assert.Same(value.PrinterSettings, dialog.PrinterSettings); 165Assert.Same(original.DefaultPageSettings, dialog.PageSettings); 166Assert.Same(original.PrinterSettings, dialog.PrinterSettings); 171Assert.Same(original.DefaultPageSettings, dialog.PageSettings); 172Assert.Same(original.PrinterSettings, dialog.PrinterSettings); 275Assert.Same(value, dialog.PageSettings); 280Assert.Same(value, dialog.PageSettings); 293Assert.Same(value, dialog.PageSettings); 298Assert.Same(value, dialog.PageSettings); 316Assert.Same(value, dialog.PrinterSettings); 321Assert.Same(value, dialog.PrinterSettings); 334Assert.Same(value, dialog.PrinterSettings); 339Assert.Same(value, dialog.PrinterSettings); 394Assert.Same(dialog.MinMargins, dialog.MinMargins); 426Assert.Same(container, dialog.Container); 430Assert.Same(dialog.MinMargins, dialog.MinMargins);
System\Windows\Forms\PaintEventArgsTests.cs (1)
66Assert.Same(g1, g2);
System\Windows\Forms\PanelTests.cs (39)
49Assert.Same(control.Controls, control.Controls); 63Assert.Same(control.DockPadding, control.DockPadding); 71Assert.Same(control.Events, control.Events); 79Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 86Assert.Same(control.LayoutEngine, control.LayoutEngine); 112Assert.Same(control.VerticalScroll, control.VerticalScroll); 135Assert.Same(createParams, control.CreateParams); 161Assert.Same(createParams, control.CreateParams); 200Assert.Same(control, sender); 201Assert.Same(EventArgs.Empty, e); 265Assert.Same(parent, sender); 266Assert.Same(control, e.AffectedControl); 314Assert.Same(parent, sender); 315Assert.Same(control, e.AffectedControl); 413Assert.Same(parent, sender); 414Assert.Same(control, e.AffectedControl); 486Assert.Same(parent, sender); 487Assert.Same(control, e.AffectedControl); 720Assert.Same(control, sender); 721Assert.Same(EventArgs.Empty, e); 801Assert.Same(control, sender); 896Assert.Same(control, sender); 897Assert.Same(eventArgs, e); 920Assert.Same(control, sender); 921Assert.Same(eventArgs, e); 944Assert.Same(control, sender); 945Assert.Same(eventArgs, e); 968Assert.Same(control, sender); 969Assert.Same(eventArgs, e); 975Assert.Same(control, sender); 976Assert.Same(control, e.AffectedControl); 1013Assert.Same(control, sender); 1014Assert.Same(eventArgs, e); 1020Assert.Same(control, sender); 1021Assert.Same(control, e.AffectedControl); 1095Assert.Same(control, sender); 1096Assert.Same(eventArgs, e); 1102Assert.Same(control, sender); 1103Assert.Same(control, e.AffectedControl);
System\Windows\Forms\PictureBoxTests.cs (147)
48Assert.Same(control.Controls, control.Controls); 50Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(Cursors.Default, control.DefaultCursor); 64Assert.Same(control.ErrorImage, control.ErrorImage); 66Assert.Same(control.Events, control.Events); 77Assert.Same(control.InitialImage, control.InitialImage); 81Assert.Same(control.LayoutEngine, control.LayoutEngine); 136Assert.Same(createParams, control.CreateParams); 206Assert.Same(control, sender); 207Assert.Same(EventArgs.Empty, e); 282Assert.Same(control, sender); 283Assert.Same(EventArgs.Empty, e); 318Assert.Same(value, pictureBox.ErrorImage); 323Assert.Same(value, pictureBox.ErrorImage); 337Assert.Same(value, pictureBox.ErrorImage); 342Assert.Same(value, pictureBox.ErrorImage); 354Assert.Same(value, pictureBox.ErrorImage); 359Assert.Same(value, pictureBox.ErrorImage); 374Assert.Same(value, pictureBox.ErrorImage); 379Assert.Same(value, pictureBox.ErrorImage); 439Assert.Same(control, sender); 440Assert.Same(EventArgs.Empty, e); 493Assert.Same(control, sender); 494Assert.Same(EventArgs.Empty, e); 502Assert.Same(font1, control.Font); 507Assert.Same(font1, control.Font); 513Assert.Same(font2, control.Font); 524Assert.Same(font1, control.Font); 536Assert.Same(value, pictureBox.Image); 540Assert.Same(value, pictureBox.Image); 553Assert.Same(value, pictureBox.Image); 557Assert.Same(value, pictureBox.Image); 568Assert.Same(value, pictureBox.Image); 572Assert.Same(value, pictureBox.Image); 586Assert.Same(value, pictureBox.Image); 590Assert.Same(value, pictureBox.Image); 657Assert.Same(image, pictureBox.Image); 662Assert.Same(image, pictureBox.Image); 710Assert.Same(string.Empty, pictureBox.ImageLocation); 751Assert.Same(UrlImageLocation, pictureBox.ImageLocation); 756Assert.Same(UrlImageLocation, pictureBox.ImageLocation); 834Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 839Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 866Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 971Assert.Same(control, sender); 972Assert.Same(EventArgs.Empty, e); 1015Assert.Same(value, pictureBox.InitialImage); 1020Assert.Same(value, pictureBox.InitialImage); 1034Assert.Same(value, pictureBox.InitialImage); 1039Assert.Same(value, pictureBox.InitialImage); 1051Assert.Same(value, pictureBox.InitialImage); 1056Assert.Same(value, pictureBox.InitialImage); 1071Assert.Same(value, pictureBox.InitialImage); 1076Assert.Same(value, pictureBox.InitialImage); 1129Assert.Same(value, control.Parent); 1133Assert.Same(value, control.Parent); 1147Assert.Same(value, control.Parent); 1152Assert.Same(value, control.Parent); 1164Assert.Same(parent, control.Parent); 1165Assert.Same(control, Assert.Single(parent.Controls)); 1169Assert.Same(parent, control.Parent); 1170Assert.Same(control, Assert.Single(parent.Controls)); 1181Assert.Same(control, sender); 1182Assert.Same(EventArgs.Empty, e); 1189Assert.Same(parent, control.Parent); 1194Assert.Same(parent, control.Parent); 1205Assert.Same(parent, control.Parent); 1241Assert.Same(control, sender); 1242Assert.Same(EventArgs.Empty, e); 1356Assert.Same(pictureBox, sender); 1357Assert.Same(EventArgs.Empty, e); 1421Assert.Same(control, sender); 1422Assert.Same(EventArgs.Empty, e); 1523Assert.Same(control, sender); 1524Assert.Same(EventArgs.Empty, e); 1604Assert.Same(control, sender); 1680Assert.Same(control, sender); 1681Assert.Same(EventArgs.Empty, e); 1747Assert.Same(PathImageLocation, pictureBox.ImageLocation); 1751Assert.Same(PathImageLocation, pictureBox.ImageLocation); 1767Assert.Same(imageLocation, pictureBox.ImageLocation); 1771Assert.Same(imageLocation, pictureBox.ImageLocation); 1786Assert.Same(PathImageLocation, pictureBox.ImageLocation); 1790Assert.Same(PathImageLocation, pictureBox.ImageLocation); 1934Assert.Same(image, pictureBox.Image); 1939Assert.Same(image, pictureBox.Image); 1970Assert.Same(string.Empty, pictureBox.ImageLocation); 1990Assert.Same(PathImageLocation, pictureBox.ImageLocation); 1995Assert.Same(PathImageLocation, pictureBox.ImageLocation); 2015Assert.Same(UrlImageLocation, pictureBox.ImageLocation); 2020Assert.Same(UrlImageLocation, pictureBox.ImageLocation); 2049Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 2054Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 2081Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 2144Assert.Same(control, sender); 2145Assert.Same(eventArgs, e); 2168Assert.Same(control, sender); 2169Assert.Same(eventArgs, e); 2192Assert.Same(control, sender); 2193Assert.Same(eventArgs, e); 2223Assert.Same(control, sender); 2224Assert.Same(eventArgs, e); 2251Assert.Same(control, sender); 2252Assert.Same(eventArgs, e); 2281Assert.Same(control, sender); 2282Assert.Same(eventArgs, e); 2309Assert.Same(control, sender); 2310Assert.Same(eventArgs, e); 2333Assert.Same(control, sender); 2334Assert.Same(eventArgs, e); 2357Assert.Same(control, sender); 2358Assert.Same(eventArgs, e); 2381Assert.Same(control, sender); 2382Assert.Same(eventArgs, e); 2411Assert.Same(control, sender); 2412Assert.Same(eventArgs, e); 2441Assert.Same(control, sender); 2442Assert.Same(eventArgs, e); 2465Assert.Same(control, sender); 2466Assert.Same(eventArgs, e); 2502Assert.Same(image, pictureBox.Image); 2505Assert.Same(image, pictureBox.Image); 2543Assert.Same(imageLocation, pictureBox.ImageLocation); 2548Assert.Same(imageLocation, pictureBox.ImageLocation); 2573Assert.Same(imageLocation, pictureBox.ImageLocation); 2578Assert.Same(imageLocation, pictureBox.ImageLocation); 2579Assert.Same(pictureBox.ErrorImage, pictureBox.Image); 2593Assert.Same(control, sender); 2594Assert.Same(eventArgs, e); 2617Assert.Same(control, sender); 2618Assert.Same(eventArgs, e); 2641Assert.Same(control, sender); 2642Assert.Same(eventArgs, e); 2648Assert.Same(control, sender); 2649Assert.Same(control, e.AffectedControl); 2686Assert.Same(control, sender); 2687Assert.Same(eventArgs, e); 2693Assert.Same(control, sender); 2694Assert.Same(control, e.AffectedControl); 2742Assert.Same(control, sender); 2743Assert.Same(EventArgs.Empty, e); 2749Assert.Same(control, sender); 2750Assert.Same(control, e.AffectedControl); 2791Assert.Same(control, sender); 2792Assert.Same(eventArgs, e); 2815Assert.Same(control, sender); 2816Assert.Same(eventArgs, e);
System\Windows\Forms\ProgressBarTests.cs (76)
44Assert.Same(control.Controls, control.Controls); 46Assert.Same(Cursors.Default, control.Cursor); 47Assert.Same(Cursors.Default, control.DefaultCursor); 59Assert.Same(control.Events, control.Events); 71Assert.Same(control.LayoutEngine, control.LayoutEngine); 122Assert.Same(createParams, control.CreateParams); 161Assert.Same(createParams, control.CreateParams); 190Assert.Same(createParams, control.CreateParams); 223Assert.Same(value, control.BackgroundImage); 228Assert.Same(value, control.BackgroundImage); 239Assert.Same(control, sender); 240Assert.Same(EventArgs.Empty, e); 249Assert.Same(image1, control.BackgroundImage); 254Assert.Same(image1, control.BackgroundImage); 260Assert.Same(image2, control.BackgroundImage); 271Assert.Same(image1, control.BackgroundImage); 301Assert.Same(control, sender); 302Assert.Same(EventArgs.Empty, e); 370Assert.Same(control, sender); 371Assert.Same(EventArgs.Empty, e); 498Assert.Same(control, sender); 499Assert.Same(EventArgs.Empty, e); 507Assert.Same(font1, control.Font); 512Assert.Same(font1, control.Font); 518Assert.Same(font2, control.Font); 529Assert.Same(font1, control.Font); 593Assert.Same(control, sender); 594Assert.Same(EventArgs.Empty, e); 724Assert.Same(control, sender); 725Assert.Same(EventArgs.Empty, e); 1197Assert.Same(control, sender); 1198Assert.Same(control, e.AffectedControl); 1244Assert.Same(control, sender); 1245Assert.Same(control, e.AffectedControl); 1287Assert.Same(control, sender); 1288Assert.Same(EventArgs.Empty, e); 1577Assert.Same(control, sender); 1578Assert.Same(EventArgs.Empty, e); 1658Assert.Same(control, sender); 1773Assert.Same(control, instance.Owner); 1908Assert.Same(control, sender); 1909Assert.Same(eventArgs, e); 1936Assert.Same(control, sender); 1937Assert.Same(eventArgs, e); 1979Assert.Same(control, sender); 1980Assert.Same(eventArgs, e); 2003Assert.Same(control, sender); 2004Assert.Same(eventArgs, e); 2027Assert.Same(control, sender); 2028Assert.Same(eventArgs, e); 2055Assert.Same(control, sender); 2056Assert.Same(eventArgs, e); 2112Assert.Same(control, sender); 2113Assert.Same(eventArgs, e); 2146Assert.Same(control, sender); 2147Assert.Same(eventArgs, e); 2174Assert.Same(control, sender); 2175Assert.Same(eventArgs, e); 2204Assert.Same(control, sender); 2205Assert.Same(eventArgs, e); 2232Assert.Same(control, sender); 2233Assert.Same(eventArgs, e); 2256Assert.Same(control, sender); 2257Assert.Same(eventArgs, e); 2280Assert.Same(control, sender); 2281Assert.Same(eventArgs, e); 2304Assert.Same(control, sender); 2305Assert.Same(eventArgs, e); 2328Assert.Same(control, sender); 2329Assert.Same(eventArgs, e); 2352Assert.Same(control, sender); 2353Assert.Same(eventArgs, e); 2389Assert.Same(control, sender); 2390Assert.Same(eventArgs, e); 2436Assert.Same(control, sender); 2437Assert.Same(eventArgs, e);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
82Assert.Same(dropDownHolder.AccessibilityObject, ComHelpers.GetObjectForIUnknown(previousAccessibleObject));
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (1)
17Assert.Same(tab.Bitmap, tab.Bitmap);
System\Windows\Forms\PropertyGridTests.cs (75)
44Assert.Same(control.BindingContext, control.BindingContext); 48Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 74Assert.Same(control.Controls, control.Controls); 91Assert.Same(control.DockPadding, control.DockPadding); 100Assert.Same(control.Events, control.Events); 112Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 120Assert.Same(control.LayoutEngine, control.LayoutEngine); 144Assert.Same(control.SelectedObjects, control.SelectedObjects); 155Assert.Same(control.ToolStripRenderer, control.ToolStripRenderer); 161Assert.Same(control.VerticalScroll, control.VerticalScroll); 190Assert.Same(createParams, control.CreateParams); 203Assert.Same(control, sender); 204Assert.Same(control, e.AffectedControl); 246Assert.Same(control, sender); 247Assert.Same(control, e.AffectedControl); 346Assert.Same(control, sender); 347Assert.Same(EventArgs.Empty, e); 415Assert.Same(value, control.BackgroundImage); 420Assert.Same(value, control.BackgroundImage); 432Assert.Same(control, sender); 433Assert.Same(EventArgs.Empty, e); 442Assert.Same(image1, control.BackgroundImage); 447Assert.Same(image1, control.BackgroundImage); 453Assert.Same(image2, control.BackgroundImage); 464Assert.Same(image1, control.BackgroundImage); 493Assert.Same(control, sender); 494Assert.Same(EventArgs.Empty, e); 549Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 556Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 571Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 578Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 593Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 600Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 620Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 630Assert.Same(control.BrowsableAttributes, control.BrowsableAttributes); 1671Assert.Same(control, sender); 1672Assert.Same(EventArgs.Empty, e); 2870Assert.Same(value, control.Site); 2875Assert.Same(value, control.Site); 2893Assert.Same(value, control.Site); 2901Assert.Same(value, control.Site); 2923Assert.Same(mockSite.Object, control.Site); 2928Assert.Same(mockSite.Object, control.Site); 2957Assert.Same(mockSite.Object, control.Site); 2962Assert.Same(mockSite.Object, control.Site); 2991Assert.Same(mockSite.Object, control.Site); 2996Assert.Same(mockSite.Object, control.Site); 3054Assert.Same(control, sender); 3186Assert.Same(value, control.ToolStripRenderer); 3191Assert.Same(value, control.ToolStripRenderer); 3197Assert.Same(control.ToolStripRenderer, control.ToolStripRenderer); 3518Assert.Same(control, sender); 3519Assert.Same(eventArgs, e); 3546Assert.Same(control, sender); 3547Assert.Same(eventArgs, e); 3572Assert.Same(control, sender); 3573Assert.Same(eventArgs, e); 3600Assert.Same(control, sender); 3601Assert.Same(eventArgs, e); 3627Assert.Same(control, sender); 3628Assert.Same(eventArgs, e); 3654Assert.Same(control, sender); 3655Assert.Same(eventArgs, e); 3681Assert.Same(control, sender); 3682Assert.Same(eventArgs, e); 3721Assert.Same(control, sender); 3722Assert.Same(eventArgs, e); 3755Assert.Same(control, sender); 3756Assert.Same(eventArgs, e); 3782Assert.Same(control, sender); 3783Assert.Same(eventArgs, e); 3821Assert.Same(control, sender); 3822Assert.Same(eventArgs, e); 3855Assert.Same(control, sender); 3856Assert.Same(eventArgs, e);
System\Windows\Forms\PropertyManagerTests.cs (12)
213Assert.Same(manager, sender); 214Assert.Same(EventArgs.Empty, e); 225Assert.Same(manager, sender); 226Assert.Same(EventArgs.Empty, e); 265Assert.Same(manager, sender); 266Assert.Same(EventArgs.Empty, e); 277Assert.Same(manager, sender); 278Assert.Same(EventArgs.Empty, e); 311Assert.Same(manager, sender); 323Assert.Same(manager, sender); 357Assert.Same(manager, sender); 369Assert.Same(manager, sender);
System\Windows\Forms\RadioButtonTests.cs (57)
50Assert.Same(control.Controls, control.Controls); 52Assert.Same(Cursors.Default, control.Cursor); 53Assert.Same(Cursors.Default, control.DefaultCursor); 66Assert.Same(control.Events, control.Events); 68Assert.Same(control.FlatAppearance, control.FlatAppearance); 87Assert.Same(control.LayoutEngine, control.LayoutEngine); 139Assert.Same(createParams, control.CreateParams); 163Assert.Same(createParams, control.CreateParams); 270Assert.Same(control, sender); 271Assert.Same(EventArgs.Empty, e); 410Assert.Same(control, instance.Owner); 431Assert.Same(control, instance.Owner); 454Assert.Same(control, instance.Owner); 476Assert.Same(control, instance.Owner); 518Assert.Same(control, instance.Owner); 541Assert.Same(control, instance.Owner); 563Assert.Same(control, instance.Owner); 584Assert.Same(control, sender); 585Assert.Same(EventArgs.Empty, e); 605Assert.Same(control, sender); 606Assert.Same(EventArgs.Empty, e); 666Assert.Same(control, sender); 667Assert.Same(eventArgs, e); 699Assert.Same(control, sender); 700Assert.Same(eventArgs, e); 745Assert.Same(control, sender); 746Assert.Same(eventArgs, e); 792Assert.Same(control, sender); 793Assert.Same(eventArgs, e); 827Assert.Same(control, sender); 828Assert.Same(eventArgs, e); 853Assert.Same(control, sender); 854Assert.Same(eventArgs, e); 886Assert.Same(control, sender); 887Assert.Same(eventArgs, e); 920Assert.Same(control, sender); 921Assert.Same(eventArgs, e); 947Assert.Same(control, sender); 948Assert.Same(eventArgs, e); 973Assert.Same(control, sender); 974Assert.Same(eventArgs, e); 1000Assert.Same(control, sender); 1001Assert.Same(eventArgs, e); 1026Assert.Same(control, sender); 1027Assert.Same(eventArgs, e); 1070Assert.Same(control, sender); 1071Assert.Same(eventArgs, e); 1124Assert.Same(control, sender); 1125Assert.Same(eventArgs, e); 1168Assert.Same(control, sender); 1169Assert.Same(eventArgs, e); 1234Assert.Same(control, sender); 1235Assert.Same(eventArgs, e); 1280Assert.Same(control, sender); 1281Assert.Same(EventArgs.Empty, e); 1312Assert.Same(control, sender); 1313Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\RichTextBoxTests.cs (93)
59Assert.Same(control.Controls, control.Controls); 61Assert.Same(Cursors.IBeam, control.Cursor); 62Assert.Same(Cursors.IBeam, control.DefaultCursor); 78Assert.Same(control.Events, control.Events); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 156Assert.Same(createParams, control.CreateParams); 182Assert.Same(createParams, control.CreateParams); 236Assert.Same(createParams, control.CreateParams); 518Assert.Same(control, sender); 519Assert.Same(EventArgs.Empty, e); 709Assert.Same(control, sender); 710Assert.Same(EventArgs.Empty, e); 745Assert.Same(value, control.BackgroundImage); 750Assert.Same(value, control.BackgroundImage); 761Assert.Same(control, sender); 762Assert.Same(EventArgs.Empty, e); 770Assert.Same(image1, control.BackgroundImage); 775Assert.Same(image1, control.BackgroundImage); 781Assert.Same(image2, control.BackgroundImage); 792Assert.Same(image1, control.BackgroundImage); 822Assert.Same(control, sender); 823Assert.Same(EventArgs.Empty, e); 1640Assert.Same(control, sender); 1641Assert.Same(EventArgs.Empty, e); 1649Assert.Same(font1, control.Font); 1654Assert.Same(font1, control.Font); 1660Assert.Same(font2, control.Font); 1671Assert.Same(font1, control.Font); 1785Assert.Same(control, sender); 1786Assert.Same(EventArgs.Empty, e); 2196Assert.Same(parent, sender); 2197Assert.Same(control, e.AffectedControl); 2289Assert.Same(control, sender); 2290Assert.Same(EventArgs.Empty, e); 2780Assert.Same(control, sender); 2823Assert.Same(control, sender); 2973Assert.Same(parent, sender); 2974Assert.Same(control, e.AffectedControl); 3036Assert.Same(control, sender); 3037Assert.Same(control, e.AffectedControl); 3101Assert.Same(control, sender); 3102Assert.Same(control, e.AffectedControl); 3109Assert.Same(parent, sender); 3110Assert.Same(control, e.AffectedControl); 7111Assert.Same(parent, sender); 7112Assert.Same(control, e.AffectedControl); 7346Assert.Same(parent, sender); 7347Assert.Same(control, e.AffectedControl); 7503Assert.Same(control, sender); 7546Assert.Same(control, sender); 9014Assert.Same(control, sender); 9015Assert.Same(eventArgs, e); 9048Assert.Same(control, sender); 9049Assert.Same(eventArgs, e); 9090Assert.Same(control, sender); 9091Assert.Same(eventArgs, e); 9120Assert.Same(control, sender); 9121Assert.Same(eventArgs, e); 9146Assert.Same(control, sender); 9147Assert.Same(eventArgs, e); 9182Assert.Same(control, sender); 9183Assert.Same(eventArgs, e); 9223Assert.Same(control, sender); 9224Assert.Same(eventArgs, e); 9249Assert.Same(control, sender); 9250Assert.Same(eventArgs, e); 9275Assert.Same(control, sender); 9276Assert.Same(eventArgs, e); 9832Assert.Same(control, sender); 9833Assert.Same(EventArgs.Empty, e); 9866Assert.Same(control, sender); 9867Assert.Same(EventArgs.Empty, e); 9900Assert.Same(control, sender); 9901Assert.Same(EventArgs.Empty, e); 9941Assert.Same(control, sender); 9942Assert.Same(EventArgs.Empty, e); 9983Assert.Same(control, sender); 9984Assert.Same(EventArgs.Empty, e); 10039Assert.Same(control, sender); 10040Assert.Same(EventArgs.Empty, e); 10046Assert.Same(control, sender); 10047Assert.Same(EventArgs.Empty, e); 10053Assert.Same(control, sender); 10054Assert.Same(EventArgs.Empty, e); 10166Assert.Same(control, sender); 10167Assert.Same(EventArgs.Empty, e); 10214Assert.Same(control, sender); 10215Assert.Same(EventArgs.Empty, e); 10350Assert.Same(control, sender); 10400Assert.Same(control, sender); 10401Assert.Same(EventArgs.Empty, e); 10450Assert.Same(control, sender); 10451Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\RowStyleTests.cs (4)
74Assert.Same(control, sender); 75Assert.Same(control, e.AffectedControl); 111Assert.Same(control, sender); 112Assert.Same(control, e.AffectedControl);
System\Windows\Forms\ScreenTests.cs (1)
16Assert.Same(screens, Screen.AllScreens);
System\Windows\Forms\ScrollableControlTests.cs (51)
48Assert.Same(control.Controls, control.Controls); 50Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(Cursors.Default, control.DefaultCursor); 62Assert.Same(control.DockPadding, control.DockPadding); 70Assert.Same(control.Events, control.Events); 78Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 85Assert.Same(control.LayoutEngine, control.LayoutEngine); 112Assert.Same(control.VerticalScroll, control.VerticalScroll); 135Assert.Same(createParams, control.CreateParams); 162Assert.Same(createParams, control.CreateParams); 189Assert.Same(createParams, control.CreateParams); 247Assert.Same(control, sender); 248Assert.Same(control, e.AffectedControl); 290Assert.Same(control, sender); 291Assert.Same(control, e.AffectedControl); 349Assert.Same(control, sender); 387Assert.Same(control, sender); 579Assert.Same(control, sender); 630Assert.Same(control, sender); 796Assert.Same(control, sender); 797Assert.Same(control, e.AffectedControl); 1403Assert.Same(eventArgs?.AffectedComponent, affectedControl); 1412Assert.Same(control, sender); 1437Assert.Same(control, sender); 1438Assert.Same(eventArgs, e); 1473Assert.Same(control, sender); 1474Assert.Same(eventArgs, e); 1546Assert.Same(control, sender); 1547Assert.Same(eventArgs, e); 1695Assert.Same(control, sender); 1696Assert.Same(eventArgs, e); 1702Assert.Same(parent, sender); 1745Assert.Same(control, sender); 1746Assert.Same(eventArgs, e); 1839Assert.Same(control, sender); 1840Assert.Same(eventArgs, e); 1846Assert.Same(parent, sender); 1897Assert.Same(control, sender); 1898Assert.Same(control, e.AffectedControl); 1905Assert.Same(control, sender); 1906Assert.Same(eventArgs, e); 1942Assert.Same(control, sender); 1943Assert.Same(control, e.AffectedControl); 1952Assert.Same(control, sender); 1953Assert.Same(eventArgs, e); 2000Assert.Same(control, sender); 2001Assert.Same(eventArgs, e); 2033Assert.Same(control, sender); 2034Assert.Same(eventArgs, e); 2242Assert.Same(control, sender); 2273Assert.Same(control, sender);
System\Windows\Forms\ScrollBarTests.cs (75)
43Assert.Same(control.Controls, control.Controls); 45Assert.Same(Cursors.Default, control.Cursor); 46Assert.Same(Cursors.Default, control.DefaultCursor); 59Assert.Same(control.Events, control.Events); 72Assert.Same(control.LayoutEngine, control.LayoutEngine); 124Assert.Same(createParams, control.CreateParams); 164Assert.Same(control, sender); 165Assert.Same(EventArgs.Empty, e); 216Assert.Same(control, sender); 217Assert.Same(EventArgs.Empty, e); 252Assert.Same(value, control.BackgroundImage); 257Assert.Same(value, control.BackgroundImage); 268Assert.Same(control, sender); 269Assert.Same(EventArgs.Empty, e); 277Assert.Same(image1, control.BackgroundImage); 282Assert.Same(image1, control.BackgroundImage); 288Assert.Same(image2, control.BackgroundImage); 299Assert.Same(image1, control.BackgroundImage); 327Assert.Same(control, sender); 328Assert.Same(EventArgs.Empty, e); 452Assert.Same(control, sender); 453Assert.Same(EventArgs.Empty, e); 506Assert.Same(control, sender); 507Assert.Same(EventArgs.Empty, e); 515Assert.Same(font1, control.Font); 520Assert.Same(font1, control.Font); 526Assert.Same(font2, control.Font); 537Assert.Same(font1, control.Font); 565Assert.Same(control, sender); 566Assert.Same(EventArgs.Empty, e); 646Assert.Same(control, sender); 647Assert.Same(EventArgs.Empty, e); 1204Assert.Same(control, sender); 1205Assert.Same(EventArgs.Empty, e); 1446Assert.Same(control, sender); 1447Assert.Same(EventArgs.Empty, e); 1527Assert.Same(control, sender); 1716Assert.Same(control, sender); 1717Assert.Same(EventArgs.Empty, e); 1905Assert.Same(control, sender); 1906Assert.Same(eventArgs, e); 1929Assert.Same(control, sender); 1930Assert.Same(eventArgs, e); 1953Assert.Same(control, sender); 1954Assert.Same(eventArgs, e); 1986Assert.Same(control, sender); 1987Assert.Same(eventArgs, e); 2018Assert.Same(control, sender); 2019Assert.Same(eventArgs, e); 2045Assert.Same(control, sender); 2046Assert.Same(eventArgs, e); 2071Assert.Same(control, sender); 2072Assert.Same(eventArgs, e); 2095Assert.Same(control, sender); 2096Assert.Same(eventArgs, e); 2119Assert.Same(control, sender); 2120Assert.Same(eventArgs, e); 2143Assert.Same(control, sender); 2144Assert.Same(eventArgs, e); 2167Assert.Same(control, sender); 2168Assert.Same(eventArgs, e); 2191Assert.Same(control, sender); 2192Assert.Same(eventArgs, e); 2215Assert.Same(control, sender); 2216Assert.Same(eventArgs, e); 2482Assert.Same(control, sender); 2504Assert.Same(control, sender); 2505Assert.Same(eventArgs, e); 2534Assert.Same(control, sender); 2535Assert.Same(eventArgs, e); 2558Assert.Same(control, sender); 2559Assert.Same(eventArgs, e); 2837Assert.Same(control, sender); 2911Assert.Same(control, sender); 2912Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ScrollPropertiesTests.cs (1)
19Assert.Same(container, properties.ParentControl);
System\Windows\Forms\SplitContainer.SplitContainerTypedControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\SplitterPanelTests.cs (41)
53Assert.Same(control.Controls, control.Controls); 59Assert.Same(control.DockPadding, control.DockPadding); 71Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 76Assert.Same(control.LayoutEngine, control.LayoutEngine); 99Assert.Same(control.VerticalScroll, control.VerticalScroll); 160Assert.Same(control, sender); 161Assert.Same(EventArgs.Empty, e); 409Assert.Same(control, sender); 410Assert.Same(EventArgs.Empty, e); 522Assert.Same(control, sender); 523Assert.Same(EventArgs.Empty, e); 529Assert.Same(control, sender); 530Assert.Same(EventArgs.Empty, e); 590Assert.Same(control, sender); 591Assert.Same(EventArgs.Empty, e); 598Assert.Same(control, sender); 599Assert.Same(EventArgs.Empty, e); 673Assert.Same(control, sender); 674Assert.Same(control, e.AffectedControl); 725Assert.Same(value, control.Parent); 730Assert.Same(value, control.Parent); 742Assert.Same(control, sender); 743Assert.Same(EventArgs.Empty, e); 750Assert.Same(parent, control.Parent); 755Assert.Same(parent, control.Parent); 766Assert.Same(parent, control.Parent); 791Assert.Same(control, sender); 792Assert.Same(control, e.AffectedControl); 801Assert.Same(control, sender); 802Assert.Same(EventArgs.Empty, e); 810Assert.Same(control, sender); 811Assert.Same(EventArgs.Empty, e); 819Assert.Same(control, sender); 820Assert.Same(EventArgs.Empty, e); 894Assert.Same(control, sender); 895Assert.Same(EventArgs.Empty, e); 998Assert.Same(control, sender); 999Assert.Same(EventArgs.Empty, e); 1079Assert.Same(control, sender); 1139Assert.Same(control, sender); 1140Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\SplitterTests.cs (75)
44Assert.Same(control.Controls, control.Controls); 46Assert.Same(Cursors.VSplit, control.Cursor); 47Assert.Same(Cursors.VSplit, control.DefaultCursor); 60Assert.Same(control.Events, control.Events); 72Assert.Same(control.LayoutEngine, control.LayoutEngine); 122Assert.Same(createParams, control.CreateParams); 149Assert.Same(createParams, control.CreateParams); 206Assert.Same(value, control.BackgroundImage); 211Assert.Same(value, control.BackgroundImage); 222Assert.Same(control, sender); 223Assert.Same(EventArgs.Empty, e); 231Assert.Same(image1, control.BackgroundImage); 236Assert.Same(image1, control.BackgroundImage); 242Assert.Same(image2, control.BackgroundImage); 253Assert.Same(image1, control.BackgroundImage); 283Assert.Same(control, sender); 284Assert.Same(EventArgs.Empty, e); 542Assert.Same(parent, sender); 543Assert.Same(control, e.AffectedControl); 611Assert.Same(parent, sender); 612Assert.Same(control, e.AffectedControl); 694Assert.Same(control, sender); 695Assert.Same(EventArgs.Empty, e); 758Assert.Same(control, sender); 759Assert.Same(EventArgs.Empty, e); 767Assert.Same(font1, control.Font); 772Assert.Same(font1, control.Font); 778Assert.Same(font2, control.Font); 789Assert.Same(font1, control.Font); 853Assert.Same(control, sender); 854Assert.Same(EventArgs.Empty, e); 952Assert.Same(control, sender); 953Assert.Same(EventArgs.Empty, e); 1418Assert.Same(control, sender); 1423Assert.Same(EventArgs.Empty, e); 1523Assert.Same(control, sender); 1524Assert.Same(EventArgs.Empty, e); 1604Assert.Same(control, sender); 1612Assert.Same("text", control.Text); 1617Assert.Same("text", control.Text); 1628Assert.Same("text", control.Text); 1684Assert.Same(control, sender); 1685Assert.Same(eventArgs, e); 1708Assert.Same(control, sender); 1709Assert.Same(eventArgs, e); 1735Assert.Same(control, sender); 1736Assert.Same(eventArgs, e); 1761Assert.Same(control, sender); 1762Assert.Same(eventArgs, e); 1794Assert.Same(control, sender); 1795Assert.Same(eventArgs, e); 1837Assert.Same(control, sender); 1838Assert.Same(eventArgs, e); 1869Assert.Same(control, sender); 1870Assert.Same(eventArgs, e); 1901Assert.Same(control, sender); 1902Assert.Same(eventArgs, e); 1933Assert.Same(control, sender); 1934Assert.Same(eventArgs, e); 1973Assert.Same(control, sender); 1974Assert.Same(eventArgs, e); 2031Assert.Same(control, sender); 2032Assert.Same(eventArgs, e); 2076Assert.Same(control, sender); 2077Assert.Same(eventArgs, e); 2139Assert.Same(control, sender); 2140Assert.Same(eventArgs, e); 2190Assert.Same(control, sender); 2191Assert.Same(eventArgs, e); 2222Assert.Same(control, sender); 2223Assert.Same(eventArgs, e); 2256Assert.Same(control, sender); 2257Assert.Same(eventArgs, e); 2280Assert.Same(control, sender); 2281Assert.Same(eventArgs, e);
System\Windows\Forms\StatusStripTests.cs (35)
49Assert.Same(control.Controls, control.Controls); 51Assert.Same(Cursors.Default, control.Cursor); 52Assert.Same(Cursors.Default, control.DefaultCursor); 65Assert.Same(control.DisplayedItems, control.DisplayedItems); 69Assert.Same(control.DockPadding, control.DockPadding); 77Assert.Same(control.Events, control.Events); 89Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 100Assert.Same(control.Items, control.Items); 102Assert.Same(control.LayoutEngine, control.LayoutEngine); 113Assert.Same(control.OverflowButton, control.OverflowButton); 114Assert.Same(control, control.OverflowButton.GetCurrentParent()); 123Assert.Same(control.Renderer, control.Renderer); 147Assert.Same(control.VerticalScroll, control.VerticalScroll); 171Assert.Same(createParams, control.CreateParams); 288Assert.Same(control, sender); 289Assert.Same(control, e.AffectedControl); 296Assert.Same(control, sender); 297Assert.Same(EventArgs.Empty, e); 328Assert.Same(control, sender); 329Assert.Same(control, e.AffectedControl); 411Assert.Same(control, sender); 412Assert.Same(control, e.AffectedControl); 475Assert.Same(control, sender); 476Assert.Same(EventArgs.Empty, e); 484Assert.Same(control.Renderer, control.Renderer); 504Assert.Same(control.Renderer, control.Renderer); 521Assert.Same(control, sender); 522Assert.Same(EventArgs.Empty, e); 541Assert.Same(control.Renderer, control.Renderer); 866Assert.Same(control, instance.Owner); 887Assert.Same(image, button.Image); 1150Assert.Same(control, sender); 1151Assert.Same(eventArgs, e); 1222Assert.Same(control, sender); 1223Assert.Same(eventArgs, e);
System\Windows\Forms\SystemInformationTests.cs (1)
621Assert.Same(status, SystemInformation.PowerStatus);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (149)
20Assert.Same(owner, collection.Owner); 57Assert.Same(owner, sender); 68Assert.Same(value1, Assert.Single(collection)); 69Assert.Same(value1, Assert.Single(owner.TabPages)); 70Assert.Same(owner, value1.Parent); 77Assert.Same(value1, events[0].AffectedControl); 79Assert.Same(value1, events[1].AffectedControl); 88Assert.Same(owner, value1.Parent); 92Assert.Same(owner, value2.Parent); 100Assert.Same(value1, events[0].AffectedControl); 102Assert.Same(value1, events[1].AffectedControl); 104Assert.Same(value2, events[2].AffectedControl); 106Assert.Same(value2, events[3].AffectedControl); 116Assert.Same(owner, value1.Parent); 118Assert.Same(owner, value2.Parent); 127Assert.Same(value1, events[0].AffectedControl); 129Assert.Same(value1, events[1].AffectedControl); 131Assert.Same(value2, events[2].AffectedControl); 133Assert.Same(value2, events[3].AffectedControl); 135Assert.Same(value1, events[4].AffectedControl); 180Assert.Same(owner, sender); 198Assert.Same(value1, Assert.Single(collection)); 199Assert.Same(value1, Assert.Single(owner.TabPages)); 200Assert.Same(owner, value1.Parent); 207Assert.Same(value1, events[0].AffectedControl); 209Assert.Same(value1, events[1].AffectedControl); 211Assert.Same(value1, events[2].AffectedControl); 213Assert.Same(value1, events[3].AffectedControl); 215Assert.Same(value1, events[4].AffectedControl); 227Assert.Same(owner, value1.Parent); 231Assert.Same(owner, value2.Parent); 239Assert.Same(value1, events[0].AffectedControl); 241Assert.Same(value1, events[1].AffectedControl); 243Assert.Same(value1, events[2].AffectedControl); 245Assert.Same(value1, events[3].AffectedControl); 247Assert.Same(value1, events[4].AffectedControl); 249Assert.Same(value2, events[5].AffectedControl); 251Assert.Same(value2, events[6].AffectedControl); 253Assert.Same(value2, events[7].AffectedControl); 255Assert.Same(value2, events[8].AffectedControl); 268Assert.Same(owner, value1.Parent); 272Assert.Same(owner, value2.Parent); 280Assert.Same(value1, events[0].AffectedControl); 282Assert.Same(value1, events[1].AffectedControl); 284Assert.Same(value1, events[2].AffectedControl); 286Assert.Same(value1, events[3].AffectedControl); 288Assert.Same(value1, events[4].AffectedControl); 290Assert.Same(value2, events[5].AffectedControl); 292Assert.Same(value2, events[6].AffectedControl); 294Assert.Same(value2, events[7].AffectedControl); 296Assert.Same(value2, events[8].AffectedControl); 298Assert.Same(value1, events[9].AffectedControl); 300Assert.Same(value1, events[10].AffectedControl); 302Assert.Same(value1, events[11].AffectedControl); 304Assert.Same(value1, events[12].AffectedControl); 340Assert.Same(owner, sender); 365Assert.Same(value1, Assert.Single(collection)); 366Assert.Same(value1, Assert.Single(owner.TabPages)); 367Assert.Same(owner, value1.Parent); 374Assert.Same(value1, events[0].AffectedControl); 376Assert.Same(value1, events[1].AffectedControl); 388Assert.Same(owner, value1.Parent); 392Assert.Same(owner, value2.Parent); 400Assert.Same(value1, events[0].AffectedControl); 402Assert.Same(value1, events[1].AffectedControl); 404Assert.Same(value2, events[2].AffectedControl); 406Assert.Same(value2, events[3].AffectedControl); 422Assert.Same(owner, value1.Parent); 424Assert.Same(owner, value2.Parent); 433Assert.Same(value1, events[0].AffectedControl); 435Assert.Same(value1, events[1].AffectedControl); 437Assert.Same(value2, events[2].AffectedControl); 439Assert.Same(value2, events[3].AffectedControl); 441Assert.Same(value1, events[4].AffectedControl); 481Assert.Same(owner, sender); 513Assert.Same(value1, Assert.Single(collection)); 514Assert.Same(value1, Assert.Single(owner.TabPages)); 515Assert.Same(owner, value1.Parent); 522Assert.Same(value1, events[0].AffectedControl); 524Assert.Same(value1, events[1].AffectedControl); 526Assert.Same(value1, events[2].AffectedControl); 528Assert.Same(value1, events[3].AffectedControl); 530Assert.Same(value1, events[4].AffectedControl); 545Assert.Same(owner, value1.Parent); 549Assert.Same(owner, value2.Parent); 557Assert.Same(value1, events[0].AffectedControl); 559Assert.Same(value1, events[1].AffectedControl); 561Assert.Same(value1, events[2].AffectedControl); 563Assert.Same(value1, events[3].AffectedControl); 565Assert.Same(value1, events[4].AffectedControl); 567Assert.Same(value2, events[5].AffectedControl); 569Assert.Same(value2, events[6].AffectedControl); 571Assert.Same(value2, events[7].AffectedControl); 573Assert.Same(value2, events[8].AffectedControl); 592Assert.Same(owner, value1.Parent); 596Assert.Same(owner, value2.Parent); 604Assert.Same(value1, events[0].AffectedControl); 606Assert.Same(value1, events[1].AffectedControl); 608Assert.Same(value1, events[2].AffectedControl); 610Assert.Same(value1, events[3].AffectedControl); 612Assert.Same(value1, events[4].AffectedControl); 614Assert.Same(value2, events[5].AffectedControl); 616Assert.Same(value2, events[6].AffectedControl); 618Assert.Same(value2, events[7].AffectedControl); 620Assert.Same(value2, events[8].AffectedControl); 622Assert.Same(value1, events[9].AffectedControl); 624Assert.Same(value1, events[10].AffectedControl); 626Assert.Same(value1, events[11].AffectedControl); 628Assert.Same(value1, events[12].AffectedControl); 667Assert.Same(owner, value.Parent); 669Assert.Same(value, Assert.Single(container.Components)); 701Assert.Same(owner, value.Parent); 702Assert.Same(mockValueSite.Object, value.Site); 724Assert.Same(owner, value.Parent); 743Assert.Same(owner, value.Parent); 910Assert.Same(owner, sender); 921Assert.Same(value1, Assert.Single(collection)); 922Assert.Same(value1, Assert.Single(owner.TabPages)); 923Assert.Same(owner, value1.Parent); 941Assert.Same(value1, Assert.Single(collection)); 942Assert.Same(value1, Assert.Single(owner.TabPages)); 943Assert.Same(owner, value1.Parent); 1008Assert.Same(owner, sender); 1033Assert.Same(value1, Assert.Single(collection)); 1034Assert.Same(value1, Assert.Single(owner.TabPages)); 1035Assert.Same(owner, value1.Parent); 1056Assert.Same(value1, Assert.Single(collection)); 1057Assert.Same(value1, Assert.Single(owner.TabPages)); 1058Assert.Same(owner, value1.Parent); 1133Assert.Same(owner, sender); 1151Assert.Same(value1, Assert.Single(collection)); 1152Assert.Same(value1, Assert.Single(owner.TabPages)); 1153Assert.Same(owner, value1.Parent); 1174Assert.Same(value1, Assert.Single(collection)); 1175Assert.Same(value1, Assert.Single(owner.TabPages)); 1176Assert.Same(owner, value1.Parent); 1245Assert.Same(owner, sender); 1270Assert.Same(value1, Assert.Single(collection)); 1271Assert.Same(value1, Assert.Single(owner.TabPages)); 1272Assert.Same(owner, value1.Parent); 1293Assert.Same(value1, Assert.Single(collection)); 1294Assert.Same(value1, Assert.Single(owner.TabPages)); 1295Assert.Same(owner, value1.Parent); 1363Assert.Same(value4, owner.SelectedTab); 1400Assert.Same(value4, owner.SelectedTab); 1406Assert.Same(value4, owner.SelectedTab); 1411Assert.Same(value1, owner.SelectedTab); 1416Assert.Same(value3, owner.SelectedTab); 1438Assert.Same(owner, value.Parent);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (433)
42Assert.Same(owner, sender); 53Assert.Same(value1, Assert.Single(collection)); 54Assert.Same(value1, Assert.Single(owner.TabPages)); 55Assert.Same(value1, Assert.Single(owner.Controls)); 56Assert.Same(owner, value1.Parent); 63Assert.Same(value1, events[0].AffectedControl); 65Assert.Same(value1, events[1].AffectedControl); 75Assert.Same(owner, value1.Parent); 79Assert.Same(owner, value2.Parent); 87Assert.Same(value1, events[0].AffectedControl); 89Assert.Same(value1, events[1].AffectedControl); 91Assert.Same(value2, events[2].AffectedControl); 93Assert.Same(value2, events[3].AffectedControl); 104Assert.Same(owner, value1.Parent); 106Assert.Same(owner, value2.Parent); 115Assert.Same(value1, events[0].AffectedControl); 117Assert.Same(value1, events[1].AffectedControl); 119Assert.Same(value2, events[2].AffectedControl); 121Assert.Same(value2, events[3].AffectedControl); 123Assert.Same(value1, events[4].AffectedControl); 168Assert.Same(owner, sender); 186Assert.Same(value1, Assert.Single(collection)); 187Assert.Same(value1, Assert.Single(owner.TabPages)); 188Assert.Same(value1, Assert.Single(owner.Controls)); 189Assert.Same(owner, value1.Parent); 196Assert.Same(value1, events[0].AffectedControl); 198Assert.Same(value1, events[1].AffectedControl); 200Assert.Same(value1, events[2].AffectedControl); 202Assert.Same(value1, events[3].AffectedControl); 204Assert.Same(value1, events[4].AffectedControl); 217Assert.Same(owner, value1.Parent); 221Assert.Same(owner, value2.Parent); 229Assert.Same(value1, events[0].AffectedControl); 231Assert.Same(value1, events[1].AffectedControl); 233Assert.Same(value1, events[2].AffectedControl); 235Assert.Same(value1, events[3].AffectedControl); 237Assert.Same(value1, events[4].AffectedControl); 239Assert.Same(value2, events[5].AffectedControl); 241Assert.Same(value2, events[6].AffectedControl); 243Assert.Same(value2, events[7].AffectedControl); 245Assert.Same(value2, events[8].AffectedControl); 259Assert.Same(owner, value1.Parent); 263Assert.Same(owner, value2.Parent); 271Assert.Same(value1, events[0].AffectedControl); 273Assert.Same(value1, events[1].AffectedControl); 275Assert.Same(value1, events[2].AffectedControl); 277Assert.Same(value1, events[3].AffectedControl); 279Assert.Same(value1, events[4].AffectedControl); 281Assert.Same(value2, events[5].AffectedControl); 283Assert.Same(value2, events[6].AffectedControl); 285Assert.Same(value2, events[7].AffectedControl); 287Assert.Same(value2, events[8].AffectedControl); 289Assert.Same(value1, events[9].AffectedControl); 291Assert.Same(value1, events[10].AffectedControl); 293Assert.Same(value1, events[11].AffectedControl); 295Assert.Same(value1, events[12].AffectedControl); 331Assert.Same(owner, sender); 356Assert.Same(value1, Assert.Single(collection)); 357Assert.Same(value1, Assert.Single(owner.TabPages)); 358Assert.Same(value1, Assert.Single(owner.Controls)); 359Assert.Same(owner, value1.Parent); 366Assert.Same(value1, events[0].AffectedControl); 368Assert.Same(value1, events[1].AffectedControl); 381Assert.Same(owner, value1.Parent); 385Assert.Same(owner, value2.Parent); 393Assert.Same(value1, events[0].AffectedControl); 395Assert.Same(value1, events[1].AffectedControl); 397Assert.Same(value2, events[2].AffectedControl); 399Assert.Same(value2, events[3].AffectedControl); 416Assert.Same(owner, value1.Parent); 418Assert.Same(owner, value2.Parent); 427Assert.Same(value1, events[0].AffectedControl); 429Assert.Same(value1, events[1].AffectedControl); 431Assert.Same(value2, events[2].AffectedControl); 433Assert.Same(value2, events[3].AffectedControl); 435Assert.Same(value1, events[4].AffectedControl); 475Assert.Same(owner, sender); 507Assert.Same(value1, Assert.Single(collection)); 508Assert.Same(value1, Assert.Single(owner.TabPages)); 509Assert.Same(value1, Assert.Single(owner.Controls)); 510Assert.Same(owner, value1.Parent); 517Assert.Same(value1, events[0].AffectedControl); 519Assert.Same(value1, events[1].AffectedControl); 521Assert.Same(value1, events[2].AffectedControl); 523Assert.Same(value1, events[3].AffectedControl); 525Assert.Same(value1, events[4].AffectedControl); 541Assert.Same(owner, value1.Parent); 545Assert.Same(owner, value2.Parent); 553Assert.Same(value1, events[0].AffectedControl); 555Assert.Same(value1, events[1].AffectedControl); 557Assert.Same(value1, events[2].AffectedControl); 559Assert.Same(value1, events[3].AffectedControl); 561Assert.Same(value1, events[4].AffectedControl); 563Assert.Same(value2, events[5].AffectedControl); 565Assert.Same(value2, events[6].AffectedControl); 567Assert.Same(value2, events[7].AffectedControl); 569Assert.Same(value2, events[8].AffectedControl); 589Assert.Same(owner, value1.Parent); 593Assert.Same(owner, value2.Parent); 601Assert.Same(value1, events[0].AffectedControl); 603Assert.Same(value1, events[1].AffectedControl); 605Assert.Same(value1, events[2].AffectedControl); 607Assert.Same(value1, events[3].AffectedControl); 609Assert.Same(value1, events[4].AffectedControl); 611Assert.Same(value2, events[5].AffectedControl); 613Assert.Same(value2, events[6].AffectedControl); 615Assert.Same(value2, events[7].AffectedControl); 617Assert.Same(value2, events[8].AffectedControl); 619Assert.Same(value1, events[9].AffectedControl); 621Assert.Same(value1, events[10].AffectedControl); 623Assert.Same(value1, events[11].AffectedControl); 625Assert.Same(value1, events[12].AffectedControl); 666Assert.Same(owner, value.Parent); 668Assert.Same(value, Assert.Single(container.Components)); 702Assert.Same(owner, value.Parent); 703Assert.Same(mockValueSite.Object, value.Site); 727Assert.Same(owner, value.Parent); 747Assert.Same(owner, value.Parent); 901Assert.Same(owner, page.Parent); 922Assert.Same(owner, page.Parent); 943Assert.Same(owner, page.Parent); 964Assert.Same(owner, page.Parent); 990Assert.Same(owner, sender); 1001Assert.Same(value1, Assert.Single(collection)); 1002Assert.Same(value1, Assert.Single(owner.TabPages)); 1003Assert.Same(owner, value1.Parent); 1010Assert.Same(value1, events[0].AffectedControl); 1012Assert.Same(value1, events[1].AffectedControl); 1021Assert.Same(owner, value1.Parent); 1025Assert.Same(owner, value2.Parent); 1033Assert.Same(value1, events[0].AffectedControl); 1035Assert.Same(value1, events[1].AffectedControl); 1037Assert.Same(value2, events[2].AffectedControl); 1039Assert.Same(value2, events[3].AffectedControl); 1049Assert.Same(owner, value1.Parent); 1051Assert.Same(owner, value2.Parent); 1060Assert.Same(value1, events[0].AffectedControl); 1062Assert.Same(value1, events[1].AffectedControl); 1064Assert.Same(value2, events[2].AffectedControl); 1066Assert.Same(value2, events[3].AffectedControl); 1068Assert.Same(value1, events[4].AffectedControl); 1115Assert.Same(owner, child1.Parent); 1116Assert.Same(owner, child2.Parent); 1117Assert.Same(owner, child3.Parent); 1127Assert.Same(owner, child1.Parent); 1128Assert.Same(owner, child2.Parent); 1129Assert.Same(owner, child3.Parent); 1140Assert.Same(owner, child1.Parent); 1141Assert.Same(owner, child2.Parent); 1142Assert.Same(owner, child3.Parent); 1175Assert.Same(collection, iList.SyncRoot); 1348Assert.Same(owner, sender); 1349Assert.Same(child3, e.AffectedControl); 1471Assert.Same(owner, sender); 1472Assert.Same(child3, e.AffectedControl); 1699Assert.Same(child1, enumerator.Current); 1702Assert.Same(child2, enumerator.Current); 1705Assert.Same(child3, enumerator.Current); 1761Assert.Same(child1, enumerator.Current); 1764Assert.Same(child2, enumerator.Current); 1767Assert.Same(child3, enumerator.Current); 1795Assert.Same(child1, enumerator.Current); 1798Assert.Same(child2, enumerator.Current); 1801Assert.Same(child3, enumerator.Current); 1804Assert.Same(child3, enumerator.Current); 1984Assert.Same(owner, sender); 1995Assert.Same(value1, Assert.Single(collection)); 1996Assert.Same(value1, Assert.Single(owner.TabPages)); 1997Assert.Same(value1, Assert.Single(owner.Controls)); 1998Assert.Same(owner, value1.Parent); 2005Assert.Same(value1, events[0].AffectedControl); 2007Assert.Same(value1, events[1].AffectedControl); 2017Assert.Same(owner, value1.Parent); 2021Assert.Same(owner, value2.Parent); 2029Assert.Same(value1, events[0].AffectedControl); 2031Assert.Same(value1, events[1].AffectedControl); 2033Assert.Same(value2, events[2].AffectedControl); 2035Assert.Same(value2, events[3].AffectedControl); 2037Assert.Same(value2, events[4].AffectedControl); 2048Assert.Same(owner, value1.Parent); 2050Assert.Same(owner, value2.Parent); 2059Assert.Same(value1, events[0].AffectedControl); 2061Assert.Same(value1, events[1].AffectedControl); 2063Assert.Same(value2, events[2].AffectedControl); 2065Assert.Same(value2, events[3].AffectedControl); 2067Assert.Same(value2, events[4].AffectedControl); 2069Assert.Same(value1, events[5].AffectedControl); 2071Assert.Same(value1, events[6].AffectedControl); 2105Assert.Same(owner, sender); 2123Assert.Same(value1, Assert.Single(collection)); 2124Assert.Same(value1, Assert.Single(owner.TabPages)); 2125Assert.Same(value1, Assert.Single(owner.Controls)); 2126Assert.Same(owner, value1.Parent); 2133Assert.Same(value1, events[0].AffectedControl); 2135Assert.Same(value1, events[1].AffectedControl); 2137Assert.Same(value1, events[2].AffectedControl); 2139Assert.Same(value1, events[3].AffectedControl); 2141Assert.Same(value1, events[4].AffectedControl); 2154Assert.Same(owner, value1.Parent); 2158Assert.Same(owner, value2.Parent); 2166Assert.Same(value1, events[0].AffectedControl); 2168Assert.Same(value1, events[1].AffectedControl); 2170Assert.Same(value1, events[2].AffectedControl); 2172Assert.Same(value1, events[3].AffectedControl); 2174Assert.Same(value1, events[4].AffectedControl); 2176Assert.Same(value2, events[5].AffectedControl); 2178Assert.Same(value2, events[6].AffectedControl); 2180Assert.Same(value2, events[7].AffectedControl); 2182Assert.Same(value2, events[8].AffectedControl); 2184Assert.Same(value2, events[9].AffectedControl); 2198Assert.Same(owner, value1.Parent); 2202Assert.Same(owner, value2.Parent); 2210Assert.Same(value1, events[0].AffectedControl); 2212Assert.Same(value1, events[1].AffectedControl); 2214Assert.Same(value1, events[2].AffectedControl); 2216Assert.Same(value1, events[3].AffectedControl); 2218Assert.Same(value1, events[4].AffectedControl); 2220Assert.Same(value2, events[5].AffectedControl); 2222Assert.Same(value2, events[6].AffectedControl); 2224Assert.Same(value2, events[7].AffectedControl); 2226Assert.Same(value2, events[8].AffectedControl); 2228Assert.Same(value2, events[9].AffectedControl); 2230Assert.Same(value1, events[10].AffectedControl); 2232Assert.Same(value1, events[11].AffectedControl); 2234Assert.Same(value1, events[12].AffectedControl); 2236Assert.Same(value1, events[13].AffectedControl); 2238Assert.Same(value1, events[14].AffectedControl); 2274Assert.Same(owner, sender); 2299Assert.Same(value1, Assert.Single(collection)); 2300Assert.Same(value1, Assert.Single(owner.TabPages)); 2301Assert.Same(value1, Assert.Single(owner.Controls)); 2302Assert.Same(owner, value1.Parent); 2309Assert.Same(value1, events[0].AffectedControl); 2311Assert.Same(value1, events[1].AffectedControl); 2324Assert.Same(owner, value1.Parent); 2328Assert.Same(owner, value2.Parent); 2336Assert.Same(value1, events[0].AffectedControl); 2338Assert.Same(value1, events[1].AffectedControl); 2340Assert.Same(value2, events[2].AffectedControl); 2342Assert.Same(value2, events[3].AffectedControl); 2344Assert.Same(value2, events[4].AffectedControl); 2361Assert.Same(owner, value1.Parent); 2363Assert.Same(owner, value2.Parent); 2372Assert.Same(value1, events[0].AffectedControl); 2374Assert.Same(value1, events[1].AffectedControl); 2376Assert.Same(value2, events[2].AffectedControl); 2378Assert.Same(value2, events[3].AffectedControl); 2380Assert.Same(value2, events[4].AffectedControl); 2382Assert.Same(value1, events[5].AffectedControl); 2384Assert.Same(value1, events[6].AffectedControl); 2424Assert.Same(owner, sender); 2456Assert.Same(value1, Assert.Single(collection)); 2457Assert.Same(value1, Assert.Single(owner.TabPages)); 2458Assert.Same(value1, Assert.Single(owner.Controls)); 2459Assert.Same(owner, value1.Parent); 2466Assert.Same(value1, events[0].AffectedControl); 2468Assert.Same(value1, events[1].AffectedControl); 2470Assert.Same(value1, events[2].AffectedControl); 2472Assert.Same(value1, events[3].AffectedControl); 2474Assert.Same(value1, events[4].AffectedControl); 2490Assert.Same(owner, value1.Parent); 2494Assert.Same(owner, value2.Parent); 2502Assert.Same(value1, events[0].AffectedControl); 2504Assert.Same(value1, events[1].AffectedControl); 2506Assert.Same(value1, events[2].AffectedControl); 2508Assert.Same(value1, events[3].AffectedControl); 2510Assert.Same(value1, events[4].AffectedControl); 2512Assert.Same(value2, events[5].AffectedControl); 2514Assert.Same(value2, events[6].AffectedControl); 2516Assert.Same(value2, events[7].AffectedControl); 2518Assert.Same(value2, events[8].AffectedControl); 2520Assert.Same(value2, events[9].AffectedControl); 2540Assert.Same(owner, value1.Parent); 2544Assert.Same(owner, value2.Parent); 2552Assert.Same(value1, events[0].AffectedControl); 2554Assert.Same(value1, events[1].AffectedControl); 2556Assert.Same(value1, events[2].AffectedControl); 2558Assert.Same(value1, events[3].AffectedControl); 2560Assert.Same(value1, events[4].AffectedControl); 2562Assert.Same(value2, events[5].AffectedControl); 2564Assert.Same(value2, events[6].AffectedControl); 2566Assert.Same(value2, events[7].AffectedControl); 2568Assert.Same(value2, events[8].AffectedControl); 2570Assert.Same(value2, events[9].AffectedControl); 2572Assert.Same(value1, events[10].AffectedControl); 2574Assert.Same(value1, events[11].AffectedControl); 2576Assert.Same(value1, events[12].AffectedControl); 2578Assert.Same(value1, events[13].AffectedControl); 2580Assert.Same(value1, events[14].AffectedControl); 2619Assert.Same(owner, value.Parent); 2621Assert.Same(value, Assert.Single(container.Components)); 2653Assert.Same(owner, value.Parent); 2654Assert.Same(mockValueSite.Object, value.Site); 2676Assert.Same(owner, value.Parent); 2697Assert.Same(owner, value.Parent); 2715Assert.Same(owner, page.Parent); 2735Assert.Same(owner, page.Parent); 2755Assert.Same(owner, page.Parent); 2775Assert.Same(owner, page.Parent); 2982Assert.Same(child, Assert.Single(collection)); 3005Assert.Same(child, Assert.Single(collection)); 3030Assert.Same(owner, sender); 3041Assert.Same(value1, Assert.Single(collection)); 3042Assert.Same(value1, Assert.Single(owner.TabPages)); 3043Assert.Same(value1, Assert.Single(owner.Controls)); 3044Assert.Same(owner, value1.Parent); 3051Assert.Same(value1, events[0].AffectedControl); 3052Assert.Same("Parent", events[0].AffectedProperty); 3053Assert.Same(value1, events[1].AffectedControl); 3054Assert.Same("Visible", events[1].AffectedProperty); 3063Assert.Same(owner, value1.Parent); 3067Assert.Same(owner, value2.Parent); 3075Assert.Same(value1, events[0].AffectedControl); 3076Assert.Same("Parent", events[0].AffectedProperty); 3077Assert.Same(value1, events[1].AffectedControl); 3078Assert.Same("Visible", events[1].AffectedProperty); 3079Assert.Same(value2, events[2].AffectedControl); 3080Assert.Same("Parent", events[2].AffectedProperty); 3081Assert.Same(value2, events[3].AffectedControl); 3082Assert.Same("Visible", events[3].AffectedProperty); 3083Assert.Same(value2, events[4].AffectedControl); 3084Assert.Same("ChildIndex", events[4].AffectedProperty); 3094Assert.Same(owner, value1.Parent); 3096Assert.Same(owner, value2.Parent); 3105Assert.Same(value1, events[0].AffectedControl); 3106Assert.Same("Parent", events[0].AffectedProperty); 3107Assert.Same(value1, events[1].AffectedControl); 3108Assert.Same("Visible", events[1].AffectedProperty); 3109Assert.Same(value2, events[2].AffectedControl); 3110Assert.Same("Parent", events[2].AffectedProperty); 3111Assert.Same(value2, events[3].AffectedControl); 3112Assert.Same("Visible", events[3].AffectedProperty); 3113Assert.Same(value2, events[4].AffectedControl); 3114Assert.Same("ChildIndex", events[4].AffectedProperty); 3115Assert.Same(value1, events[5].AffectedControl); 3116Assert.Same("ChildIndex", events[5].AffectedProperty); 3117Assert.Same(value1, events[6].AffectedControl); 3118Assert.Same("ChildIndex", events[6].AffectedProperty); 3209Assert.Same(child, Assert.Single(collection)); 3227Assert.Same(child, Assert.Single(collection)); 3324Assert.Same(page1, collection[0]); 3325Assert.Same(page2, collection[1]); 3373Assert.Same(newPage, collection[index]); 3374Assert.Same(owner, page1.Parent); 3375Assert.Same(owner, page2.Parent); 3376Assert.Same(owner, page3.Parent); 3418Assert.Same(newPage, collection[index]); 3419Assert.Same(owner, page1.Parent); 3420Assert.Same(owner, page2.Parent); 3421Assert.Same(owner, page3.Parent); 3458Assert.Same(newPage, collection[index]); 3459Assert.Same(owner, page1.Parent); 3460Assert.Same(owner, page2.Parent); 3461Assert.Same(owner, page3.Parent); 3514Assert.Same(newPage, collection[index]); 3515Assert.Same(owner, page1.Parent); 3516Assert.Same(owner, page2.Parent); 3517Assert.Same(owner, page3.Parent); 3724Assert.Same(page1, iList[0]); 3725Assert.Same(page2, iList[1]); 3772Assert.Same(newPage, iList[index]); 3773Assert.Same(owner, page1.Parent); 3774Assert.Same(owner, page2.Parent); 3775Assert.Same(owner, page3.Parent); 3816Assert.Same(newPage, iList[index]); 3817Assert.Same(owner, page1.Parent); 3818Assert.Same(owner, page2.Parent); 3819Assert.Same(owner, page3.Parent); 3855Assert.Same(newPage, iList[index]); 3856Assert.Same(owner, page1.Parent); 3857Assert.Same(owner, page2.Parent); 3858Assert.Same(owner, page3.Parent); 3910Assert.Same(newPage, iList[index]); 3911Assert.Same(owner, page1.Parent); 3912Assert.Same(owner, page2.Parent); 3913Assert.Same(owner, page3.Parent); 3996Assert.Same(owner, sender); 4007Assert.Same(value1, Assert.Single(collection)); 4008Assert.Same(value1, Assert.Single(owner.TabPages)); 4009Assert.Same(value1, Assert.Single(owner.Controls)); 4010Assert.Same(owner, value1.Parent); 4028Assert.Same(value1, Assert.Single(collection)); 4029Assert.Same(value1, Assert.Single(owner.TabPages)); 4030Assert.Same(value1, Assert.Single(owner.Controls)); 4031Assert.Same(owner, value1.Parent); 4097Assert.Same(owner, sender); 4122Assert.Same(value1, Assert.Single(collection)); 4123Assert.Same(value1, Assert.Single(owner.TabPages)); 4124Assert.Same(value1, Assert.Single(owner.Controls)); 4125Assert.Same(owner, value1.Parent); 4146Assert.Same(value1, Assert.Single(collection)); 4147Assert.Same(value1, Assert.Single(owner.TabPages)); 4148Assert.Same(value1, Assert.Single(owner.Controls)); 4149Assert.Same(owner, value1.Parent); 4227Assert.Same(owner, sender); 4245Assert.Same(value1, Assert.Single(collection)); 4246Assert.Same(value1, Assert.Single(owner.TabPages)); 4247Assert.Same(value1, Assert.Single(owner.Controls)); 4248Assert.Same(owner, value1.Parent); 4269Assert.Same(value1, Assert.Single(collection)); 4270Assert.Same(value1, Assert.Single(owner.TabPages)); 4271Assert.Same(value1, Assert.Single(owner.Controls)); 4272Assert.Same(owner, value1.Parent); 4344Assert.Same(owner, sender); 4369Assert.Same(value1, Assert.Single(collection)); 4370Assert.Same(value1, Assert.Single(owner.TabPages)); 4371Assert.Same(value1, Assert.Single(owner.Controls)); 4372Assert.Same(owner, value1.Parent); 4393Assert.Same(value1, Assert.Single(collection)); 4394Assert.Same(value1, Assert.Single(owner.TabPages)); 4395Assert.Same(value1, Assert.Single(owner.Controls)); 4396Assert.Same(owner, value1.Parent); 4467Assert.Same(value4, owner.SelectedTab); 4506Assert.Same(value4, owner.SelectedTab); 4512Assert.Same(value4, owner.SelectedTab); 4517Assert.Same(value1, owner.SelectedTab); 4522Assert.Same(value3, owner.SelectedTab); 4544Assert.Same(owner, value.Parent); 4716Assert.Same(owner, sender); 4727Assert.Same(value1, Assert.Single(collection)); 4728Assert.Same(value1, Assert.Single(owner.TabPages)); 4729Assert.Same(owner, value1.Parent); 4747Assert.Same(value1, Assert.Single(collection)); 4748Assert.Same(value1, Assert.Single(owner.TabPages)); 4749Assert.Same(owner, value1.Parent); 4826Assert.Same(owner, sender); 4827Assert.Same(affectedControl, e.AffectedControl); 4839Assert.Same(owner, child1.Parent); 4920Assert.Same(owner, sender); 4921Assert.Same(affectedControl, e.AffectedControl); 4933Assert.Same(owner, child1.Parent); 4935Assert.Same(owner, child3.Parent); 4946Assert.Same(owner, child1.Parent);
System\Windows\Forms\TabControlTests.cs (171)
46Assert.Same(control.Controls, control.Controls); 48Assert.Same(Cursors.Default, control.Cursor); 49Assert.Same(Cursors.Default, control.DefaultCursor); 62Assert.Same(control.Events, control.Events); 77Assert.Same(control.LayoutEngine, control.LayoutEngine); 105Assert.Same(control.TabPages, control.TabPages); 133Assert.Same(createParams, control.CreateParams); 158Assert.Same(createParams, control.CreateParams); 182Assert.Same(createParams, control.CreateParams); 219Assert.Same(createParams, control.CreateParams); 245Assert.Same(createParams, control.CreateParams); 269Assert.Same(createParams, control.CreateParams); 304Assert.Same(createParams, control.CreateParams); 329Assert.Same(createParams, control.CreateParams); 358Assert.Same(createParams, control.CreateParams); 586Assert.Same(control, sender); 587Assert.Same(EventArgs.Empty, e); 623Assert.Same(value, control.BackgroundImage); 628Assert.Same(value, control.BackgroundImage); 639Assert.Same(control, sender); 640Assert.Same(EventArgs.Empty, e); 649Assert.Same(image1, control.BackgroundImage); 654Assert.Same(image1, control.BackgroundImage); 660Assert.Same(image2, control.BackgroundImage); 671Assert.Same(image1, control.BackgroundImage); 701Assert.Same(control, sender); 702Assert.Same(EventArgs.Empty, e); 980Assert.Same(control, sender); 981Assert.Same(EventArgs.Empty, e); 1164Assert.Same(value, control.ImageList); 1169Assert.Same(value, control.ImageList); 1184Assert.Same(value, control.ImageList); 1189Assert.Same(value, control.ImageList); 1207Assert.Same(value, control.ImageList); 1215Assert.Same(value, control.ImageList); 1240Assert.Same(value, control.ImageList); 1248Assert.Same(value, control.ImageList); 1272Assert.Same(imageList, control.ImageList); 1317Assert.Same(imageList1, control.ImageList); 1326Assert.Same(imageList2, control.ImageList); 1345Assert.Same(imageList1, control.ImageList); 1361Assert.Same(imageList2, control.ImageList); 1379Assert.Same(imageList1, control.ImageList); 1384Assert.Same(imageList1, control.ImageList); 1391Assert.Same(imageList2, control.ImageList); 1412Assert.Same(imageList1, control.ImageList); 1421Assert.Same(imageList1, control.ImageList); 1432Assert.Same(imageList2, control.ImageList); 1841Assert.Same(control, sender); 1842Assert.Same(control, e.AffectedControl); 1888Assert.Same(control, sender); 1889Assert.Same(control, e.AffectedControl); 1931Assert.Same(control, sender); 1932Assert.Same(EventArgs.Empty, e); 2224Assert.Same(control, sender); 2238Assert.Same(control, sender); 2250Assert.Same(control, sender); 2262Assert.Same(control, sender); 2272Assert.Same(control, sender); 2273Assert.Same(EventArgs.Empty, e); 2337Assert.Same(control, sender); 2415Assert.Same(control, sender); 2429Assert.Same(control, sender); 2441Assert.Same(control, sender); 2527Assert.Same(page1, control.SelectedTab); 2585Assert.Same(page2, control.SelectedTab); 2595Assert.Same(page2, control.SelectedTab); 2615Assert.Same(page1, control.SelectedTab); 2698Assert.Same(page2, control.SelectedTab); 2717Assert.Same(page2, control.SelectedTab); 2755Assert.Same(page1, control.SelectedTab); 2961Assert.Same(control, sender); 2996Assert.Same(control, controls.Owner); 3033Assert.Same(page2, control.SelectedTab); 3043Assert.Same(page2, control.SelectedTab); 3053Assert.Same(page1, control.SelectedTab); 3094Assert.Same(page2, control.SelectedTab); 3114Assert.Same(page2, control.SelectedTab); 3133Assert.Same(page2, control.SelectedTab); 3152Assert.Same(page1, control.SelectedTab); 3218Assert.Same(page2, control.SelectedTab); 3228Assert.Same(page2, control.SelectedTab); 3238Assert.Same(page1, control.SelectedTab); 3285Assert.Same(page2, control.SelectedTab); 3305Assert.Same(page2, control.SelectedTab); 3324Assert.Same(page2, control.SelectedTab); 3343Assert.Same(page1, control.SelectedTab); 3412Assert.Same(page2, control.SelectedTab); 3422Assert.Same(page2, control.SelectedTab); 3432Assert.Same(page1, control.SelectedTab); 3473Assert.Same(page2, control.SelectedTab); 3493Assert.Same(page2, control.SelectedTab); 3512Assert.Same(page2, control.SelectedTab); 3531Assert.Same(page1, control.SelectedTab); 3580Assert.Same(imageList, control.ImageList); 3583Assert.Same(imageList, control.ImageList); 3593Assert.Same(imageList, control.ImageList); 3596Assert.Same(imageList, control.ImageList); 3606Assert.Same(imageList, control.ImageList); 3622Assert.Same(control.TabPages[index], control.GetControl(index)); 3835Assert.Same(result, control.GetItems()); 4121Assert.Same(control, sender); 4122Assert.Same(eventArgs, e); 4152Assert.Same(control, sender); 4153Assert.Same(eventArgs, e); 4160Assert.Same(page1, sender); 4161Assert.Same(EventArgs.Empty, e); 4200Assert.Same(control, sender); 4201Assert.Same(eventArgs, e); 4233Assert.Same(control, sender); 4234Assert.Same(eventArgs, e); 4257Assert.Same(control, sender); 4258Assert.Same(eventArgs, e); 4290Assert.Same(page2, sender); 4291Assert.Same(eventArgs, e); 4296Assert.Same(control, sender); 4297Assert.Same(eventArgs, e); 4326Assert.Same(control, sender); 4327Assert.Same(eventArgs, e); 4353Assert.Same(control, sender); 4354Assert.Same(eventArgs, e); 4379Assert.Same(control, sender); 4380Assert.Same(eventArgs, e); 4406Assert.Same(control, sender); 4407Assert.Same(eventArgs, e); 4432Assert.Same(control, sender); 4433Assert.Same(eventArgs, e); 4465Assert.Same(page2, sender); 4466Assert.Same(eventArgs, e); 4471Assert.Same(control, sender); 4472Assert.Same(eventArgs, e); 4514Assert.Same(control, sender); 4515Assert.Same(eventArgs, e); 4561Assert.Same(control, sender); 4562Assert.Same(eventArgs, e); 4626Assert.Same(control, sender); 4627Assert.Same(eventArgs, e); 4634Assert.Same(page1, sender); 4635Assert.Same(EventArgs.Empty, e); 4668Assert.Same(control, sender); 4669Assert.Same(eventArgs, e); 4698Assert.Same(control, sender); 4699Assert.Same(eventArgs, e); 4735Assert.Same(control, sender); 4736Assert.Same(eventArgs, e); 4786Assert.Same(control, sender); 4787Assert.Same(eventArgs, e); 4822Assert.Same(control, sender); 4823Assert.Same(eventArgs, e); 5011Assert.Same(control, sender); 5012Assert.Same(child3, e.AffectedControl); 5126Assert.Same(control, sender); 5127Assert.Same(child3, e.AffectedControl); 5202Assert.Same(page2, control.SelectedTab); 5212Assert.Same(page2, control.SelectedTab); 5222Assert.Same(page1, control.SelectedTab); 5263Assert.Same(page2, control.SelectedTab); 5282Assert.Same(page2, control.SelectedTab); 5301Assert.Same(page1, control.SelectedTab); 5363Assert.Same(page2, control.SelectedTab); 5373Assert.Same(page2, control.SelectedTab); 5383Assert.Same(page1, control.SelectedTab); 5430Assert.Same(page2, control.SelectedTab); 5449Assert.Same(page2, control.SelectedTab); 5468Assert.Same(page1, control.SelectedTab); 5527Assert.Same(page2, control.SelectedTab); 5537Assert.Same(page2, control.SelectedTab); 5547Assert.Same(page1, control.SelectedTab); 5588Assert.Same(page2, control.SelectedTab); 5607Assert.Same(page2, control.SelectedTab); 5626Assert.Same(page1, control.SelectedTab);
System\Windows\Forms\TableLayoutPanelTests.cs (62)
49Assert.Same(control.LayoutSettings.ColumnStyles, control.ColumnStyles); 54Assert.Same(control.Controls, control.Controls); 68Assert.Same(control.DockPadding, control.DockPadding); 76Assert.Same(control.Events, control.Events); 85Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 94Assert.Same(control.LayoutSettings, control.LayoutSettings); 111Assert.Same(control.LayoutSettings.RowStyles, control.RowStyles); 123Assert.Same(control.VerticalScroll, control.VerticalScroll); 146Assert.Same(createParams, control.CreateParams); 229Assert.Same(control, sender); 230Assert.Same(control, e.AffectedControl); 265Assert.Same(control, sender); 266Assert.Same(control, e.AffectedControl); 308Assert.Same(control, sender); 309Assert.Same(control, e.AffectedControl); 345Assert.Same(child, Assert.Single(control.Controls)); 349Assert.Same(child, Assert.Single(control.Controls)); 365Assert.Same(child, Assert.Single(control.Controls)); 369Assert.Same(child, Assert.Single(control.Controls)); 383Assert.Same(control, sender); 384Assert.Same(control, e.AffectedControl); 419Assert.Same(control, sender); 420Assert.Same(control, e.AffectedControl); 455Assert.Same(control, sender); 456Assert.Same(control, e.AffectedControl); 506Assert.Same(control, sender); 507Assert.Same(control, e.AffectedControl); 553Assert.Same(control, sender); 554Assert.Same(control, e.AffectedControl); 600Assert.Same(control, sender); 601Assert.Same(control, e.AffectedControl); 631Assert.Same(control, controls.Owner); 754Assert.Same(child, control.GetControlFromPosition(column, row)); 762Assert.Same(child, control.GetControlFromPosition(column, row)); 1221Assert.Same(control, sender); 1222Assert.Same(eventArgs, e); 1246Assert.Same(control, sender); 1247Assert.Same(eventArgs, e); 1272Assert.Same(control, sender); 1273Assert.Same(eventArgs, e); 1299Assert.Same(control, sender); 1300Assert.Same(eventArgs, e); 1344Assert.Same(control, sender); 1345Assert.Same(eventArgs, e); 1377Assert.Same(control, sender); 1378Assert.Same(eventArgs, e); 1445Assert.Same(control, sender); 1446Assert.Same(eventArgs, e); 1483Assert.Same(eventArgs.Graphics, e.Graphics); 1500Assert.Same(control, sender); 1501Assert.Same(eventArgs, e); 1604Assert.Same(parent, sender); 1605Assert.Same(child, eventArgs.AffectedControl); 1710Assert.Same(parent, sender); 1711Assert.Same(child, eventArgs.AffectedControl); 1819Assert.Same(parent, sender); 1820Assert.Same(child, eventArgs.AffectedControl); 1937Assert.Same(parent, sender); 1938Assert.Same(child, eventArgs.AffectedControl); 2046Assert.Same(parent, sender); 2047Assert.Same(child, eventArgs.AffectedControl);
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (1)
208Assert.Same(style, Assert.Single(collection));
System\Windows\Forms\TableLayoutStyleTests.cs (4)
49Assert.Same(control, sender); 50Assert.Same(control, e.AffectedControl); 88Assert.Same(control, sender); 89Assert.Same(control, e.AffectedControl);
System\Windows\Forms\TabPageTests.cs (147)
53Assert.Same(control.Controls, control.Controls); 56Assert.Same(Cursors.Default, control.Cursor); 57Assert.Same(Cursors.Default, control.DefaultCursor); 68Assert.Same(control.DockPadding, control.DockPadding); 76Assert.Same(control.Events, control.Events); 84Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 91Assert.Same(control.LayoutEngine, control.LayoutEngine); 119Assert.Same(control.VerticalScroll, control.VerticalScroll); 162Assert.Same(control.Controls, control.Controls); 165Assert.Same(Cursors.Default, control.Cursor); 166Assert.Same(Cursors.Default, control.DefaultCursor); 177Assert.Same(control.DockPadding, control.DockPadding); 185Assert.Same(control.Events, control.Events); 193Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 200Assert.Same(control.LayoutEngine, control.LayoutEngine); 228Assert.Same(control.VerticalScroll, control.VerticalScroll); 251Assert.Same(createParams, control.CreateParams); 352Assert.Same(control, sender); 353Assert.Same(EventArgs.Empty, e); 866Assert.Same(control, sender); 867Assert.Same(EventArgs.Empty, e); 959Assert.Same(control, sender); 960Assert.Same(EventArgs.Empty, e); 1069Assert.Same(control, sender); 1070Assert.Same(EventArgs.Empty, e); 1880Assert.Same(control, sender); 1881Assert.Same(EventArgs.Empty, e); 1887Assert.Same(control, sender); 1888Assert.Same(EventArgs.Empty, e); 1959Assert.Same(control, sender); 1960Assert.Same(EventArgs.Empty, e); 1966Assert.Same(control, sender); 1967Assert.Same(EventArgs.Empty, e); 1977Assert.Same(parent, sender); 1978Assert.Same(control, e.AffectedControl); 2064Assert.Same(control, sender); 2065Assert.Same(EventArgs.Empty, e); 2071Assert.Same(control, sender); 2072Assert.Same(EventArgs.Empty, e); 2184Assert.Same(control, sender); 2185Assert.Same(EventArgs.Empty, e); 2191Assert.Same(control, sender); 2192Assert.Same(EventArgs.Empty, e); 2202Assert.Same(parent, sender); 2203Assert.Same(control, e.AffectedControl); 2314Assert.Same(control, sender); 2315Assert.Same(EventArgs.Empty, e); 2322Assert.Same(control, sender); 2323Assert.Same(EventArgs.Empty, e); 2453Assert.Same(control, sender); 2454Assert.Same(control, e.AffectedControl); 2487Assert.Same(value, control.Parent); 2492Assert.Same(value, control.Parent); 2507Assert.Same(value, control.Parent); 2513Assert.Same(value, control.Parent); 2526Assert.Same(parent, control.Parent); 2527Assert.Same(control, Assert.Single(parent.Controls)); 2532Assert.Same(parent, control.Parent); 2533Assert.Same(control, Assert.Single(parent.Controls)); 2551Assert.Same(value, control.Parent); 2559Assert.Same(value, control.Parent); 2574Assert.Same(control, sender); 2575Assert.Same(EventArgs.Empty, e); 2582Assert.Same(parent, control.Parent); 2587Assert.Same(parent, control.Parent); 2598Assert.Same(parent, control.Parent); 2648Assert.Same(control, sender); 2649Assert.Same(EventArgs.Empty, e); 2752Assert.Same(control, sender); 2753Assert.Same(EventArgs.Empty, e); 3124Assert.Same(control, sender); 3712Assert.Same(control, sender); 3713Assert.Same(EventArgs.Empty, e); 3746Assert.Same(control, controls.Owner); 3822Assert.Same(grandparent, TabPage.GetTabPageOfComponent(control)); 3823Assert.Same(grandparent, TabPage.GetTabPageOfComponent(parent)); 3824Assert.Same(grandparent, TabPage.GetTabPageOfComponent(grandparent)); 3860Assert.Same(control, sender); 3861Assert.Same(eventArgs, e); 3888Assert.Same(control, sender); 3889Assert.Same(eventArgs, e); 3912Assert.Same(control, sender); 3913Assert.Same(eventArgs, e); 3940Assert.Same(control, sender); 3941Assert.Same(eventArgs, e); 3988Assert.Same(control, sender); 3989Assert.Same(eventArgs, e); 4068Assert.Same(control, sender); 4069Assert.Same(eventArgs, e); 4075Assert.Same(parent, sender); 4114Assert.Same(control, sender); 4115Assert.Same(eventArgs, e); 4207Assert.Same(control, sender); 4208Assert.Same(eventArgs, e); 4214Assert.Same(parent, sender); 4286Assert.Same(control, sender); 4287Assert.Same(EventArgs.Empty, e); 4297Assert.Same(control, sender); 4298Assert.Same(EventArgs.Empty, e); 4308Assert.Same(control, sender); 4309Assert.Same(control, e.AffectedControl); 4318Assert.Same(control, sender); 4319Assert.Same(EventArgs.Empty, e); 4327Assert.Same(control, sender); 4328Assert.Same(EventArgs.Empty, e); 4336Assert.Same(control, sender); 4337Assert.Same(EventArgs.Empty, e); 4404Assert.Same(control, sender); 4405Assert.Same(EventArgs.Empty, e); 4415Assert.Same(control, sender); 4416Assert.Same(EventArgs.Empty, e); 4426Assert.Same(control, sender); 4427Assert.Same(control, e.AffectedControl); 4437Assert.Same(control, sender); 4438Assert.Same(EventArgs.Empty, e); 4447Assert.Same(control, sender); 4448Assert.Same(EventArgs.Empty, e); 4457Assert.Same(control, sender); 4458Assert.Same(EventArgs.Empty, e); 4467Assert.Same(parent, sender); 4468Assert.Same(control, e.AffectedControl); 4578Assert.Same(control, sender); 4579Assert.Same(EventArgs.Empty, e); 4589Assert.Same(control, sender); 4590Assert.Same(EventArgs.Empty, e); 4600Assert.Same(control, sender); 4601Assert.Same(control, e.AffectedControl); 4610Assert.Same(control, sender); 4611Assert.Same(EventArgs.Empty, e); 4619Assert.Same(control, sender); 4620Assert.Same(EventArgs.Empty, e); 4628Assert.Same(control, sender); 4629Assert.Same(EventArgs.Empty, e); 4737Assert.Same(control, sender); 4738Assert.Same(EventArgs.Empty, e); 4748Assert.Same(control, sender); 4749Assert.Same(EventArgs.Empty, e); 4759Assert.Same(control, sender); 4760Assert.Same(control, e.AffectedControl); 4770Assert.Same(control, sender); 4771Assert.Same(EventArgs.Empty, e); 4780Assert.Same(control, sender); 4781Assert.Same(EventArgs.Empty, e); 4790Assert.Same(control, sender); 4791Assert.Same(EventArgs.Empty, e); 4800Assert.Same(parent, sender); 4801Assert.Same(control, e.AffectedControl);
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (10)
15Assert.Same(owner, collection.Owner); 35Assert.Same(owner, sender); 36Assert.Same(collection.Cast<Control>().Last(), e.AffectedControl); 51Assert.Same(control1, Assert.Single(collection)); 52Assert.Same(owner, control1.Parent); 54Assert.Same(control1, Assert.Single(owner.Controls)); 63Assert.Same(owner, control1.Parent); 65Assert.Same(owner, control2.Parent); 79Assert.Same(owner, control1.Parent); 81Assert.Same(owner, control2.Parent);
System\Windows\Forms\TimerTests.cs (7)
28Assert.Same(container, timer.Container); 237Assert.Same(value, timer.Tag); 241Assert.Same(value, timer.Tag); 257Assert.Same(value, timer.Tag); 261Assert.Same(value, timer.Tag); 393Assert.Same(timer, sender); 394Assert.Same(eventArgs, e);
System\Windows\Forms\ToolStripButtonTests.cs (76)
19Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 53Assert.Same(item.Events, item.Events); 56Assert.Same(item.Font, item.Font); 100Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 134Assert.Same(item.Events, item.Events); 137Assert.Same(item.Font, item.Font); 187Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 221Assert.Same(item.Events, item.Events); 224Assert.Same(item.Font, item.Font); 227Assert.Same(image, item.Image); 277Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 311Assert.Same(item.Events, item.Events); 314Assert.Same(item.Font, item.Font); 317Assert.Same(image, item.Image); 399Assert.Same(item.Events, item.Events); 402Assert.Same(item.Font, item.Font); 497Assert.Same(item.Events, item.Events); 500Assert.Same(item.Font, item.Font); 580Assert.Same(button, sender); 581Assert.Same(EventArgs.Empty, e); 593Assert.Same(viewModel.TestCommand, button.Command); 599Assert.Same(CommandParameter, viewModel.CommandExecuteResult); 814Assert.Same(item, sender); 815Assert.Same(EventArgs.Empty, e); 822Assert.Same(item, sender); 823Assert.Same(EventArgs.Empty, e); 944Assert.Same(item, sender); 945Assert.Same(EventArgs.Empty, e); 952Assert.Same(item, sender); 953Assert.Same(EventArgs.Empty, e); 1104Assert.Same(item, sender); 1105Assert.Same(eventArgs, e); 1128Assert.Same(item, sender); 1129Assert.Same(eventArgs, e); 1152Assert.Same(item, sender); 1153Assert.Same(eventArgs, e); 1181Assert.Same(item, sender); 1182Assert.Same(eventArgs, e); 1207Assert.Same(item, sender); 1208Assert.Same(eventArgs, e); 1289Assert.Same(renderer, sender); 1290Assert.Same(graphics, e.Graphics); 1291Assert.Same(item, e.Item); 1298Assert.Same(renderer, sender); 1299Assert.Same(graphics, e.Graphics); 1300Assert.Same(item, e.Item); 1311Assert.Same(renderer, sender); 1312Assert.Same(graphics, e.Graphics); 1313Assert.Same(item, e.Item); 1318Assert.Same(font, e.TextFont); 1329Assert.Same(item, sender); 1330Assert.Same(eventArgs, e); 1380Assert.Same(renderer, sender); 1381Assert.Same(graphics, e.Graphics); 1382Assert.Same(item, e.Item); 1389Assert.Same(renderer, sender); 1390Assert.Same(graphics, e.Graphics); 1391Assert.Same(item, e.Item); 1402Assert.Same(renderer, sender); 1403Assert.Same(graphics, e.Graphics); 1404Assert.Same(item, e.Item); 1409Assert.Same(font, e.TextFont); 1420Assert.Same(item, sender); 1421Assert.Same(eventArgs, e); 1524Assert.Same(item, sender); 1525Assert.Same(EventArgs.Empty, e); 1551Assert.Same(item, sender); 1552Assert.Same(EventArgs.Empty, e); 1578Assert.Same(item, sender); 1579Assert.Same(EventArgs.Empty, e); 1603Assert.Same(item, sender); 1604Assert.Same(EventArgs.Empty, e); 1630Assert.Same(item, sender); 1631Assert.Same(EventArgs.Empty, e); 1657Assert.Same(item, sender); 1658Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolStripContentPanelTests.cs (79)
51Assert.Same(control.Controls, control.Controls); 65Assert.Same(control.DockPadding, control.DockPadding); 73Assert.Same(control.Events, control.Events); 81Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 88Assert.Same(control.LayoutEngine, control.LayoutEngine); 101Assert.Same(control.Renderer, control.Renderer); 117Assert.Same(control.VerticalScroll, control.VerticalScroll); 152Assert.Same(control, sender); 153Assert.Same(control, e.AffectedControl); 195Assert.Same(control, sender); 196Assert.Same(control, e.AffectedControl); 254Assert.Same(control, sender); 292Assert.Same(control, sender); 344Assert.Same(control, sender); 380Assert.Same(control, sender); 440Assert.Same(control, sender); 441Assert.Same(EventArgs.Empty, e); 692Assert.Same(control, sender); 693Assert.Same(EventArgs.Empty, e); 808Assert.Same(control, sender); 809Assert.Same(EventArgs.Empty, e); 863Assert.Same(control, sender); 864Assert.Same(EventArgs.Empty, e); 921Assert.Same(control, sender); 922Assert.Same(EventArgs.Empty, e); 928Assert.Same(control, sender); 929Assert.Same(EventArgs.Empty, e); 989Assert.Same(control, sender); 990Assert.Same(EventArgs.Empty, e); 997Assert.Same(control, sender); 998Assert.Same(EventArgs.Empty, e); 1072Assert.Same(control, sender); 1073Assert.Same(control, e.AffectedControl); 1116Assert.Same(control, sender); 1117Assert.Same(EventArgs.Empty, e); 1123Assert.Same(control.Renderer, control.Renderer); 1151Assert.Same(value, control.Renderer); 1158Assert.Same(value, control.Renderer); 1167Assert.Same(control.Renderer, control.Renderer); 1191Assert.Same(value, control.Renderer); 1201Assert.Same(value, control.Renderer); 1213Assert.Same(control.Renderer, control.Renderer); 1232Assert.Same(mockToolStripRenderer.Object, control.Renderer); 1237Assert.Same(mockToolStripRenderer.Object, control.Renderer); 1248Assert.Same(control, sender); 1249Assert.Same(EventArgs.Empty, e); 1257Assert.Same(renderer, control.Renderer); 1262Assert.Same(renderer, control.Renderer); 1269Assert.Same(control.Renderer, control.Renderer); 1275Assert.Same(renderer, control.Renderer); 1293Assert.Same(control, sender); 1294Assert.Same(EventArgs.Empty, e); 1302Assert.Same(control.Renderer, control.Renderer); 1334Assert.Same(control, sender); 1335Assert.Same(EventArgs.Empty, e); 1356Assert.Same(control.Renderer, control.Renderer); 1379Assert.Same(control, sender); 1380Assert.Same(EventArgs.Empty, e); 1388Assert.Same(control.Renderer, control.Renderer); 1517Assert.Same(control, sender); 1518Assert.Same(EventArgs.Empty, e); 1621Assert.Same(control, sender); 1622Assert.Same(EventArgs.Empty, e); 1762Assert.Same(control, sender); 1763Assert.Same(EventArgs.Empty, e); 1798Assert.Same(control, sender); 1799Assert.Same(EventArgs.Empty, e); 1805Assert.Same(control, sender); 1806Assert.Same(eventArgs, e); 1833Assert.Same(control, sender); 1834Assert.Same(eventArgs, e); 1866Assert.Same(renderer, sender); 1867Assert.Same(graphics, e.Graphics); 1868Assert.Same(control, e.ToolStripContentPanel); 1917Assert.Same(control, sender); 1918Assert.Same(eventArgs, e); 1956Assert.Same(control, sender); 1957Assert.Same(eventArgs, e); 1993Assert.Same(mockToolStripRenderer.Object, control.Renderer);
System\Windows\Forms\ToolStripControlHostTests.cs (166)
49Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 69Assert.Same(c, item.Control); 83Assert.Same(item.Events, item.Events); 85Assert.Same(c.Font, item.Font); 290Assert.Same(item, sender); 291Assert.Same(EventArgs.Empty, e); 560Assert.Same(backgroundImage, c.BackgroundImage); 561Assert.Same(backgroundImage, item.BackgroundImage); 617Assert.Same(value, c.Font); 618Assert.Same(value, item.Font); 784Assert.Same(item, sender); 785Assert.Same(EventArgs.Empty, e); 896Assert.Same(item, sender); 897Assert.Same(EventArgs.Empty, e); 1005Assert.Same(font, item.Font); 1013Assert.Same(font, item.Font); 1045Assert.Same(font, item.Font); 1053Assert.Same(font, item.Font); 1109Assert.Same(item, sender); 1110Assert.Same(EventArgs.Empty, e); 1396Assert.Same(parent, item.Parent); 1397Assert.Same(parent, item.GetCurrentParent()); 1400Assert.Same(c, Assert.Single(parent.Controls)); 1405Assert.Same(parent, item.Parent); 1406Assert.Same(parent, item.GetCurrentParent()); 1409Assert.Same(c, Assert.Single(parent.Controls)); 1416Assert.Same(otherParent, item.Parent); 1421Assert.Same(c, Assert.Single(otherParent.Controls)); 1436Assert.Same(statusParent, item.Parent); 1443Assert.Same(c, Assert.Single(statusParent.Controls)); 1465Assert.Same(parent, item.Parent); 1466Assert.Same(parent, item.GetCurrentParent()); 1467Assert.Same(owner, item.Owner); 1468Assert.Same(item, Assert.Single(owner.Items)); 1471Assert.Same(c, Assert.Single(parent.Controls)); 1476Assert.Same(parent, item.Parent); 1477Assert.Same(parent, item.GetCurrentParent()); 1478Assert.Same(owner, item.Owner); 1479Assert.Same(item, Assert.Single(owner.Items)); 1482Assert.Same(c, Assert.Single(parent.Controls)); 1489Assert.Same(otherParent, item.Parent); 1490Assert.Same(owner, item.Owner); 1491Assert.Same(item, Assert.Single(owner.Items)); 1496Assert.Same(c, Assert.Single(otherParent.Controls)); 1502Assert.Same(owner, item.Owner); 1503Assert.Same(item, Assert.Single(owner.Items)); 1508Assert.Same(c, Assert.Single(otherParent.Controls)); 1513Assert.Same(statusParent, item.Parent); 1514Assert.Same(owner, item.Owner); 1515Assert.Same(item, Assert.Single(owner.Items)); 1522Assert.Same(c, Assert.Single(statusParent.Controls)); 1535Assert.Same(parent, item.Parent); 1536Assert.Same(parent, item.GetCurrentParent()); 1601Assert.Same(item, sender); 1602Assert.Same(EventArgs.Empty, e); 1788Assert.Same(mockSite.Object, item.Site); 1790Assert.Same(c, c.Site.Component); 1791Assert.Same(container, c.Site.Container); 1798Assert.Same(mockSite.Object, item.Site); 1800Assert.Same(c, c.Site.Component); 1801Assert.Same(container, c.Site.Container); 1960Assert.Same(result, c.Site.GetService(typeof(int))); 1979Assert.Same(c.Site, c.Site.GetService(typeof(IDictionaryService))); 2273Assert.Same(item, sender); 2274Assert.Same(EventArgs.Empty, e); 2441Assert.Same(item, sender); 2442Assert.Same(EventArgs.Empty, e); 2477Assert.Same(item, sender); 2478Assert.Same(EventArgs.Empty, e); 2582Assert.Same(c, item.Control); 2670Assert.Same(c, item.Control); 2678Assert.Same(c, item.Control); 2811Assert.Same(item, sender); 2812Assert.Same(eventArgs, e); 2836Assert.Same(item, sender); 2837Assert.Same(eventArgs, e); 2879Assert.Same(item, sender); 2880Assert.Same(eventArgs, e); 2904Assert.Same(item, sender); 2905Assert.Same(eventArgs, e); 2929Assert.Same(item, sender); 2930Assert.Same(eventArgs, e); 2967Assert.Same(item, sender); 2968Assert.Same(eventArgs, e); 2992Assert.Same(item, sender); 2993Assert.Same(eventArgs, e); 3017Assert.Same(item, sender); 3018Assert.Same(eventArgs, e); 3086Assert.Same(owner, item.Owner); 3087Assert.Same(item, Assert.Single(owner.Items)); 3188Assert.Same(controlParent, c.Parent); 3200Assert.Same(controlParent, c.Parent); 3212Assert.Same(controlParent, c.Parent); 3224Assert.Same(controlParent, c.Parent); 3236Assert.Same(controlParent, c.Parent); 3293Assert.Same(item, sender); 3294Assert.Same(eventArgs, e); 3313Assert.Same(item, sender); 3314Assert.Same(eventArgs, e); 3333Assert.Same(item, sender); 3334Assert.Same(eventArgs, e); 3359Assert.Same(item, sender); 3360Assert.Same(eventArgs, e); 3379Assert.Same(item, sender); 3380Assert.Same(eventArgs, e); 3399Assert.Same(item, sender); 3400Assert.Same(eventArgs, e); 3419Assert.Same(item, sender); 3420Assert.Same(eventArgs, e); 3439Assert.Same(item, sender); 3440Assert.Same(eventArgs, e); 3459Assert.Same(item, sender); 3460Assert.Same(eventArgs, e); 3479Assert.Same(item, sender); 3480Assert.Same(eventArgs, e); 3505Assert.Same(item, sender); 3506Assert.Same(eventArgs, e); 3525Assert.Same(item, sender); 3526Assert.Same(eventArgs, e); 3545Assert.Same(item, sender); 3546Assert.Same(eventArgs, e); 3565Assert.Same(item, sender); 3566Assert.Same(eventArgs, e); 3585Assert.Same(item, sender); 3586Assert.Same(eventArgs, e); 3605Assert.Same(item, sender); 3606Assert.Same(eventArgs, e); 3625Assert.Same(item, sender); 3626Assert.Same(eventArgs, e); 3645Assert.Same(item, sender); 3646Assert.Same(eventArgs, e); 3665Assert.Same(item, sender); 3666Assert.Same(eventArgs, e); 3685Assert.Same(item, sender); 3686Assert.Same(eventArgs, e); 3705Assert.Same(item, sender); 3706Assert.Same(eventArgs, e); 3725Assert.Same(item, sender); 3726Assert.Same(eventArgs, e); 3745Assert.Same(item, sender); 3746Assert.Same(eventArgs, e); 3765Assert.Same(item, sender); 3766Assert.Same(eventArgs, e); 3785Assert.Same(item, sender); 3786Assert.Same(eventArgs, e); 3811Assert.Same(item, sender); 3812Assert.Same(eventArgs, e); 3830Assert.Same(item, sender); 3867Assert.Same(item, sender); 3868Assert.Same(eventArgs, e); 3887Assert.Same(item, sender); 3888Assert.Same(eventArgs, e); 3907Assert.Same(item, sender); 3908Assert.Same(eventArgs, e); 3934Assert.Same(item, sender); 3935Assert.Same(eventArgs, e); 3954Assert.Same(item, sender); 3955Assert.Same(eventArgs, e); 4150Assert.Same(item, sender); 4151Assert.Same(eventArgs, e); 4175Assert.Same(item, sender); 4176Assert.Same(eventArgs, e); 4494Assert.Same(item, sender); 4495Assert.Same(EventArgs.Empty, e); 4530Assert.Same(item, sender); 4531Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolStripDropDownItemTests.cs (21)
18Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 51Assert.Same(item.Events, item.Events); 54Assert.Same(item.Font, item.Font); 140Assert.Same(item.Events, item.Events); 143Assert.Same(item.Font, item.Font); 239Assert.Same(item.Events, item.Events); 242Assert.Same(item.Font, item.Font); 336Assert.Same(item.DropDown, item.DropDown); 339Assert.Same(item, item.DropDown.OwnerItem); 342Assert.Same(item.DropDownItems, item.DropDownItems); 347Assert.Same(item.Events, item.Events); 350Assert.Same(item.Font, item.Font); 395Assert.Same(item.DropDown, item.DropDown); 398Assert.Same(item, item.DropDown.OwnerItem); 415Assert.Same(item.DropDown, item.DropDown); 418Assert.Same(item, item.DropDown.OwnerItem); 435Assert.Same(item.DropDown, item.DropDown); 438Assert.Same(item, item.DropDown.OwnerItem); 451Assert.Same(item.DropDown, item.DropDown); 452Assert.Same(result, item.DropDown); 483Assert.Same(item.DropDownItems, item.DropDownItems);
System\Windows\Forms\ToolStripDropDownTests.cs (219)
53Assert.Same(control.Controls, control.Controls); 55Assert.Same(Cursors.Default, control.Cursor); 56Assert.Same(Cursors.Default, control.DefaultCursor); 69Assert.Same(control.DisplayedItems, control.DisplayedItems); 73Assert.Same(control.DockPadding, control.DockPadding); 82Assert.Same(control.Events, control.Events); 94Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 106Assert.Same(control.Items, control.Items); 108Assert.Same(control.LayoutEngine, control.LayoutEngine); 110Assert.Same(control.LayoutSettings, control.LayoutSettings); 121Assert.Same(control.OverflowButton, control.OverflowButton); 122Assert.Same(control, control.OverflowButton.GetCurrentParent()); 132Assert.Same(control.Renderer, control.Renderer); 151Assert.Same(control, control.TopLevelControl); 154Assert.Same(control.VerticalScroll, control.VerticalScroll); 178Assert.Same(createParams, control.CreateParams); 209Assert.Same(createParams, control.CreateParams); 243Assert.Same(createParams, control.CreateParams); 599Assert.Same(control, sender); 600Assert.Same(control, e.AffectedControl); 672Assert.Same(control, sender); 673Assert.Same(control, e.AffectedControl); 710Assert.Same(control, sender); 711Assert.Same(control, e.AffectedControl); 764Assert.Same(control, sender); 765Assert.Same(EventArgs.Empty, e); 800Assert.Same(value, control.BackgroundImage); 805Assert.Same(value, control.BackgroundImage); 816Assert.Same(control, sender); 817Assert.Same(EventArgs.Empty, e); 825Assert.Same(image1, control.BackgroundImage); 830Assert.Same(image1, control.BackgroundImage); 836Assert.Same(image2, control.BackgroundImage); 847Assert.Same(image1, control.BackgroundImage); 877Assert.Same(control, sender); 878Assert.Same(EventArgs.Empty, e); 919Assert.Same(value, control.BindingContext); 924Assert.Same(value, control.BindingContext); 935Assert.Same(control, sender); 936Assert.Same(EventArgs.Empty, e); 944Assert.Same(context1, control.BindingContext); 949Assert.Same(context1, control.BindingContext); 955Assert.Same(context2, control.BindingContext); 966Assert.Same(context1, control.BindingContext); 1012Assert.Same(control, sender); 1013Assert.Same(control, e.AffectedControl); 1059Assert.Same(value, control.ContextMenuStrip); 1064Assert.Same(value, control.ContextMenuStrip); 1075Assert.Same(control, sender); 1076Assert.Same(EventArgs.Empty, e); 1084Assert.Same(menu1, control.ContextMenuStrip); 1089Assert.Same(menu1, control.ContextMenuStrip); 1095Assert.Same(menu2, control.ContextMenuStrip); 1106Assert.Same(menu1, control.ContextMenuStrip); 1477Assert.Same(control.Font, control.Font); 1494Assert.Same(control.Font, control.Font); 1498Assert.Same(font2, control.Font); 1515Assert.Same(control.Font, control.Font); 1519Assert.Same(font2, control.Font); 1548Assert.Same(control, sender); 1549Assert.Same(EventArgs.Empty, e); 1557Assert.Same(font1, control.Font); 1562Assert.Same(font1, control.Font); 1568Assert.Same(font2, control.Font); 1579Assert.Same(font1, control.Font); 1595Assert.Same(control, sender); 1596Assert.Same(EventArgs.Empty, e); 1604Assert.Same(font1, control.Font); 1605Assert.Same(font1, item1.Font); 1606Assert.Same(font1, item2.Font); 1611Assert.Same(font1, control.Font); 1612Assert.Same(font1, item1.Font); 1613Assert.Same(font1, item2.Font); 1619Assert.Same(font2, control.Font); 1620Assert.Same(font2, item1.Font); 1621Assert.Same(font2, item2.Font); 1634Assert.Same(font1, control.Font); 1635Assert.Same(font1, item1.Font); 1636Assert.Same(font1, item2.Font); 1660Assert.Same(control, sender); 1661Assert.Same(EventArgs.Empty, e); 1669Assert.Same(font1, control.Font); 1670Assert.Same(childFont1, child1.Font); 1671Assert.Same(childFont2, child2.Font); 1676Assert.Same(font1, control.Font); 1677Assert.Same(childFont1, child1.Font); 1678Assert.Same(childFont2, child2.Font); 1684Assert.Same(font2, control.Font); 1685Assert.Same(childFont1, child1.Font); 1686Assert.Same(childFont2, child2.Font); 1692Assert.Same(childFont1, child1.Font); 1693Assert.Same(childFont2, child2.Font); 1699Assert.Same(font1, control.Font); 1700Assert.Same(childFont1, child1.Font); 1701Assert.Same(childFont2, child2.Font); 1729Assert.Same(control, sender); 1730Assert.Same(EventArgs.Empty, e); 1781Assert.Same(control, sender); 1782Assert.Same(control, e.AffectedControl); 1880Assert.Same(control, sender); 1881Assert.Same(EventArgs.Empty, e); 1947Assert.Same(control, sender); 1948Assert.Same(EventArgs.Empty, e); 1954Assert.Same(control, sender); 1955Assert.Same(EventArgs.Empty, e); 2243Assert.Same(value, control.Region); 2248Assert.Same(value, control.Region); 2266Assert.Same(value, control.Region); 2274Assert.Same(value, control.Region); 2288Assert.Same(control, sender); 2289Assert.Same(EventArgs.Empty, e); 2297Assert.Same(region1, control.Region); 2302Assert.Same(region1, control.Region); 2308Assert.Same(region2, control.Region); 2320Assert.Same(region1, control.Region); 2385Assert.Same(control, sender); 2386Assert.Same(control, e.AffectedControl); 2410Assert.Same(control, sender); 2411Assert.Same(EventArgs.Empty, e); 2534Assert.Same(control, sender); 2535Assert.Same(EventArgs.Empty, e); 2638Assert.Same(control, sender); 2639Assert.Same(EventArgs.Empty, e); 2719Assert.Same(control, sender); 2758Assert.Same(control, sender); 2759Assert.Same(control, e.AffectedControl); 2794Assert.Same(control, sender); 2795Assert.Same(control, e.AffectedControl); 2927Assert.Same(control, instance.Owner); 2942Assert.Same(control, instance.Owner); 2964Assert.Same(image, button.Image); 3008Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 3020Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 3582Assert.Same(control, item1.Owner); 3583Assert.Same(control, item2.Owner); 3601Assert.Same(control, item1.Owner); 3602Assert.Same(control, item2.Owner); 3694Assert.Same(control, sender); 3695Assert.Same(eventArgs, e); 3743Assert.Same(control, sender); 3744Assert.Same(eventArgs, e); 3779Assert.Same(control, sender); 3780Assert.Same(eventArgs, e); 3817Assert.Same(control, sender); 3818Assert.Same(eventArgs, e); 3841Assert.Same(control, sender); 3842Assert.Same(eventArgs, e); 3871Assert.Same(control, sender); 3872Assert.Same(eventArgs, e); 3910Assert.Same(control, sender); 3911Assert.Same(EventArgs.Empty, e); 3917Assert.Same(control, sender); 3918Assert.Same(eventArgs, e); 3950Assert.Same(control, sender); 3951Assert.Same(EventArgs.Empty, e); 3957Assert.Same(control, sender); 3958Assert.Same(eventArgs, e); 3985Assert.Same(control, sender); 3986Assert.Same(eventArgs, e); 4012Assert.Same(control, sender); 4013Assert.Same(eventArgs, e); 4044Assert.Same(control, sender); 4045Assert.Same(eventArgs, e); 4068Assert.Same(control, sender); 4069Assert.Same(eventArgs, e); 4092Assert.Same(control, sender); 4093Assert.Same(eventArgs, e); 4116Assert.Same(control, sender); 4117Assert.Same(eventArgs, e); 4154Assert.Same(control, sender); 4155Assert.Same(EventArgs.Empty, e); 4161Assert.Same(control, sender); 4202Assert.Same(control, sender); 4203Assert.Same(EventArgs.Empty, e); 4209Assert.Same(control, sender); 4210Assert.Same(eventArgs, e); 4241Assert.Same(control, sender); 4242Assert.Same(EventArgs.Empty, e); 4248Assert.Same(control, sender); 4249Assert.Same(eventArgs, e); 4283Assert.Same(item1, sender); 4289Assert.Same(item2, sender); 4295Assert.Same(control, sender); 4296Assert.Same(EventArgs.Empty, e); 4302Assert.Same(control, sender); 4354Assert.Same(control, sender); 4355Assert.Same(EventArgs.Empty, e); 4361Assert.Same(control, sender); 4405Assert.Same(control, sender); 4406Assert.Same(EventArgs.Empty, e); 4412Assert.Same(control, sender); 4413Assert.Same(eventArgs, e); 4457Assert.Same(control, sender); 4458Assert.Same(EventArgs.Empty, e); 4464Assert.Same(control, sender); 4465Assert.Same(eventArgs, e); 4523Assert.Same(item1, sender); 4529Assert.Same(item2, sender); 4535Assert.Same(control, sender); 4536Assert.Same(EventArgs.Empty, e); 4542Assert.Same(control, sender); 4579Assert.Same(control, sender); 4580Assert.Same(eventArgs, e); 4628Assert.Same(control, sender); 4629Assert.Same(eventArgs, e); 4664Assert.Same(control, sender); 4665Assert.Same(eventArgs, e); 4703Assert.Same(control, sender); 4704Assert.Same(eventArgs, e); 4741Assert.Same(control, sender); 4742Assert.Same(eventArgs, e); 4776Assert.Same(control, sender); 4777Assert.Same(eventArgs, e); 4800Assert.Same(control, sender); 4801Assert.Same(eventArgs, e); 4831Assert.Same(control, sender); 4832Assert.Same(eventArgs, e); 4862Assert.Same(control, sender); 4863Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (1)
68Assert.Same(expectedImage, e.Image);
System\Windows\Forms\ToolStripItemTests.cs (394)
21Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 52Assert.Same(item.Events, item.Events); 55Assert.Same(item.Font, item.Font); 137Assert.Same(item.Events, item.Events); 140Assert.Same(item.Font, item.Font); 232Assert.Same(item.Events, item.Events); 235Assert.Same(item.Font, item.Font); 297Assert.Same(result, item.AccessibilityObject); 298Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 397Assert.Same(toolStrip.Renderer, item.Renderer); 444Assert.Same(parent, sender); 900Assert.Same(owner, sender); 901Assert.Same(item, e.AffectedComponent); 953Assert.Same(owner, sender); 954Assert.Same(item, e.AffectedComponent); 1480Assert.Same(item, sender); 1481Assert.Same(EventArgs.Empty, e); 1515Assert.Same(item, sender); 1516Assert.Same(EventArgs.Empty, e); 1705Assert.Same(item, sender); 1706Assert.Same(EventArgs.Empty, e); 2141Assert.Same(owner, sender); 2142Assert.Same(item, e.AffectedComponent); 2189Assert.Same(owner, sender); 2190Assert.Same(item, e.AffectedComponent); 2291Assert.Same(item, sender); 2292Assert.Same(EventArgs.Empty, e); 2902Assert.Same(item, sender); 2903Assert.Same(EventArgs.Empty, e); 2944Assert.Same(item.Font, item.Font); 2959Assert.Same(font, item.Font); 3015Assert.Same(owner, sender); 3016Assert.Same(item, e.AffectedComponent); 3062Assert.Same(owner, sender); 3063Assert.Same(item, e.AffectedComponent); 3184Assert.Same(font, item.Font); 3190Assert.Same(item.Font, item.Font); 3194Assert.Same(font, item.Font); 3200Assert.Same(item.Font, item.Font); 3213Assert.Same(font, item.Font); 3219Assert.Same(item.Font, item.Font); 3223Assert.Same(font, item.Font); 3229Assert.Same(item.Font, item.Font); 3398Assert.Same(item, sender); 3399Assert.Same(EventArgs.Empty, e); 3576Assert.Same(parent, sender); 3577Assert.Same(item, e.AffectedComponent); 3629Assert.Same(parent, sender); 3630Assert.Same(item, e.AffectedComponent); 3708Assert.Same(item.Image, item.Image); 3909Assert.Same(owner, sender); 3910Assert.Same(item, e.AffectedComponent); 3961Assert.Same(owner, sender); 3962Assert.Same(item, e.AffectedComponent); 4089Assert.Same(image, item.Image); 4117Assert.Same(otherImage, item.Image); 4134Assert.Same(image, item.Image); 4162Assert.Same(otherImage, item.Image); 4205Assert.Same(owner, sender); 4206Assert.Same(item, e.AffectedComponent); 4259Assert.Same(owner, sender); 4260Assert.Same(item, e.AffectedComponent); 4463Assert.Same(owner, sender); 4464Assert.Same(item, e.AffectedComponent); 4512Assert.Same(owner, sender); 4513Assert.Same(item, e.AffectedComponent); 4564Assert.Same(owner, sender); 4565Assert.Same(item, e.AffectedComponent); 4963Assert.Same(owner, sender); 4964Assert.Same(item, e.AffectedComponent); 5014Assert.Same(owner, sender); 5015Assert.Same(item, e.AffectedComponent); 5064Assert.Same(owner, sender); 5065Assert.Same(item, e.AffectedComponent); 5432Assert.Same(owner, sender); 5433Assert.Same(item, e.AffectedComponent); 5479Assert.Same(owner, sender); 5480Assert.Same(item, e.AffectedComponent); 5924Assert.Same(owner, sender); 5925Assert.Same(item, e.AffectedComponent); 5970Assert.Same(owner, sender); 5971Assert.Same(item, e.AffectedComponent); 6015Assert.Same(parent, sender); 6016Assert.Same(item, e.AffectedComponent); 6061Assert.Same(parent, sender); 6062Assert.Same(item, e.AffectedComponent); 6256Assert.Same(owner, sender); 6257Assert.Same(owner, e.AffectedComponent); 6308Assert.Same(owner, sender); 6309Assert.Same(owner, e.AffectedComponent); 6448Assert.Same(owner, item.Owner); 6450Assert.Same(item, Assert.Single(owner.Items)); 6455Assert.Same(owner, item.Owner); 6457Assert.Same(item, Assert.Single(owner.Items)); 6463Assert.Same(otherOwner, item.Owner); 6466Assert.Same(item, Assert.Single(otherOwner.Items)); 6479Assert.Same(statusOwner, item.Owner); 6483Assert.Same(item, Assert.Single(statusOwner.Items)); 6498Assert.Same(owner, item.Owner); 6500Assert.Same(item, Assert.Single(owner.Items)); 6505Assert.Same(owner, item.Owner); 6507Assert.Same(item, Assert.Single(owner.Items)); 6513Assert.Same(otherOwner, item.Owner); 6516Assert.Same(item, Assert.Single(otherOwner.Items)); 6529Assert.Same(statusOwner, item.Owner); 6533Assert.Same(item, Assert.Single(statusOwner.Items)); 6560Assert.Same(item, sender); 6561Assert.Same(EventArgs.Empty, e); 6566Assert.Same(owner, item.Owner); 6572Assert.Same(owner, item.Owner); 6586Assert.Same(item, sender); 6587Assert.Same(EventArgs.Empty, e); 6593Assert.Same(owner, item.Owner); 6594Assert.Same(item, Assert.Single(owner.Items)); 6599Assert.Same(owner, item.Owner); 6600Assert.Same(item, Assert.Single(owner.Items)); 6606Assert.Same(otherOwner, item.Owner); 6608Assert.Same(item, Assert.Single(otherOwner.Items)); 6621Assert.Same(owner, item.Owner); 6622Assert.Same(item, Assert.Single(owner.Items)); 6656Assert.Same(result, item.OwnerItem); 6682Assert.Same(result, item.OwnerItem); 6703Assert.Same(parentItem, item.OwnerItem); 6753Assert.Same(owner, sender); 6754Assert.Same(item, e.AffectedComponent); 6799Assert.Same(owner, sender); 6800Assert.Same(item, e.AffectedComponent); 6974Assert.Same(parent, item.Parent); 6975Assert.Same(parent, item.GetCurrentParent()); 6982Assert.Same(parent, item.Parent); 6983Assert.Same(parent, item.GetCurrentParent()); 6991Assert.Same(otherParent, item.Parent); 7007Assert.Same(statusParent, item.Parent); 7031Assert.Same(parent, item.Parent); 7032Assert.Same(parent, item.GetCurrentParent()); 7039Assert.Same(parent, item.Parent); 7040Assert.Same(parent, item.GetCurrentParent()); 7048Assert.Same(otherParent, item.Parent); 7064Assert.Same(statusParent, item.Parent); 7190Assert.Same(owner, sender); 7191Assert.Same(item, e.AffectedComponent); 7239Assert.Same(owner, sender); 7240Assert.Same(item, e.AffectedComponent); 7375Assert.Same(item, sender); 7376Assert.Same(EventArgs.Empty, e); 7543Assert.Same(owner, sender); 7544Assert.Same(item, e.AffectedComponent); 7793Assert.Same(item, parent.GetItemAt(item.Bounds.X, item.Bounds.Y)); 7960Assert.Same(parent, sender); 7961Assert.Same(item, e.AffectedComponent); 8010Assert.Same(parent, sender); 8011Assert.Same(item, e.AffectedComponent); 8055Assert.Same(value, item.Tag); 8059Assert.Same(value, item.Tag); 8091Assert.Same(owner, sender); 8092Assert.Same(item, e.AffectedComponent); 8140Assert.Same(owner, sender); 8141Assert.Same(item, e.AffectedComponent); 8258Assert.Same(item, sender); 8259Assert.Same(EventArgs.Empty, e); 8321Assert.Same(owner, sender); 8322Assert.Same(item, e.AffectedComponent); 8375Assert.Same(owner, sender); 8376Assert.Same(item, e.AffectedComponent); 8596Assert.Same(owner, sender); 8597Assert.Same(item, e.AffectedComponent); 8645Assert.Same(owner, sender); 8646Assert.Same(item, e.AffectedComponent); 8848Assert.Same(owner, sender); 8849Assert.Same(item, e.AffectedComponent); 8898Assert.Same(owner, sender); 8899Assert.Same(item, e.AffectedComponent); 9530Assert.Same(item, sender); 9531Assert.Same(EventArgs.Empty, e); 9565Assert.Same(item, sender); 9566Assert.Same(EventArgs.Empty, e); 9743Assert.Same(parent, sender); 9744Assert.Same(item, e.AffectedComponent); 9796Assert.Same(parent, sender); 9797Assert.Same(item, e.AffectedComponent); 9973Assert.Same(parent, item.Parent); 9981Assert.Same(parent, item.Parent); 10128Assert.Same(parent, item.Parent); 10136Assert.Same(parent, item.Parent); 10301Assert.Same(parent, item.GetCurrentParent()); 10609Assert.Same(item, sender); 10610Assert.Same(eventArgs, e); 10633Assert.Same(item, sender); 10634Assert.Same(eventArgs, e); 10661Assert.Same(item, sender); 10662Assert.Same(eventArgs, e); 10699Assert.Same(item, sender); 10700Assert.Same(eventArgs, e); 10735Assert.Same(item, sender); 10736Assert.Same(eventArgs, e); 10773Assert.Same(item, sender); 10774Assert.Same(eventArgs, e); 10873Assert.Same(parent, sender); 10874Assert.Same(item, e.AffectedComponent); 10911Assert.Same(parent, sender); 10912Assert.Same(item, e.AffectedComponent); 10942Assert.Same(item, sender); 10943Assert.Same(eventArgs, e); 10967Assert.Same(item, sender); 10968Assert.Same(eventArgs, e); 10991Assert.Same(item, sender); 10992Assert.Same(eventArgs, e); 11021Assert.Same(item, sender); 11022Assert.Same(eventArgs, e); 11045Assert.Same(item, sender); 11046Assert.Same(eventArgs, e); 11069Assert.Same(item, sender); 11070Assert.Same(eventArgs, e); 11093Assert.Same(item, sender); 11094Assert.Same(eventArgs, e); 11137Assert.Same(item, sender); 11138Assert.Same(eventArgs, e); 11166Assert.Same(item, sender); 11167Assert.Same(eventArgs, e); 11197Assert.Same(item, sender); 11198Assert.Same(eventArgs, e); 11237Assert.Same(item, sender); 11238Assert.Same(eventArgs, e); 11276Assert.Same(item, sender); 11277Assert.Same(eventArgs, e); 11316Assert.Same(item, sender); 11317Assert.Same(eventArgs, e); 11389Assert.Same(owner, sender); 11390Assert.Same(item, e.AffectedComponent); 11434Assert.Same(owner, sender); 11435Assert.Same(item, e.AffectedComponent); 11548Assert.Same(item, sender); 11549Assert.Same(eventArgs, e); 11576Assert.Same(item, sender); 11577Assert.Same(eventArgs, e); 11614Assert.Same(item, sender); 11615Assert.Same(eventArgs, e); 11650Assert.Same(item, sender); 11651Assert.Same(eventArgs, e); 11688Assert.Same(item, sender); 11689Assert.Same(eventArgs, e); 11726Assert.Same(item, sender); 11727Assert.Same(eventArgs, e); 11762Assert.Same(item, sender); 11763Assert.Same(eventArgs, e); 11786Assert.Same(item, sender); 11787Assert.Same(eventArgs, e); 11829Assert.Same(item, sender); 11830Assert.Same(eventArgs, e); 11873Assert.Same(item, sender); 11874Assert.Same(eventArgs, e); 11905Assert.Same(item, sender); 11906Assert.Same(eventArgs, e); 11929Assert.Same(item, sender); 11930Assert.Same(eventArgs, e); 11973Assert.Same(item, sender); 11974Assert.Same(eventArgs, e); 12005Assert.Same(item, sender); 12006Assert.Same(eventArgs, e); 12038Assert.Same(item, sender); 12039Assert.Same(eventArgs, e); 12070Assert.Same(item, sender); 12071Assert.Same(eventArgs, e); 12095Assert.Same(item, sender); 12096Assert.Same(eventArgs, e); 12119Assert.Same(item, sender); 12120Assert.Same(eventArgs, e); 12143Assert.Same(item, sender); 12144Assert.Same(eventArgs, e); 12173Assert.Same(item, sender); 12174Assert.Same(eventArgs, e); 12238Assert.Same(item, sender); 12239Assert.Same(eventArgs, e); 12245Assert.Same(item, sender); 12246Assert.Same(EventArgs.Empty, e); 12299Assert.Same(owner, sender); 12300Assert.Same(item, e.AffectedComponent); 12353Assert.Same(owner, sender); 12354Assert.Same(item, e.AffectedComponent); 12514Assert.Same(item, sender); 12515Assert.Same(eventArgs, e); 12583Assert.Same(item, sender); 12585Assert.Same(EventArgs.Empty, e); 12608Assert.Same(item, sender); 12609Assert.Same(eventArgs, e); 12638Assert.Same(item, sender); 12639Assert.Same(eventArgs, e); 12675Assert.Same(item, sender); 12676Assert.Same(eventArgs, e); 12705Assert.Same(item, sender); 12706Assert.Same(eventArgs, e); 12738Assert.Same(item, sender); 12739Assert.Same(eventArgs, e); 12766Assert.Same(owner, sender); 12767Assert.Same(item, e.AffectedComponent); 12779Assert.Same(item, sender); 12780Assert.Same(eventArgs, e); 12823Assert.Same(owner, sender); 12824Assert.Same(item, e.AffectedComponent); 12836Assert.Same(item, sender); 12837Assert.Same(eventArgs, e); 12885Assert.Same(item, sender); 12886Assert.Same(eventArgs, e); 12935Assert.Same(item, sender); 12936Assert.Same(eventArgs, e); 12974Assert.Same(item, sender); 12975Assert.Same(eventArgs, e); 13002Assert.Same(owner, sender); 13003Assert.Same(item, e.AffectedComponent); 13015Assert.Same(item, sender); 13016Assert.Same(eventArgs, e); 13059Assert.Same(owner, sender); 13060Assert.Same(item, e.AffectedComponent); 13072Assert.Same(item, sender); 13073Assert.Same(eventArgs, e); 13121Assert.Same(item, sender); 13122Assert.Same(eventArgs, e); 13171Assert.Same(item, sender); 13172Assert.Same(eventArgs, e); 13230Assert.Same(item, sender); 13231Assert.Same(eventArgs, e); 13259Assert.Same(item, sender); 13260Assert.Same(eventArgs, e); 13296Assert.Same(item, sender); 13297Assert.Same(eventArgs, e); 13341Assert.Same(owner, sender); 13342Assert.Same(item, e.AffectedComponent); 13354Assert.Same(item, sender); 13355Assert.Same(eventArgs, e); 13415Assert.Same(item, sender); 13416Assert.Same(eventArgs, e); 13480Assert.Same(item, sender); 13481Assert.Same(eventArgs, e); 13532Assert.Same(item, sender); 13533Assert.Same(eventArgs, e); 13583Assert.Same(item, sender); 13584Assert.Same(eventArgs, e); 13633Assert.Same(item, sender); 13634Assert.Same(EventArgs.Empty, e); 13667Assert.Same(item, sender); 13668Assert.Same(EventArgs.Empty, e); 13698Assert.Same(grip, sender); 13699Assert.Same(EventArgs.Empty, e); 13737Assert.Same(item, sender); 13738Assert.Same(EventArgs.Empty, e); 13769Assert.Same(item, sender); 13770Assert.Same(EventArgs.Empty, e); 13776Assert.Same(owner, sender); 13777Assert.Same(item, e.ClickedItem); 13828Assert.Same(item, sender); 13829Assert.Same(EventArgs.Empty, e); 13835Assert.Same(owner, sender); 13836Assert.Same(item, e.ClickedItem); 13890Assert.Same(item, sender); 13891Assert.Same(EventArgs.Empty, e); 13934Assert.Same(item, sender); 13935Assert.Same(EventArgs.Empty, e); 13989Assert.Same(item, sender); 13990Assert.Same(EventArgs.Empty, e); 14016Assert.Same(item, sender); 14017Assert.Same(EventArgs.Empty, e); 14043Assert.Same(item, sender); 14044Assert.Same(EventArgs.Empty, e); 14083Assert.Same(item, sender); 14084Assert.Same(EventArgs.Empty, e); 14142Assert.Same(item.Font, item.Font); 14149Assert.Same(item.Font, item.Font); 14155Assert.Same(item.Font, item.Font); 14572Assert.Same(item, sender); 14573Assert.Same(EventArgs.Empty, e); 14608Assert.Same(item, sender); 14609Assert.Same(EventArgs.Empty, e); 14662Assert.Same(item, sender); 14663Assert.Same(EventArgs.Empty, e); 14726Assert.Same(parent, sender); 14727Assert.Same(item, e.AffectedComponent); 14736Assert.Same(item, sender); 14737Assert.Same(EventArgs.Empty, e); 14787Assert.Same(parent, sender); 14788Assert.Same(item, e.AffectedComponent); 14797Assert.Same(item, sender); 14798Assert.Same(EventArgs.Empty, e); 15211Assert.Same(item, sender); 15212Assert.Same(EventArgs.Empty, e); 15246Assert.Same(item, sender); 15247Assert.Same(EventArgs.Empty, e); 15319Assert.Same(item, sender); 15320Assert.Same(eventArgs, e); 15344Assert.Same(item, sender); 15345Assert.Same(eventArgs, e); 15369Assert.Same(item, sender); 15370Assert.Same(eventArgs, e); 15394Assert.Same(item, sender); 15395Assert.Same(eventArgs, e);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
19Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 55Assert.Same(item.Events, item.Events); 58Assert.Same(item.Font, item.Font);
System\Windows\Forms\ToolStripPanelTests.cs (10)
35Assert.Same(control.BindingContext, control.BindingContext); 50Assert.Same(control.Controls, control.Controls); 65Assert.Same(control.DockPadding, control.DockPadding); 73Assert.Same(control.Events, control.Events); 81Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 88Assert.Same(control.LayoutEngine, control.LayoutEngine); 116Assert.Same(control.VerticalScroll, control.VerticalScroll); 139Assert.Same(createParams, control.CreateParams); 255Assert.Same(control, sender); 256Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolStripRendererTests.cs (40)
52Assert.Same(renderer, sender); 53Assert.Same(eventArgs, e); 92Assert.Same(renderer, sender); 93Assert.Same(eventArgs, e); 116Assert.Same(renderer, sender); 117Assert.Same(eventArgs, e); 149Assert.Same(renderer, sender); 150Assert.Same(eventArgs, e); 173Assert.Same(renderer, sender); 174Assert.Same(eventArgs, e); 212Assert.Same(renderer, sender); 213Assert.Same(eventArgs, e); 245Assert.Same(renderer, sender); 246Assert.Same(eventArgs, e); 276Assert.Same(renderer, sender); 277Assert.Same(eventArgs, e); 320Assert.Same(renderer, sender); 321Assert.Same(eventArgs, e); 351Assert.Same(renderer, sender); 352Assert.Same(eventArgs, e); 375Assert.Same(renderer, sender); 376Assert.Same(eventArgs, e); 399Assert.Same(renderer, sender); 400Assert.Same(eventArgs, e); 433Assert.Same(renderer, sender); 434Assert.Same(eventArgs, e); 457Assert.Same(renderer, sender); 458Assert.Same(eventArgs, e); 493Assert.Same(renderer, sender); 494Assert.Same(eventArgs, e); 534Assert.Same(renderer, sender); 535Assert.Same(eventArgs, e); 558Assert.Same(renderer, sender); 559Assert.Same(eventArgs, e); 582Assert.Same(renderer, sender); 583Assert.Same(eventArgs, e); 615Assert.Same(renderer, sender); 616Assert.Same(eventArgs, e); 639Assert.Same(renderer, sender); 640Assert.Same(eventArgs, e);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
44Assert.Same(graphics, e.Graphics); 45Assert.Same(toolStrip, e.ToolStrip); 68Assert.Same(graphics, e.Graphics); 69Assert.Same(toolStrip, e.ToolStrip);
System\Windows\Forms\ToolStripSeparatorTests.cs (43)
19Assert.Same(item.AccessibilityObject, item.AccessibilityObject); 50Assert.Same(item.Events, item.Events); 53Assert.Same(item.Font, item.Font); 190Assert.Same(item, sender); 191Assert.Same(EventArgs.Empty, e); 280Assert.Same(item, sender); 281Assert.Same(EventArgs.Empty, e); 355Assert.Same(item, sender); 356Assert.Same(EventArgs.Empty, e); 594Assert.Same(item, sender); 595Assert.Same(EventArgs.Empty, e); 1095Assert.Same(item, sender); 1096Assert.Same(eventArgs, e); 1141Assert.Same(item, sender); 1142Assert.Same(eventArgs, e); 1177Assert.Same(item, sender); 1178Assert.Same(eventArgs, e); 1235Assert.Same(renderer1, sender); 1236Assert.Same(graphics, e.Graphics); 1237Assert.Same(item, e.Item); 1238Assert.Same(parent, e.ToolStrip); 1247Assert.Same(item, sender); 1248Assert.Same(eventArgs, e); 1306Assert.Same(renderer1, sender); 1307Assert.Same(graphics, e.Graphics); 1308Assert.Same(item, e.Item); 1309Assert.Same(parent, e.ToolStrip); 1318Assert.Same(item, sender); 1319Assert.Same(eventArgs, e); 1373Assert.Same(item, sender); 1374Assert.Same(EventArgs.Empty, e); 1409Assert.Same(item, sender); 1410Assert.Same(EventArgs.Empty, e); 1471Assert.Same(item, sender); 1472Assert.Same(EventArgs.Empty, e); 1529Assert.Same(parent, sender); 1530Assert.Same(item, e.AffectedComponent); 1539Assert.Same(item, sender); 1540Assert.Same(EventArgs.Empty, e); 1583Assert.Same(parent, sender); 1584Assert.Same(item, e.AffectedComponent); 1593Assert.Same(item, sender); 1594Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolStripTests.cs (302)
53Assert.Same(control.Controls, control.Controls); 55Assert.Same(Cursors.Default, control.Cursor); 56Assert.Same(Cursors.Default, control.DefaultCursor); 69Assert.Same(control.DisplayedItems, control.DisplayedItems); 84Assert.Same(control.DockPadding, control.DockPadding); 92Assert.Same(control.Events, control.Events); 107Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 118Assert.Same(control.Items, control.Items); 120Assert.Same(control.LayoutEngine, control.LayoutEngine); 130Assert.Same(control.OverflowButton, control.OverflowButton); 131Assert.Same(control, control.OverflowButton.GetCurrentParent()); 140Assert.Same(control.Renderer, control.Renderer); 160Assert.Same(control.VerticalScroll, control.VerticalScroll); 211Assert.Same(control.Controls, control.Controls); 212Assert.Same(Cursors.Default, control.Cursor); 213Assert.Same(Cursors.Default, control.DefaultCursor); 238Assert.Same(control.DockPadding, control.DockPadding); 246Assert.Same(control.Events, control.Events); 261Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 272Assert.Same(control.Items, control.Items); 275Assert.Same(control.LayoutEngine, control.LayoutEngine); 285Assert.Same(control.OverflowButton, control.OverflowButton); 286Assert.Same(control, control.OverflowButton.GetCurrentParent()); 295Assert.Same(control.Renderer, control.Renderer); 315Assert.Same(control.VerticalScroll, control.VerticalScroll); 351Assert.Same(createParams, control.CreateParams); 778Assert.Same(control, sender); 779Assert.Same(control, e.AffectedControl); 823Assert.Same(control, sender); 922Assert.Same(parent, sender); 923Assert.Same(control, e.AffectedControl); 980Assert.Same(parent, sender); 981Assert.Same(control, e.AffectedControl); 1029Assert.Same(control, sender); 1030Assert.Same(EventArgs.Empty, e); 1092Assert.Same(bindingContext, control.BindingContext); 1124Assert.Same(value, control.BindingContext); 1129Assert.Same(value, control.BindingContext); 1143Assert.Same(value, control.BindingContext); 1148Assert.Same(value, control.BindingContext); 1159Assert.Same(control, sender); 1160Assert.Same(EventArgs.Empty, e); 1168Assert.Same(context1, control.BindingContext); 1173Assert.Same(context1, control.BindingContext); 1179Assert.Same(context2, control.BindingContext); 1190Assert.Same(context1, control.BindingContext); 1236Assert.Same(control, sender); 1237Assert.Same(control, e.AffectedControl); 1301Assert.Same(control, sender); 1302Assert.Same(EventArgs.Empty, e); 1337Assert.Same(value ?? Cursors.Default, control.Cursor); 1342Assert.Same(value ?? Cursors.Default, control.Cursor); 1353Assert.Same(control, sender); 1354Assert.Same(EventArgs.Empty, e); 1362Assert.Same(cursor1, control.Cursor); 1367Assert.Same(cursor1, control.Cursor); 1373Assert.Same(cursor2, control.Cursor); 1378Assert.Same(Cursors.Default, control.Cursor); 1384Assert.Same(cursor1, control.Cursor); 1393Assert.Same(control.Font, control.Font); 1410Assert.Same(control.Font, control.Font); 1414Assert.Same(font2, control.Font); 1431Assert.Same(control.Font, control.Font); 1435Assert.Same(font2, control.Font); 1464Assert.Same(control, sender); 1465Assert.Same(EventArgs.Empty, e); 1473Assert.Same(font1, control.Font); 1478Assert.Same(font1, control.Font); 1484Assert.Same(font2, control.Font); 1495Assert.Same(font1, control.Font); 1511Assert.Same(control, sender); 1512Assert.Same(EventArgs.Empty, e); 1520Assert.Same(font1, control.Font); 1521Assert.Same(font1, item1.Font); 1522Assert.Same(font1, item2.Font); 1527Assert.Same(font1, control.Font); 1528Assert.Same(font1, item1.Font); 1529Assert.Same(font1, item2.Font); 1535Assert.Same(font2, control.Font); 1536Assert.Same(font2, item1.Font); 1537Assert.Same(font2, item2.Font); 1550Assert.Same(font1, control.Font); 1551Assert.Same(font1, item1.Font); 1552Assert.Same(font1, item2.Font); 1576Assert.Same(control, sender); 1577Assert.Same(EventArgs.Empty, e); 1585Assert.Same(font1, control.Font); 1586Assert.Same(childFont1, child1.Font); 1587Assert.Same(childFont2, child2.Font); 1592Assert.Same(font1, control.Font); 1593Assert.Same(childFont1, child1.Font); 1594Assert.Same(childFont2, child2.Font); 1600Assert.Same(font2, control.Font); 1601Assert.Same(childFont1, child1.Font); 1602Assert.Same(childFont2, child2.Font); 1608Assert.Same(childFont1, child1.Font); 1609Assert.Same(childFont2, child2.Font); 1615Assert.Same(font1, control.Font); 1616Assert.Same(childFont1, child1.Font); 1617Assert.Same(childFont2, child2.Font); 1636Assert.Same(form.Font, toolStrip1.Font); 1637Assert.Same(form.Font, item1.Font); 1638Assert.Same(form.Font, item2.Font); 2381Assert.Same(control, sender); 2382Assert.Same(control, e.AffectedControl); 2389Assert.Same(control, sender); 2390Assert.Same(EventArgs.Empty, e); 2466Assert.Same(control, sender); 2467Assert.Same(control, e.AffectedControl); 2474Assert.Same(control, sender); 2475Assert.Same(EventArgs.Empty, e); 2483Assert.Same(parent, sender); 2484Assert.Same(control, e.AffectedControl); 2572Assert.Same(control, sender); 2573Assert.Same(control, e.AffectedControl); 2580Assert.Same(control, sender); 2581Assert.Same(EventArgs.Empty, e); 2589Assert.Same(parent, sender); 2590Assert.Same(control, e.AffectedControl); 2634Assert.Same(control, sender); 2635Assert.Same(EventArgs.Empty, e); 2694Assert.Same(control, sender); 2695Assert.Same(EventArgs.Empty, e); 2768Assert.Same(control, sender); 2769Assert.Same(control, e.AffectedControl); 2799Assert.Same(control, sender); 2800Assert.Same(control, e.AffectedControl); 2835Assert.Same(control, sender); 2836Assert.Same(control, e.AffectedControl); 3191Assert.Same(control, sender); 3192Assert.Same(EventArgs.Empty, e); 3234Assert.Same(value, control.Renderer); 3239Assert.Same(value, control.Renderer); 3246Assert.Same(control.Renderer, control.Renderer); 3257Assert.Same(control, sender); 3258Assert.Same(EventArgs.Empty, e); 3266Assert.Same(renderer, control.Renderer); 3271Assert.Same(renderer, control.Renderer); 3278Assert.Same(control.Renderer, control.Renderer); 3284Assert.Same(renderer, control.Renderer); 3301Assert.Same(control, sender); 3302Assert.Same(EventArgs.Empty, e); 3310Assert.Same(control.Renderer, control.Renderer); 3330Assert.Same(control.Renderer, control.Renderer); 3347Assert.Same(control, sender); 3348Assert.Same(EventArgs.Empty, e); 3367Assert.Same(control.Renderer, control.Renderer); 3453Assert.Same(control, sender); 3454Assert.Same(control, e.AffectedControl); 3532Assert.Same(control, sender); 3533Assert.Same(EventArgs.Empty, e); 3786Assert.Same(control, sender); 3787Assert.Same(EventArgs.Empty, e); 3825Assert.Same(control, sender); 3826Assert.Same(control, e.AffectedControl); 3861Assert.Same(control, sender); 3862Assert.Same(control, e.AffectedControl); 3900Assert.Same(control, sender); 3901Assert.Same(control, e.AffectedControl); 3943Assert.Same(control, sender); 3944Assert.Same(control, e.AffectedControl); 3987Assert.Same(control, sender); 3988Assert.Same(control, e.AffectedControl); 4052Assert.Same(control, sender); 4053Assert.Same(control, e.AffectedControl); 4176Assert.Same(control, sender); 4177Assert.Same(EventArgs.Empty, e); 4210Assert.Same(control, instance.Owner); 4225Assert.Same(control, instance.Owner); 4237Assert.Same(control, controls.Owner); 4261Assert.Same(control, controls.Owner); 4282Assert.Same(image, button.Image); 4325Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 4338Assert.Same(settings.LayoutEngine, settings.LayoutEngine); 4736Assert.Same(control, item1.Owner); 4737Assert.Same(control, item2.Owner); 4755Assert.Same(control, item1.Owner); 4756Assert.Same(control, item2.Owner); 4965Assert.Same(control, sender); 4966Assert.Same(eventArgs, e); 5001Assert.Same(control, sender); 5002Assert.Same(eventArgs, e); 5042Assert.Same(control, sender); 5043Assert.Same(eventArgs, e); 5066Assert.Same(control, sender); 5067Assert.Same(eventArgs, e); 5090Assert.Same(control, sender); 5091Assert.Same(eventArgs, e); 5114Assert.Same(control, sender); 5115Assert.Same(eventArgs, e); 5143Assert.Same(control, sender); 5144Assert.Same(eventArgs, e); 5179Assert.Same(control, sender); 5180Assert.Same(eventArgs, e); 5222Assert.Same(control, sender); 5223Assert.Same(eventArgs, e); 5256Assert.Same(control, sender); 5257Assert.Same(eventArgs, e); 5289Assert.Same(control, sender); 5290Assert.Same(eventArgs, e); 5326Assert.Same(control, sender); 5327Assert.Same(eventArgs, e); 5350Assert.Same(control, sender); 5351Assert.Same(EventArgs.Empty, e); 5357Assert.Same(control, sender); 5358Assert.Same(eventArgs, e); 5386Assert.Same(control, sender); 5387Assert.Same(EventArgs.Empty, e); 5393Assert.Same(control, sender); 5394Assert.Same(eventArgs, e); 5422Assert.Same(control, sender); 5423Assert.Same(EventArgs.Empty, e); 5429Assert.Same(control, sender); 5430Assert.Same(eventArgs, e); 5461Assert.Same(item1, sender); 5467Assert.Same(item2, sender); 5473Assert.Same(control, sender); 5474Assert.Same(EventArgs.Empty, e); 5480Assert.Same(control, sender); 5518Assert.Same(control, sender); 5519Assert.Same(EventArgs.Empty, e); 5525Assert.Same(control, sender); 5526Assert.Same(eventArgs, e); 5567Assert.Same(control, sender); 5568Assert.Same(EventArgs.Empty, e); 5574Assert.Same(control, sender); 5575Assert.Same(eventArgs, e); 5616Assert.Same(control, sender); 5617Assert.Same(EventArgs.Empty, e); 5623Assert.Same(control, sender); 5624Assert.Same(eventArgs, e); 5668Assert.Same(item1, sender); 5674Assert.Same(item2, sender); 5680Assert.Same(control, sender); 5681Assert.Same(EventArgs.Empty, e); 5687Assert.Same(control, sender); 5724Assert.Same(control, sender); 5725Assert.Same(eventArgs, e); 5748Assert.Same(control, sender); 5749Assert.Same(eventArgs, e); 5772Assert.Same(control, sender); 5773Assert.Same(eventArgs, e); 5796Assert.Same(control, sender); 5797Assert.Same(eventArgs, e); 5887Assert.Same(control, sender); 5888Assert.Same(eventArgs, e); 6036Assert.Same(control, sender); 6037Assert.Same(eventArgs, e); 6043Assert.Same(parent, sender); 6085Assert.Same(control, sender); 6086Assert.Same(eventArgs, e); 6178Assert.Same(control, sender); 6179Assert.Same(eventArgs, e); 6185Assert.Same(parent, sender); 6239Assert.Same(control, sender); 6240Assert.Same(eventArgs, e); 6276Assert.Same(control, sender); 6277Assert.Same(eventArgs, e); 6315Assert.Same(control, sender); 6316Assert.Same(control, e.AffectedControl); 6323Assert.Same(control, sender); 6324Assert.Same(eventArgs, e); 6360Assert.Same(control, sender); 6361Assert.Same(control, e.AffectedControl); 6370Assert.Same(control, sender); 6371Assert.Same(eventArgs, e); 6414Assert.Same(control, sender); 6415Assert.Same(eventArgs, e); 6420Assert.Same(item1, sender); 6421Assert.Same(eventArgs, e); 6426Assert.Same(item2, sender); 6427Assert.Same(eventArgs, e); 6467Assert.Same(control, sender); 6468Assert.Same(eventArgs, e); 6473Assert.Same(item1, sender); 6474Assert.Same(eventArgs, e); 6479Assert.Same(item2, sender); 6480Assert.Same(eventArgs, e); 6509Assert.Same(control, sender); 6510Assert.Same(eventArgs, e); 6515Assert.Same(control.OverflowButton, sender); 6516Assert.Same(eventArgs, e); 6544Assert.Same(control, sender); 6545Assert.Same(eventArgs, e); 6550Assert.Same(grip, sender); 6551Assert.Same(eventArgs, e); 6590Assert.Same(control, sender); 6591Assert.Same(eventArgs, e); 6640Assert.Same(control, sender); 6641Assert.Same(eventArgs, e); 6794Assert.Same(control, sender); 6795Assert.Same(eventArgs, e); 6832Assert.Same(control, sender); 6833Assert.Same(eventArgs, e); 6885Assert.Same(control, sender); 6886Assert.Same(eventArgs, e); 7011Assert.Same(item, sender); 7012Assert.Same(EventArgs.Empty, e); 7060Assert.Same(item, sender); 7061Assert.Same(EventArgs.Empty, e); 7207Assert.Same(control, sender); 7208Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\ToolTipTests.cs (5)
26Assert.Same(toolTip.Events, toolTip.Events); 53Assert.Same(container, toolTip.Container); 56Assert.Same(toolTip.Events, toolTip.Events); 534Assert.Same(value, toolTip.Tag); 538Assert.Same(value, toolTip.Tag);
System\Windows\Forms\TreeNodeCollectionTests.cs (4)
17Assert.Same(treeNode, collection[0]); 18Assert.Same(treeNode, Assert.Single(collection)); 43Assert.Same(treeNode.Nodes, treeNode.Nodes); 54Assert.Same(treeView, treeNode.TreeView);
System\Windows\Forms\TreeNodeTests.cs (25)
38Assert.Same(node.Nodes, node.Nodes); 78Assert.Same(node.Nodes, node.Nodes); 109Assert.Same(children.FirstOrDefault(), node.FirstNode); 119Assert.Same(children.LastOrDefault(), node.LastNode); 126Assert.Same(node.Nodes, node.Nodes); 169Assert.Same(node.Nodes, node.Nodes); 200Assert.Same(children.FirstOrDefault(), node.FirstNode); 210Assert.Same(children.LastOrDefault(), node.LastNode); 217Assert.Same(node.Nodes, node.Nodes); 2348Assert.Same(node, node.NextVisibleNode); 2741Assert.Same(node, node.PrevVisibleNode); 4350Assert.Same(value, node.Tag); 4354Assert.Same(value, node.Tag); 4495Assert.Same(value, node.ToolTipText); 4499Assert.Same(value, node.ToolTipText); 4509Assert.Same(control, node.TreeView); 4527Assert.Same(control, node.TreeView); 4567Assert.Same(control, node1.TreeView); 4568Assert.Same(control, node2.TreeView); 4569Assert.Same(control, node3.TreeView); 4570Assert.Same(control, node4.TreeView); 4596Assert.Same(control, node1.TreeView); 4597Assert.Same(control, node2.TreeView); 4598Assert.Same(control, node3.TreeView); 4599Assert.Same(control, node4.TreeView);
System\Windows\Forms\TreeViewHitTestInfoTests.cs (1)
25Assert.Same(hitNode, hitTestInfo.Node);
System\Windows\Forms\TreeViewTests.cs (260)
46Assert.Same(control.Controls, control.Controls); 48Assert.Same(Cursors.Default, control.Cursor); 49Assert.Same(Cursors.Default, control.DefaultCursor); 63Assert.Same(control.Events, control.Events); 84Assert.Same(control.LayoutEngine, control.LayoutEngine); 91Assert.Same(control.Nodes, control.Nodes); 149Assert.Same(createParams, control.CreateParams); 177Assert.Same(createParams, control.CreateParams); 207Assert.Same(createParams, control.CreateParams); 233Assert.Same(createParams, control.CreateParams); 259Assert.Same(createParams, control.CreateParams); 285Assert.Same(createParams, control.CreateParams); 311Assert.Same(createParams, control.CreateParams); 337Assert.Same(createParams, control.CreateParams); 363Assert.Same(createParams, control.CreateParams); 389Assert.Same(createParams, control.CreateParams); 415Assert.Same(createParams, control.CreateParams); 441Assert.Same(createParams, control.CreateParams); 474Assert.Same(createParams, control.CreateParams); 507Assert.Same(createParams, control.CreateParams); 553Assert.Same(createParams, control.CreateParams); 599Assert.Same(createParams, control.CreateParams); 627Assert.Same(createParams, control.CreateParams); 660Assert.Same(createParams, control.CreateParams); 693Assert.Same(createParams, control.CreateParams); 761Assert.Same(control, sender); 762Assert.Same(EventArgs.Empty, e); 797Assert.Same(value, control.BackgroundImage); 802Assert.Same(value, control.BackgroundImage); 813Assert.Same(control, sender); 814Assert.Same(EventArgs.Empty, e); 822Assert.Same(image1, control.BackgroundImage); 827Assert.Same(image1, control.BackgroundImage); 833Assert.Same(image2, control.BackgroundImage); 844Assert.Same(image1, control.BackgroundImage); 872Assert.Same(control, sender); 873Assert.Same(EventArgs.Empty, e); 934Assert.Same(treeView, sender); 935Assert.Same(EventArgs.Empty, e); 940Assert.Same(treeView, sender); 985Assert.Same(treeView, sender); 986Assert.Same(EventArgs.Empty, e); 991Assert.Same(treeView, sender); 1083Assert.Same(treeView, sender); 1084Assert.Same(EventArgs.Empty, e); 1089Assert.Same(treeView, sender); 1134Assert.Same(treeView, sender); 1135Assert.Same(EventArgs.Empty, e); 1140Assert.Same(treeView, sender); 1224Assert.Same(treeView, sender); 1225Assert.Same(EventArgs.Empty, e); 1230Assert.Same(treeView, sender); 1275Assert.Same(treeView, sender); 1276Assert.Same(EventArgs.Empty, e); 1281Assert.Same(treeView, sender); 1357Assert.Same(treeView, sender); 1358Assert.Same(EventArgs.Empty, e); 1363Assert.Same(treeView, sender); 1408Assert.Same(treeView, sender); 1409Assert.Same(EventArgs.Empty, e); 1414Assert.Same(treeView, sender); 1503Assert.Same(control, sender); 1504Assert.Same(EventArgs.Empty, e); 1580Assert.Same(treeView, sender); 1581Assert.Same(EventArgs.Empty, e); 1586Assert.Same(treeView, sender); 1631Assert.Same(treeView, sender); 1632Assert.Same(EventArgs.Empty, e); 1637Assert.Same(treeView, sender); 1777Assert.Same(treeView, sender); 1778Assert.Same(EventArgs.Empty, e); 1783Assert.Same(treeView, sender); 1828Assert.Same(treeView, sender); 1829Assert.Same(EventArgs.Empty, e); 1834Assert.Same(treeView, sender); 1918Assert.Same(treeView, sender); 1919Assert.Same(EventArgs.Empty, e); 1924Assert.Same(treeView, sender); 1969Assert.Same(treeView, sender); 1970Assert.Same(EventArgs.Empty, e); 1975Assert.Same(treeView, sender); 2433Assert.Same(value, treeView.ImageList); 2437Assert.Same(value, treeView.ImageList); 2449Assert.Same(value, treeView.ImageList); 2453Assert.Same(value, treeView.ImageList); 2467Assert.Same(value, treeView.ImageList); 2471Assert.Same(value, treeView.ImageList); 2483Assert.Same(value, treeView.ImageList); 2487Assert.Same(value, treeView.ImageList); 2498Assert.Same(value, treeView.ImageList); 2502Assert.Same(value, treeView.ImageList); 2516Assert.Same(value, treeView.ImageList); 2520Assert.Same(value, treeView.ImageList); 2535Assert.Same(value, treeView.ImageList); 2539Assert.Same(value, treeView.ImageList); 2553Assert.Same(value, treeView.ImageList); 2557Assert.Same(value, treeView.ImageList); 2569Assert.Same(imageList1, treeView.ImageList); 2577Assert.Same(imageList2, treeView.ImageList); 2588Assert.Same(imageList, treeView.ImageList); 2600Assert.Same(imageList, treeView.ImageList); 2613Assert.Same(imageList, treeView.ImageList); 2628Assert.Same(imageList, treeView.ImageList); 2862Assert.Same(treeView, sender); 2863Assert.Same(EventArgs.Empty, e); 2868Assert.Same(treeView, sender); 2913Assert.Same(treeView, sender); 2914Assert.Same(EventArgs.Empty, e); 2919Assert.Same(treeView, sender); 2977Assert.Same(value, treeView.PathSeparator); 2981Assert.Same(value, treeView.PathSeparator); 3083Assert.Same(control, sender); 3084Assert.Same(control, e.AffectedControl); 3130Assert.Same(control, sender); 3131Assert.Same(control, e.AffectedControl); 3173Assert.Same(control, sender); 3174Assert.Same(EventArgs.Empty, e); 3278Assert.Same(treeView, sender); 3279Assert.Same(EventArgs.Empty, e); 3284Assert.Same(treeView, sender); 3329Assert.Same(treeView, sender); 3330Assert.Same(EventArgs.Empty, e); 3335Assert.Same(treeView, sender); 3814Assert.Same(treeView, sender); 3815Assert.Same(EventArgs.Empty, e); 3820Assert.Same(treeView, sender); 3865Assert.Same(treeView, sender); 3866Assert.Same(EventArgs.Empty, e); 3871Assert.Same(treeView, sender); 3955Assert.Same(treeView, sender); 3956Assert.Same(EventArgs.Empty, e); 3961Assert.Same(treeView, sender); 4006Assert.Same(treeView, sender); 4007Assert.Same(EventArgs.Empty, e); 4012Assert.Same(treeView, sender); 4096Assert.Same(treeView, sender); 4097Assert.Same(EventArgs.Empty, e); 4102Assert.Same(treeView, sender); 4147Assert.Same(treeView, sender); 4148Assert.Same(EventArgs.Empty, e); 4153Assert.Same(treeView, sender); 4237Assert.Same(treeView, sender); 4238Assert.Same(EventArgs.Empty, e); 4243Assert.Same(treeView, sender); 4288Assert.Same(treeView, sender); 4289Assert.Same(EventArgs.Empty, e); 4294Assert.Same(treeView, sender); 4378Assert.Same(treeView, sender); 4379Assert.Same(EventArgs.Empty, e); 4384Assert.Same(treeView, sender); 4429Assert.Same(treeView, sender); 4430Assert.Same(EventArgs.Empty, e); 4435Assert.Same(treeView, sender); 4478Assert.Same(value, treeView.StateImageList); 4482Assert.Same(value, treeView.StateImageList); 4496Assert.Same(value, treeView.StateImageList); 4500Assert.Same(value, treeView.StateImageList); 4511Assert.Same(value, treeView.StateImageList); 4515Assert.Same(value, treeView.StateImageList); 4530Assert.Same(value, treeView.StateImageList); 4534Assert.Same(value, treeView.StateImageList); 4546Assert.Same(imageList1, treeView.StateImageList); 4554Assert.Same(imageList2, treeView.StateImageList); 4565Assert.Same(imageList, treeView.StateImageList); 4577Assert.Same(imageList, treeView.StateImageList); 4590Assert.Same(imageList, treeView.StateImageList); 4605Assert.Same(imageList, treeView.StateImageList); 4666Assert.Same(control, sender); 4667Assert.Same(EventArgs.Empty, e); 4718Assert.Same(value, treeView.TreeViewNodeSorter); 4722Assert.Same(value, treeView.TreeViewNodeSorter); 4796Assert.Same(node1, control.GetNodeAt(pt)); 4800Assert.Same(node1, control.GetNodeAt(pt)); 4872Assert.Same(node1, control.GetNodeAt(pt)); 4879Assert.Same(node1, control.GetNodeAt(pt)); 4935Assert.Same(node1, control.GetNodeAt(pt.X, pt.Y)); 4939Assert.Same(node1, control.GetNodeAt(pt.X, pt.Y)); 5000Assert.Same(node1, control.GetNodeAt(pt.X, pt.Y)); 5007Assert.Same(node1, control.GetNodeAt(pt.X, pt.Y)); 5126Assert.Same(node1, result.Node); 5132Assert.Same(node1, result.Node); 5214Assert.Same(node1, result.Node); 5223Assert.Same(node1, result.Node); 5289Assert.Same(node1, result.Node); 5295Assert.Same(node1, result.Node); 5366Assert.Same(node1, result.Node); 5375Assert.Same(node1, result.Node); 5430Assert.Same(control, sender); 5431Assert.Same(eventArgs, e); 5456Assert.Same(control, sender); 5457Assert.Same(eventArgs, e); 5482Assert.Same(control, sender); 5483Assert.Same(eventArgs, e); 5515Assert.Same(control, sender); 5516Assert.Same(eventArgs, e); 5541Assert.Same(control, sender); 5542Assert.Same(eventArgs, e); 5574Assert.Same(control, sender); 5575Assert.Same(eventArgs, e); 5598Assert.Same(control, sender); 5599Assert.Same(eventArgs, e); 5622Assert.Same(control, sender); 5623Assert.Same(eventArgs, e); 5646Assert.Same(control, sender); 5647Assert.Same(eventArgs, e); 5681Assert.Same(control, sender); 5682Assert.Same(eventArgs, e); 5712Assert.Same(control, sender); 5713Assert.Same(eventArgs, e); 5744Assert.Same(control, sender); 5745Assert.Same(eventArgs, e); 5789Assert.Same(control, sender); 5790Assert.Same(eventArgs, e); 5797Assert.Same(control, sender); 5806Assert.Same(control, sender); 5867Assert.Same(control, sender); 5868Assert.Same(eventArgs, e); 5914Assert.Same(control, sender); 5915Assert.Same(eventArgs, e); 5981Assert.Same(control, sender); 5982Assert.Same(eventArgs, e); 6037Assert.Same(control, sender); 6038Assert.Same(eventArgs, e); 6051Assert.Same(imageList, control.ImageList); 6053Assert.Same(stateImageList, control.StateImageList); 6069Assert.Same(imageList, control.ImageList); 6071Assert.Same(stateImageList, control.StateImageList); 6118Assert.Same(control, sender); 6119Assert.Same(eventArgs, e); 6132Assert.Same(imageList, control.ImageList); 6134Assert.Same(stateImageList, control.StateImageList); 6150Assert.Same(imageList, control.ImageList); 6152Assert.Same(stateImageList, control.StateImageList); 6168Assert.Same(control, sender); 6169Assert.Same(eventArgs, e); 6198Assert.Same(control, sender); 6199Assert.Same(eventArgs, e); 6231Assert.Same(control, sender); 6232Assert.Same(eventArgs, e); 6240Assert.Same(node, control.SelectedNode); 6248Assert.Same(node, control.SelectedNode); 6269Assert.Same(control, sender); 6278Assert.Same(imageList, control.StateImageList); 6286Assert.Same(imageList, control.StateImageList); 6299Assert.Same(control, sender); 6300Assert.Same(eventArgs, e); 6342Assert.Same(control, sender); 6343Assert.Same(eventArgs, e); 6398Assert.Same(control, sender); 6399Assert.Same(eventArgs, e); 6429Assert.Same(control, sender); 6430Assert.Same(eventArgs, e); 6453Assert.Same(control, sender); 6454Assert.Same(eventArgs, e); 6484Assert.Same(control, sender); 6485Assert.Same(eventArgs, e); 6521Assert.Same(control, sender); 6522Assert.Same(eventArgs, e); 6568Assert.Same(control, sender); 6569Assert.Same(eventArgs, e);
System\Windows\Forms\TypedControlCollectionTests.cs (1)
16Assert.Same(owner, collection.Owner);
System\Windows\Forms\UpDownBaseTests.cs (103)
33Assert.Same(control.BindingContext, control.BindingContext); 61Assert.Same(control.Controls, control.Controls); 75Assert.Same(control.DockPadding, control.DockPadding); 83Assert.Same(control.Events, control.Events); 91Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 100Assert.Same(control.LayoutEngine, control.LayoutEngine); 131Assert.Same(control.VerticalScroll, control.VerticalScroll); 165Assert.Same(createParams, control.CreateParams); 196Assert.Same(createParams, control.CreateParams); 296Assert.Same(control, sender); 334Assert.Same(control, sender); 383Assert.Same(control, sender); 419Assert.Same(control, sender); 479Assert.Same(control, sender); 480Assert.Same(EventArgs.Empty, e); 572Assert.Same(control, sender); 573Assert.Same(EventArgs.Empty, e); 608Assert.Same(value, control.BackgroundImage); 613Assert.Same(value, control.BackgroundImage); 624Assert.Same(control, sender); 625Assert.Same(EventArgs.Empty, e); 634Assert.Same(image1, control.BackgroundImage); 639Assert.Same(image1, control.BackgroundImage); 645Assert.Same(image2, control.BackgroundImage); 656Assert.Same(image1, control.BackgroundImage); 686Assert.Same(control, sender); 687Assert.Same(EventArgs.Empty, e); 882Assert.Same(value, control.ContextMenuStrip); 887Assert.Same(value, control.ContextMenuStrip); 898Assert.Same(control, sender); 899Assert.Same(EventArgs.Empty, e); 907Assert.Same(menu1, control.ContextMenuStrip); 912Assert.Same(menu1, control.ContextMenuStrip); 918Assert.Same(menu2, control.ContextMenuStrip); 929Assert.Same(menu1, control.ContextMenuStrip); 995Assert.Same(control, sender); 996Assert.Same(EventArgs.Empty, e); 1106Assert.Same(control, sender); 1107Assert.Same(control, e.AffectedControl); 1150Assert.Same(control, sender); 1151Assert.Same(control, e.AffectedControl); 1261Assert.Same(control, ((Control)source).Parent); 1262Assert.Same(EventArgs.Empty, e); 1301Assert.Same(control, ((Control)source).Parent); 1302Assert.Same(EventArgs.Empty, e); 1345Assert.Same(control, sender); 1793Assert.Same(control, sender); 1794Assert.Same(eventArgs, e); 1841Assert.Same(control, sender); 1842Assert.Same(eventArgs, e); 1876Assert.Same(control, sender); 1877Assert.Same(eventArgs, e); 1904Assert.Same(control, sender); 1905Assert.Same(eventArgs, e); 1934Assert.Same(control, sender); 1935Assert.Same(eventArgs, e); 1983Assert.Same(control, sender); 2021Assert.Same(control, sender); 2022Assert.Same(eventArgs, e); 2052Assert.Same(control, sender); 2053Assert.Same(eventArgs, e); 2076Assert.Same(control, sender); 2077Assert.Same(eventArgs, e); 2100Assert.Same(control, sender); 2101Assert.Same(eventArgs, e); 2124Assert.Same(control, sender); 2125Assert.Same(eventArgs, e); 2148Assert.Same(control, sender); 2149Assert.Same(eventArgs, e); 2179Assert.Same(control, sender); 2180Assert.Same(eventArgs, e); 2204Assert.Same(control, sender); 2205Assert.Same(eventArgs, e); 2259Assert.Same(control, sender); 2260Assert.Same(eventArgs, e); 2303Assert.Same(control, sender); 2304Assert.Same(eventArgs, e); 2395Assert.Same(control, sender); 2396Assert.Same(eventArgs, e); 2442Assert.Same(control, sender); 2443Assert.Same(eventArgs, e); 2571Assert.Same(source, sender); 2572Assert.Same(EventArgs.Empty, e); 2693Assert.Same(control, sender); 2694Assert.Same(EventArgs.Empty, e); 2704Assert.Same(control, sender); 2705Assert.Same(EventArgs.Empty, e); 2715Assert.Same(control, sender); 2716Assert.Same(control, e.AffectedControl); 2725Assert.Same(control, sender); 2726Assert.Same(EventArgs.Empty, e); 2734Assert.Same(control, sender); 2735Assert.Same(EventArgs.Empty, e); 2743Assert.Same(control, sender); 2744Assert.Same(EventArgs.Empty, e); 2910Assert.Same(control, sender); 2911Assert.Same(EventArgs.Empty, e); 2941Assert.Same(control, sender); 2942Assert.Same(EventArgs.Empty, e); 2966Assert.Same(control, sender); 2967Assert.Same(EventArgs.Empty, e); 2996Assert.Same(control, sender); 2997Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\UserControlTests.cs (102)
39Assert.Same(control.BindingContext, control.BindingContext); 54Assert.Same(control.Controls, control.Controls); 69Assert.Same(control.DockPadding, control.DockPadding); 77Assert.Same(control.Events, control.Events); 85Assert.Same(control.HorizontalScroll, control.HorizontalScroll); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 119Assert.Same(control.VerticalScroll, control.VerticalScroll); 142Assert.Same(createParams, control.CreateParams); 168Assert.Same(createParams, control.CreateParams); 208Assert.Same(control, sender); 209Assert.Same(EventArgs.Empty, e); 245Assert.Same(control, sender); 246Assert.Same(control, e.AffectedControl); 287Assert.Same(control, sender); 288Assert.Same(control, e.AffectedControl); 322Assert.Same(parent, sender); 323Assert.Same(control, e.AffectedControl); 379Assert.Same(control, sender); 380Assert.Same(control, e.AffectedControl); 429Assert.Same(parent, sender); 430Assert.Same(control, e.AffectedControl); 528Assert.Same(parent, sender); 529Assert.Same(control, e.AffectedControl); 601Assert.Same(parent, sender); 602Assert.Same(control, e.AffectedControl); 699Assert.Same(control, sender); 700Assert.Same(EventArgs.Empty, e); 844Assert.Same(control, sender); 940Assert.Same(control, sender); 941Assert.Same(EventArgs.Empty, e); 947Assert.Same(control, sender); 948Assert.Same(EventArgs.Empty, e); 973Assert.Same(control, sender); 974Assert.Same(eventArgs, e); 997Assert.Same(control, sender); 998Assert.Same(eventArgs, e); 1030Assert.Same(control, sender); 1031Assert.Same(eventArgs, e); 1062Assert.Same(control, sender); 1063Assert.Same(eventArgs, e); 1069Assert.Same(control, sender); 1070Assert.Same(control, e.AffectedControl); 1102Assert.Same(control, sender); 1103Assert.Same(eventArgs, e); 1109Assert.Same(control, sender); 1110Assert.Same(control, e.AffectedControl); 1147Assert.Same(control, sender); 1148Assert.Same(eventArgs, e); 1154Assert.Same(control, sender); 1155Assert.Same(control, e.AffectedControl); 1201Assert.Same(control, sender); 1202Assert.Same(eventArgs, e); 1208Assert.Same(control, sender); 1209Assert.Same(control, e.AffectedControl); 1304Assert.Same(child1, sender); 1312Assert.Same(child1, sender); 1313Assert.Same(EventArgs.Empty, e); 1319Assert.Same(grandchild1, sender); 1328Assert.Same(child2, sender); 1335Assert.Same(child2, sender); 1336Assert.Same(EventArgs.Empty, e); 1342Assert.Same(grandchild2, sender); 1349Assert.Same(grandchild2, sender); 1350Assert.Same(EventArgs.Empty, e); 1356Assert.Same(child3, sender); 1363Assert.Same(child3, sender); 1364Assert.Same(EventArgs.Empty, e); 1378Assert.Same(child5, sender); 1385Assert.Same(child5, sender); 1386Assert.Same(EventArgs.Empty, e); 1392Assert.Same(child6, sender); 1399Assert.Same(child6, sender); 1400Assert.Same(EventArgs.Empty, e); 1406Assert.Same(child7, sender); 1413Assert.Same(child7, sender); 1414Assert.Same(EventArgs.Empty, e); 1530Assert.Same(child1, sender); 1538Assert.Same(child1, sender); 1539Assert.Same(EventArgs.Empty, e); 1545Assert.Same(grandchild1, sender); 1554Assert.Same(child2, sender); 1561Assert.Same(child2, sender); 1562Assert.Same(EventArgs.Empty, e); 1568Assert.Same(grandchild2, sender); 1575Assert.Same(grandchild2, sender); 1576Assert.Same(EventArgs.Empty, e); 1582Assert.Same(child3, sender); 1589Assert.Same(child3, sender); 1590Assert.Same(EventArgs.Empty, e); 1604Assert.Same(child5, sender); 1611Assert.Same(child5, sender); 1612Assert.Same(EventArgs.Empty, e); 1618Assert.Same(child6, sender); 1625Assert.Same(child6, sender); 1626Assert.Same(EventArgs.Empty, e); 1632Assert.Same(child7, sender); 1639Assert.Same(child7, sender); 1640Assert.Same(EventArgs.Empty, e); 1699Assert.Same(control, sender); 1700Assert.Same(EventArgs.Empty, e); 1740Assert.Same(child1, control.ActiveControl); 1771Assert.Same(child2, control.ActiveControl);
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (3)
20Assert.Same(className, element.ClassName); 653Assert.Same(expectedClassName, element.ClassName); 656Assert.Same(element, elementFactory());
System\Windows\Forms\VScrollBarTests.cs (8)
48Assert.Same(control.Controls, control.Controls); 50Assert.Same(Cursors.Default, control.Cursor); 51Assert.Same(Cursors.Default, control.DefaultCursor); 68Assert.Same(control.Events, control.Events); 81Assert.Same(control.LayoutEngine, control.LayoutEngine); 135Assert.Same(createParams, control.CreateParams); 162Assert.Same(control, sender); 163Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\WebBrowserTests.cs (99)
43Assert.Same(control.Controls, control.Controls); 45Assert.Same(Cursors.Default, control.Cursor); 46Assert.Same(Cursors.Default, control.DefaultCursor); 59Assert.Same(control.Events, control.Events); 69Assert.Same(control.LayoutEngine, control.LayoutEngine); 118Assert.Same(createParams, control.CreateParams); 740Assert.Same(control, sender); 749Assert.Same(control, sender); 756Assert.Same(control, sender); 757Assert.Same(EventArgs.Empty, e); 763Assert.Same(control, sender); 771Assert.Same(control, sender); 772Assert.Same(EventArgs.Empty, e); 778Assert.Same(control, sender); 779Assert.Same(EventArgs.Empty, e); 1275Assert.Same(value, control.ObjectForScripting); 1281Assert.Same(value, control.ObjectForScripting); 1296Assert.Same(value, control.ObjectForScripting); 1302Assert.Same(value, control.ObjectForScripting); 1405Assert.Same(parent, control.Parent); 1406Assert.Same(control, Assert.Single(parent.Controls)); 1410Assert.Same(parent, control.Parent); 1411Assert.Same(control, Assert.Single(parent.Controls)); 1422Assert.Same(parent, control.Parent); 1444Assert.Same(parent, control.Parent); 1464Assert.Same(parent, control.Parent); 1483Assert.Same(parent, control.Parent); 1505Assert.Same(parent, control.Parent); 1527Assert.Same(parent, control.Parent); 1546Assert.Same(control, sender); 1547Assert.Same(EventArgs.Empty, e); 1554Assert.Same(parent, control.Parent); 1559Assert.Same(parent, control.Parent); 1570Assert.Same(parent, control.Parent); 1979Assert.Same(control, sender); 1988Assert.Same(control, sender); 1995Assert.Same(control, sender); 1996Assert.Same(EventArgs.Empty, e); 2002Assert.Same(control, sender); 2010Assert.Same(control, sender); 2011Assert.Same(EventArgs.Empty, e); 2017Assert.Same(control, sender); 2018Assert.Same(EventArgs.Empty, e); 2219Assert.Same(control, sender); 2220Assert.Same(EventArgs.Empty, e); 2895Assert.Same(control, sender); 2896Assert.Same(EventArgs.Empty, e); 2902Assert.Same(control, sender); 2903Assert.Same(EventArgs.Empty, e); 3012Assert.Same(control, sender); 3013Assert.Same(EventArgs.Empty, e); 3019Assert.Same(control, sender); 3020Assert.Same(EventArgs.Empty, e); 3201Assert.Same(control, sender); 3210Assert.Same(control, sender); 3217Assert.Same(control, sender); 3218Assert.Same(EventArgs.Empty, e); 3224Assert.Same(control, sender); 3232Assert.Same(control, sender); 3233Assert.Same(EventArgs.Empty, e); 3239Assert.Same(control, sender); 3240Assert.Same(EventArgs.Empty, e); 3313Assert.Same(control, sender); 3322Assert.Same(control, sender); 3329Assert.Same(control, sender); 3330Assert.Same(EventArgs.Empty, e); 3336Assert.Same(control, sender); 3344Assert.Same(control, sender); 3345Assert.Same(EventArgs.Empty, e); 3351Assert.Same(control, sender); 3352Assert.Same(EventArgs.Empty, e); 3430Assert.Same(control, sender); 3431Assert.Same(EventArgs.Empty, e); 3505Assert.Same(control, sender); 3506Assert.Same(eventArgs, e); 3533Assert.Same(control, sender); 3534Assert.Same(eventArgs, e); 3568Assert.Same(control, sender); 3569Assert.Same(eventArgs, e); 3612Assert.Same(control, sender); 3613Assert.Same(eventArgs, e); 3671Assert.Same(control, sender); 3672Assert.Same(eventArgs, e); 3699Assert.Same(control, sender); 3700Assert.Same(eventArgs, e); 3727Assert.Same(control, sender); 3728Assert.Same(eventArgs, e); 3762Assert.Same(control, sender); 3763Assert.Same(eventArgs, e); 3797Assert.Same(control, sender); 3798Assert.Same(eventArgs, e); 3832Assert.Same(control, sender); 3833Assert.Same(eventArgs, e); 3868Assert.Same(control, sender); 3869Assert.Same(eventArgs, e); 3896Assert.Same(control, sender); 3897Assert.Same(eventArgs, e); 4468Assert.Same(control, sender); 4469Assert.Same(EventArgs.Empty, e);
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (3)
22Assert.Same(state, actualState); 63Assert.Same(state, actualState); 122Assert.Same(state, actualState);
TextBoxBaseTests.cs (139)
34Assert.Same(createParams, control.CreateParams); 60Assert.Same(createParams, control.CreateParams); 86Assert.Same(createParams, control.CreateParams); 112Assert.Same(createParams, control.CreateParams); 141Assert.Same(createParams, control.CreateParams); 177Assert.Same(control, sender); 178Assert.Same(EventArgs.Empty, e); 343Assert.Same(control, sender); 344Assert.Same(EventArgs.Empty, e); 411Assert.Same(control, sender); 412Assert.Same(EventArgs.Empty, e); 447Assert.Same(value, control.BackgroundImage); 452Assert.Same(value, control.BackgroundImage); 463Assert.Same(control, sender); 464Assert.Same(EventArgs.Empty, e); 472Assert.Same(image1, control.BackgroundImage); 477Assert.Same(image1, control.BackgroundImage); 483Assert.Same(image2, control.BackgroundImage); 494Assert.Same(image1, control.BackgroundImage); 524Assert.Same(control, sender); 525Assert.Same(EventArgs.Empty, e); 588Assert.Same(parent, sender); 589Assert.Same(control, e.AffectedControl); 655Assert.Same(control, sender); 656Assert.Same(EventArgs.Empty, e); 1124Assert.Same(control, sender); 1125Assert.Same(EventArgs.Empty, e); 1133Assert.Same(font1, control.Font); 1138Assert.Same(font1, control.Font); 1144Assert.Same(font2, control.Font); 1155Assert.Same(font1, control.Font); 1230Assert.Same(control, sender); 1231Assert.Same(EventArgs.Empty, e); 1375Assert.Same(control, sender); 1376Assert.Same(EventArgs.Empty, e); 1555Assert.Same(control, sender); 1556Assert.Same(EventArgs.Empty, e); 1805Assert.Same(control, sender); 1806Assert.Same(EventArgs.Empty, e); 1910Assert.Same(control, sender); 1911Assert.Same(EventArgs.Empty, e); 2014Assert.Same(parent, sender); 2015Assert.Same(control, e.AffectedControl); 2160Assert.Same(control, sender); 2161Assert.Same(EventArgs.Empty, e); 2307Assert.Same(control, sender); 2308Assert.Same(EventArgs.Empty, e); 2418Assert.Same(control, sender); 2419Assert.Same(EventArgs.Empty, e); 2459Assert.Same(control, sender); 2460Assert.Same(EventArgs.Empty, e); 2504Assert.Same(control, sender); 2505Assert.Same(EventArgs.Empty, e); 3482Assert.Same(control, sender); 3525Assert.Same(control, sender); 3735Assert.Same(parent, sender); 3736Assert.Same(control, e.AffectedControl); 5275Assert.Same(control, sender); 5276Assert.Same(eventArgs, e); 5299Assert.Same(control, sender); 5300Assert.Same(eventArgs, e); 5323Assert.Same(control, sender); 5324Assert.Same(eventArgs, e); 5347Assert.Same(control, sender); 5348Assert.Same(eventArgs, e); 5373Assert.Same(control, sender); 5374Assert.Same(eventArgs, e); 5402Assert.Same(control, sender); 5403Assert.Same(eventArgs, e); 5430Assert.Same(control, sender); 5431Assert.Same(eventArgs, e); 5478Assert.Same(control, sender); 5479Assert.Same(eventArgs, e); 5518Assert.Same(control, sender); 5519Assert.Same(eventArgs, e); 5542Assert.Same(control, sender); 5543Assert.Same(eventArgs, e); 5566Assert.Same(control, sender); 5567Assert.Same(eventArgs, e); 5608Assert.Same(control, sender); 5609Assert.Same(eventArgs, e); 5650Assert.Same(control, sender); 5651Assert.Same(eventArgs, e); 5686Assert.Same(control, sender); 5687Assert.Same(eventArgs, e); 5710Assert.Same(control, sender); 5711Assert.Same(eventArgs, e); 5736Assert.Same(control, sender); 5737Assert.Same(eventArgs, e); 5760Assert.Same(control, sender); 5761Assert.Same(eventArgs, e); 5784Assert.Same(control, sender); 5785Assert.Same(eventArgs, e); 6477Assert.Same(control, sender); 6478Assert.Same(EventArgs.Empty, e); 6488Assert.Same(control, sender); 6489Assert.Same(EventArgs.Empty, e); 6499Assert.Same(control, sender); 6500Assert.Same(control, e.AffectedControl); 6509Assert.Same(control, sender); 6510Assert.Same(EventArgs.Empty, e); 6518Assert.Same(control, sender); 6519Assert.Same(EventArgs.Empty, e); 6527Assert.Same(control, sender); 6528Assert.Same(EventArgs.Empty, e); 6611Assert.Same(control, sender); 6612Assert.Same(EventArgs.Empty, e); 6622Assert.Same(control, sender); 6623Assert.Same(EventArgs.Empty, e); 6633Assert.Same(control, sender); 6634Assert.Same(control, e.AffectedControl); 6643Assert.Same(control, sender); 6644Assert.Same(EventArgs.Empty, e); 6652Assert.Same(control, sender); 6653Assert.Same(EventArgs.Empty, e); 6661Assert.Same(control, sender); 6662Assert.Same(EventArgs.Empty, e); 6727Assert.Same(control, sender); 6728Assert.Same(EventArgs.Empty, e); 6738Assert.Same(control, sender); 6739Assert.Same(EventArgs.Empty, e); 6749Assert.Same(control, sender); 6750Assert.Same(control, e.AffectedControl); 6759Assert.Same(control, sender); 6760Assert.Same(EventArgs.Empty, e); 6768Assert.Same(control, sender); 6769Assert.Same(EventArgs.Empty, e); 6777Assert.Same(control, sender); 6778Assert.Same(EventArgs.Empty, e); 7263Assert.Same(control, sender); 7299Assert.Same(control, sender); 7373Assert.Same(control, sender); 7417Assert.Same(control, sender); 7499Assert.Same(control, sender); 7500Assert.Same(EventArgs.Empty, e); 7540Assert.Same(control, sender); 7541Assert.Same(EventArgs.Empty, e); 7576Assert.Same(control, sender); 7577Assert.Same(EventArgs.Empty, e);
TextBoxTests.cs (17)
28Assert.Same(control.AutoCompleteCustomSource, control.AutoCompleteCustomSource); 52Assert.Same(control.Controls, control.Controls); 54Assert.Same(Cursors.IBeam, control.Cursor); 55Assert.Same(Cursors.IBeam, control.DefaultCursor); 68Assert.Same(control.Events, control.Events); 79Assert.Same(control.LayoutEngine, control.LayoutEngine); 142Assert.Same(createParams, control.CreateParams); 463Assert.Same(control, instance.Owner); 479Assert.Same(control, instance.Owner); 538Assert.Same(control, sender); 539Assert.Same(eventArgs, e); 567Assert.Same(control, sender); 568Assert.Same(eventArgs, e); 595Assert.Same(control, sender); 596Assert.Same(eventArgs, e); 643Assert.Same(control, sender); 644Assert.Same(eventArgs, e);
TrackBarTests.cs (86)
45Assert.Same(control.Controls, control.Controls); 47Assert.Same(Cursors.Default, control.Cursor); 48Assert.Same(Cursors.Default, control.DefaultCursor); 61Assert.Same(control.Events, control.Events); 74Assert.Same(control.LayoutEngine, control.LayoutEngine); 129Assert.Same(createParams, control.CreateParams); 157Assert.Same(createParams, control.CreateParams); 183Assert.Same(createParams, control.CreateParams); 214Assert.Same(createParams, control.CreateParams); 406Assert.Same(control, sender); 407Assert.Same(EventArgs.Empty, e); 442Assert.Same(value, control.BackgroundImage); 447Assert.Same(value, control.BackgroundImage); 458Assert.Same(control, sender); 459Assert.Same(EventArgs.Empty, e); 467Assert.Same(image1, control.BackgroundImage); 472Assert.Same(image1, control.BackgroundImage); 478Assert.Same(image2, control.BackgroundImage); 489Assert.Same(image1, control.BackgroundImage); 519Assert.Same(control, sender); 520Assert.Same(EventArgs.Empty, e); 647Assert.Same(control, sender); 648Assert.Same(EventArgs.Empty, e); 656Assert.Same(font1, control.Font); 661Assert.Same(font1, control.Font); 667Assert.Same(font2, control.Font); 678Assert.Same(font1, control.Font); 744Assert.Same(control, sender); 745Assert.Same(EventArgs.Empty, e); 939Assert.Same(control, sender); 940Assert.Same(EventArgs.Empty, e); 1563Assert.Same(control, sender); 1564Assert.Same(control, e.AffectedControl); 1610Assert.Same(control, sender); 1611Assert.Same(control, e.AffectedControl); 1653Assert.Same(control, sender); 1654Assert.Same(EventArgs.Empty, e); 1824Assert.Same(control, sender); 2159Assert.Same(control, sender); 2160Assert.Same(EventArgs.Empty, e); 2331Assert.Same(control, sender); 2332Assert.Same(eventArgs, e); 2365Assert.Same(control, sender); 2366Assert.Same(eventArgs, e); 2397Assert.Same(control, sender); 2398Assert.Same(eventArgs, e); 2421Assert.Same(control, sender); 2422Assert.Same(eventArgs, e); 2445Assert.Same(control, sender); 2446Assert.Same(eventArgs, e); 2472Assert.Same(control, sender); 2473Assert.Same(eventArgs, e); 2498Assert.Same(control, sender); 2499Assert.Same(eventArgs, e); 2522Assert.Same(control, sender); 2523Assert.Same(eventArgs, e); 2559Assert.Same(control, sender); 2560Assert.Same(eventArgs, e); 2584Assert.Same(control, sender); 2585Assert.Same(eventArgs, e); 2624Assert.Same(control, sender); 2625Assert.Same(eventArgs, e); 2671Assert.Same(control, sender); 2672Assert.Same(eventArgs, e); 2729Assert.Same(control, sender); 2730Assert.Same(eventArgs, e); 2753Assert.Same(control, sender); 2754Assert.Same(eventArgs, e); 2787Assert.Same(control, sender); 2788Assert.Same(eventArgs, e); 2818Assert.Same(control, sender); 2819Assert.Same(eventArgs, e); 2937Assert.Same(control, sender); 2938Assert.Same(EventArgs.Empty, e); 2948Assert.Same(control, sender); 2949Assert.Same(EventArgs.Empty, e); 2959Assert.Same(control, sender); 2960Assert.Same(control, e.AffectedControl); 2969Assert.Same(control, sender); 2970Assert.Same(EventArgs.Empty, e); 2978Assert.Same(control, sender); 2979Assert.Same(EventArgs.Empty, e); 2987Assert.Same(control, sender); 2988Assert.Same(EventArgs.Empty, e); 3130Assert.Same(control, sender); 3131Assert.Same(EventArgs.Empty, e);
WebBrowserBaseTests.cs (19)
38Assert.Same(control, sender); 39Assert.Same(control, e.AffectedControl); 48Assert.Same(control, sender); 49Assert.Same(EventArgs.Empty, e); 57Assert.Same(control, sender); 58Assert.Same(EventArgs.Empty, e); 66Assert.Same(control, sender); 67Assert.Same(EventArgs.Empty, e); 147Assert.Same(control, sender); 148Assert.Same(control, e.AffectedControl); 157Assert.Same(control, sender); 158Assert.Same(EventArgs.Empty, e); 166Assert.Same(control, sender); 167Assert.Same(EventArgs.Empty, e); 175Assert.Same(control, sender); 176Assert.Same(EventArgs.Empty, e); 259Assert.Same(mockSite1.Object, control.Site); 264Assert.Same(mockSite1.Object, control.Site); 276Assert.Same(mockSite2.Object, control.Site);
System.Xaml.Tests (10)
System\Windows\Markup\ArrayExtensionTests.cs (3)
19Assert.Same(extension.Items, extension.Items); 30Assert.Same(extension.Items, extension.Items); 58Assert.Same(extension.Items, extension.Items);
System\Windows\Markup\ContentWrapperAttributeTests.cs (1)
60Assert.Same(attribute, attribute.TypeId);
System\Windows\Markup\DependsOnAttributeTests.cs (1)
25Assert.Same(attribute, attribute.TypeId);
System\Windows\Markup\PropertyDefinitionTests.cs (1)
25Assert.Same(definition.Attributes, definition.Attributes);
System\Windows\Markup\ValueSerializerTests.cs (2)
245Assert.Same(serializer, ValueSerializer.GetSerializerFor(typeof(int), context)); 312Assert.Same(serializer, ValueSerializer.GetSerializerFor(descriptor, context));
System\Windows\Markup\XDataTests.cs (2)
37Assert.Same(data.XmlReader, reader); 57Assert.Same(reader, data.XmlReader);