6271 references to Same
Analyzer.Utilities.UnitTests (4)
Client.ChannelLayer.IntegrationTests (2)
IIS.Tests (2)
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);
InProcessWebSite (4)
Interop.FunctionalTests (4)
Microsoft.AspNetCore.Antiforgery.Test (2)
Microsoft.AspNetCore.App.Analyzers.Test (56)
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);
Microsoft.AspNetCore.AsyncState.Tests (2)
Microsoft.AspNetCore.Authentication.Core.Test (10)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.Authorization.Test (8)
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)
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Microsoft.AspNetCore.Components.Forms.Tests (24)
Microsoft.AspNetCore.Components.QuickGrid.Tests (3)
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 (26)
Circuits\CircuitRegistryTest.cs (15)
32Assert.Same(circuitHost, actual);
52Assert.Same(circuitHost, result);
53Assert.Same(newClient, circuitHost.Client.Client);
54Assert.Same(newConnectionId, circuitHost.Client.ConnectionId);
57Assert.Same(circuitHost, actual);
77Assert.Same(circuitHost, result);
78Assert.Same(newClient, circuitHost.Client.Client);
79Assert.Same(newConnectionId, circuitHost.Client.ConnectionId);
82Assert.Same(circuitHost, actual);
264Assert.Same(circuitHost, actual);
265Assert.Same(client, circuitHost.Client.Client);
403Assert.Same(circuitHost, actual);
404Assert.Same(client, circuitHost.Client.Client);
463Assert.Same(circuitHost, cacheValue);
560Assert.Same(circuitHost, connectedCircuit);
Microsoft.AspNetCore.Components.Tests (183)
CascadingParameterStateTest.cs (12)
85Assert.Same(states[1].Component, match.ValueSupplier);
108Assert.Same(states[3].Component, match.ValueSupplier);
113Assert.Same(states[1].Component, match.ValueSupplier);
134Assert.Same(states[0].Component, match.ValueSupplier);
139Assert.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);
328Assert.Same(states[2].Component, match.ValueSupplier);
333Assert.Same(states[3].Component, match.ValueSupplier);
354Assert.Same(states[1].Component, match.ValueSupplier);
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);
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\RendererSynchronizationContextTest.cs (13)
155Assert.Same(CultureInfo.CurrentCulture, capturedCulture);
156Assert.Same(context, capturedContext);
247Assert.Same(Thread.CurrentThread, capturedThread);
252Assert.Same(Thread.CurrentThread, capturedThread);
289Assert.Same(CultureInfo.CurrentCulture, capturedCulture);
290Assert.Same(context, capturedContext);
308Assert.Same(thread, capturedThread);
398Assert.Same(CultureInfo.CurrentCulture, capturedCulture);
399Assert.Same(context, capturedContext);
418Assert.Same(thread, capturedThread);
508Assert.Same(thread, await task);
599Assert.Same(thread, capturedThread);
690Assert.Same(thread, await task);
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]);
Microsoft.AspNetCore.Components.Web.Tests (8)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.Cors.Test (7)
Microsoft.AspNetCore.Cryptography.Internal.Tests (9)
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (7)
Microsoft.AspNetCore.DataProtection.Tests (50)
KeyManagement\DefaultKeyResolverTests.cs (13)
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);
384Assert.Same(key1, resolution.FallbackKey);
444Assert.Same(key, resolution.DefaultKey);
KeyManagement\KeyRingProviderTests.cs (14)
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);
719Assert.Same(expectedKeyRing, backgroundRetVal);
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);
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (13)
Microsoft.AspNetCore.Html.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (14)
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);
Microsoft.AspNetCore.Http.Connections.Tests (14)
Microsoft.AspNetCore.Http.Extensions.Tests (36)
RequestDelegateFactoryTests.cs (10)
1189Assert.Same(myOriginalService, httpContext.Items["service"]);
1209Assert.Same(httpContext, httpContextArgument);
1950Assert.Same(exception, logMessage.Exception);
1983Assert.Same(exception, logMessage.Exception);
2569m => Assert.Same(customMetadata, m),
2891Assert.Same(options.EndpointBuilder.Metadata, result.EndpointMetadata);
3070Assert.Same(initialRequestDelegate, result.RequestDelegate);
3086Assert.Same(options.EndpointBuilder.RequestDelegate, result.RequestDelegate);
3087Assert.Same(options.EndpointBuilder.Metadata, result.EndpointMetadata);
3103Assert.Same(Results.Empty, response);
Microsoft.AspNetCore.Http.Results.Tests (6)
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);
Microsoft.AspNetCore.Identity.Test (9)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (6)
Microsoft.AspNetCore.JsonPatch.Tests (8)
Microsoft.AspNetCore.Localization.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (19)
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);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (61)
DefaultApiDescriptionProviderTest.cs (61)
102Assert.Same(action, description.ActionDescriptor);
1234Assert.Same(formatters[0], apiResponseFormat.Formatter);
1337Assert.Same(formatters[1], format.Formatter);
1356Assert.Same(BindingSource.ModelBinding, parameter.Source);
1360Assert.Same(BindingSource.ModelBinding, parameter.Source);
1364Assert.Same(BindingSource.ModelBinding, parameter.Source);
1381Assert.Same(BindingSource.ModelBinding, parameter.Source);
1401Assert.Same(BindingSource.Path, parameter.Source);
1418Assert.Same(BindingSource.Query, parameter.Source);
1435Assert.Same(BindingSource.Body, parameter.Source);
1454Assert.Same(BindingSource.Form, parameter.Source);
1458Assert.Same(BindingSource.Form, parameter.Source);
1462Assert.Same(BindingSource.Form, parameter.Source);
1484Assert.Same(BindingSource.FormFile, parameter.Source);
1505Assert.Same(BindingSource.Header, parameter.Source);
1551Assert.Same(BindingSource.Custom, parameter.Source);
1570Assert.Same(BindingSource.ModelBinding, parameter.Source);
1574Assert.Same(BindingSource.ModelBinding, parameter.Source);
1578Assert.Same(BindingSource.ModelBinding, parameter.Source);
1597Assert.Same(BindingSource.Path, id.Source);
1601Assert.Same(BindingSource.Body, product.Source);
1605Assert.Same(BindingSource.Header, userId.Source);
1609Assert.Same(BindingSource.ModelBinding, comments.Source);
1628Assert.Same(BindingSource.Query, id.Source);
1647Assert.Same(BindingSource.Query, id.Source);
1666Assert.Same(BindingSource.Query, id.Source);
1685Assert.Same(BindingSource.Query, id.Source);
1704Assert.Same(BindingSource.Query, id.Source);
1723Assert.Same(BindingSource.Query, id.Source);
1742Assert.Same(BindingSource.Query, id.Source);
1761Assert.Same(BindingSource.Query, id.Source);
1765Assert.Same(BindingSource.Query, product.Source);
1785Assert.Same(BindingSource.Path, id.Source);
1789Assert.Same(BindingSource.Body, product.Source);
1793Assert.Same(BindingSource.Header, userId.Source);
1797Assert.Same(BindingSource.Query, comments.Source);
1816Assert.Same(BindingSource.Path, id.Source);
1820Assert.Same(BindingSource.ModelBinding, quantity.Source);
1824Assert.Same(BindingSource.ModelBinding, productId.Source);
1828Assert.Same(BindingSource.Query, price.Source);
1848Assert.Same(BindingSource.Path, id.Source);
1852Assert.Same(BindingSource.Query, quantity.Source);
1856Assert.Same(BindingSource.Query, productId.Source);
1860Assert.Same(BindingSource.Query, productPrice.Source);
1883Assert.Same(BindingSource.Query, id.Source);
1887Assert.Same(BindingSource.Query, name.Source);
1914Assert.Same(BindingSource.Query, id.Source);
1918Assert.Same(BindingSource.Query, name.Source);
1937Assert.Same(BindingSource.Query, c.Source);
1955Assert.Same(BindingSource.Query, products.Source);
1974Assert.Same(BindingSource.ModelBinding, items.Source);
1996Assert.Same(BindingSource.Query, id.Source);
2000Assert.Same(BindingSource.Query, name.Source);
2018Assert.Same(BindingSource.Header, name.Source);
2022Assert.Same(BindingSource.Form, id.Source);
2041Assert.Same(BindingSource.Query, name.Source);
2045Assert.Same(BindingSource.Path, id.Source);
2049Assert.Same(BindingSource.Body, product.Source);
2053Assert.Same(BindingSource.Header, userId.Source);
2057Assert.Same(BindingSource.ModelBinding, comments.Source);
2206Assert.Same(defaultValue, description.DefaultValue);
Microsoft.AspNetCore.Mvc.Core.Test (444)
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
ApplicationModels\DefaultApplicationModelProviderTest.cs (13)
83Assert.Same(controllerModel, property.Controller);
92Assert.Same(controllerModel, property.Controller);
100Assert.Same(controllerModel, property.Controller);
109Assert.Same(controllerModel, property.Controller);
135Assert.Same(controllerModel, property.Controller);
144Assert.Same(controllerModel, property.Controller);
152Assert.Same(controllerModel, property.Controller);
161Assert.Same(controllerModel, property.Controller);
188Assert.Same(action, parameter.Action);
197Assert.Same(action, parameter.Action);
205Assert.Same(action, parameter.Action);
1364Assert.Same(typeof(ComplexObjectModelBinder), bindingInfo.BinderType);
1379Assert.Same(BindingSource.Path, property.BindingInfo.BindingSource);
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);
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);
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
Infrastructure\ActionSelectionTableTest.cs (8)
49Assert.Collection(matches, (a) => Assert.Same(actions[0], a));
89Assert.Collection(matches, (a) => Assert.Same(actions[0], a));
129Assert.Collection(matches, (e) => Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()));
423Assert.Same(actions[0], action);
454Assert.Same(actions[0], action);
485Assert.Same(actions[0], action);
514Assert.Same(actions[0], action);
543Assert.Same(actions[0], action);
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\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));
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);
267Assert.Same(metadata1, metadata2);
335Assert.Same(metadata1, metadata2);
418Assert.Same(metadata1, metadata2);
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);
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>());
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)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (40)
RuntimeViewCompilerTest.cs (35)
34Assert.Same(result1, result2);
37Assert.Same(fileProvider.GetChangeToken(path), token);
53Assert.Same(result1, result2);
76token => Assert.Same(fileProvider.GetChangeToken(path), token),
77token => Assert.Same(fileProvider.GetChangeToken("/_ViewImports.cshtml"), token),
78token => Assert.Same(fileProvider.GetChangeToken("/file/_ViewImports.cshtml"), token),
79token => Assert.Same(fileProvider.GetChangeToken("/file/exists/_ViewImports.cshtml"), token));
103Assert.Same(result1, result2);
157Assert.Same(expected2, result2);
183Assert.Same(expected2, result2);
203Assert.Same(precompiledView, result);
229Assert.Same(precompiledView, result);
249Assert.Same(precompiledView, result);
276Assert.Same(precompiledView.Item, result.Item);
284Assert.Same(precompiledView.Item, result.Item);
311Assert.Same(precompiledView, result);
319Assert.Same(precompiledView, result);
349Assert.Same(precompiledView.Item, result.Item);
354token => Assert.Same(fileProvider.GetChangeToken(path), token));
384Assert.Same(expected, result);
411Assert.Same(precompiledView.Item, result.Item);
413Assert.Same(fileProvider.GetChangeToken(path), token);
441Assert.Same(precompiledView.Item, result.Item);
451Assert.Same(expected2, result);
478Assert.Same(precompiledView.Item, result.Item);
485Assert.Same(precompiledView.Item, result.Item);
515Assert.Same(expected1, result);
523Assert.Same(precompiledView.Item, result.Item);
555Assert.Same(precompiledView.Item, result.Item);
564Assert.Same(expected2, result);
642Assert.Same(result1, task1.Result);
643Assert.Same(result2, task2.Result);
686Assert.Same(result1, result2);
704Assert.Same(exception, actual);
711Assert.Same(exception, actual);
Microsoft.AspNetCore.Mvc.Razor.Test (79)
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);
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);
Microsoft.AspNetCore.Mvc.RazorPages.Test (241)
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);
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (11)
51Assert.Same(descriptor1, actual);
99Assert.Same(descriptor3, actual);
194Assert.Same(descriptor1, actual);
230Assert.Same(descriptor, actual);
273Assert.Same(descriptor2, actual);
373Assert.Same(descriptor1, actual);
424Assert.Same(descriptor1, actual);
469Assert.Same(descriptor2, actual);
520Assert.Same(descriptor1, actual);
565Assert.Same(descriptor2, actual);
614Assert.Same(descriptor2, actual);
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);
PageModelTest.cs (34)
45Assert.Same(url, result.Url);
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);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (13)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (194)
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);
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);
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);
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);
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.AspNetCore.Owin.Tests (4)
Microsoft.AspNetCore.Razor.Runtime.Test (8)
Microsoft.AspNetCore.Razor.Test (9)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.Routing.Tests (357)
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));
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\DfaMatcherBuilderTest.cs (115)
30Assert.Same(endpoint, Assert.Single(root.Matches));
69Assert.Same(endpoint, Assert.Single(c.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);
195Assert.Same(endpoint1, Assert.Single(c1.Matches));
207Assert.Same(endpoint2, Assert.Single(c2.Matches));
247Assert.Same(endpoint1, Assert.Single(c1.Matches));
259Assert.Same(endpoint2, Assert.Single(c2.Matches));
302e => Assert.Same(endpoint1, e),
303e => Assert.Same(endpoint2, e));
315Assert.Same(endpoint2, Assert.Single(c2.Matches));
356e => Assert.Same(endpoint1, e),
357e => Assert.Same(endpoint2, e));
385Assert.Same(endpoint2, Assert.Single(a.Matches));
391Assert.Same(endpoint2, Assert.Single(a.Matches));
400e => Assert.Same(endpoint1, e),
401e => Assert.Same(endpoint2, e));
406Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
407Assert.Same(catchAll, catchAll.Parameters);
408Assert.Same(catchAll, catchAll.CatchAll);
434Assert.Same(endpoint2, Assert.Single(a.Matches));
438Assert.Same(endpoint2, Assert.Single(a.Matches));
447e => Assert.Same(endpoint1, e),
448e => Assert.Same(endpoint2, e));
453Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
454Assert.Same(catchAll, catchAll.Parameters);
455Assert.Same(catchAll, catchAll.CatchAll);
485Assert.Same(endpoint1, Assert.Single(cNode.Matches));
498Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
532Assert.Same(endpoint1, Assert.Single(cNode.Matches));
545Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
577Assert.Same(endpoint1, Assert.Single(cNode.Matches));
590Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
605Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
640Assert.Same(endpoint3, Assert.Single(cNode.Matches));
668Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
700Assert.Same(endpoint1, Assert.Single(cNode.Matches));
713Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
745Assert.Same(endpoint1, Assert.Single(cNode.Matches));
758Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
773Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
805Assert.Same(endpoint1, Assert.Single(cNode.Matches));
818Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
850Assert.Same(endpoint1, Assert.Single(cNode.Matches));
863Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
878Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
910Assert.Same(endpoint1, Assert.Single(cNode.Matches));
923Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
938Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
975Assert.Same(endpoint1, Assert.Single(cNode.Matches));
990Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
1025Assert.Same(endpoint3, Assert.Single(cNode.Matches));
1053Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
2416Assert.Same(endpoint2, Assert.Single(a.Matches));
2422e => Assert.Same(endpoint1, e),
2423e => Assert.Same(endpoint2, e));
2429Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
2431Assert.Same(catchAll, catchAll.Parameters);
2432Assert.Same(catchAll, catchAll.CatchAll);
2459Assert.Same(endpoint1, Assert.Single(a.Matches));
2465e => Assert.Same(endpoint1, e),
2466e => Assert.Same(endpoint2, e));
2472Assert.Same(endpoint1, Assert.Single(catchAll.Matches));
2474Assert.Same(catchAll, catchAll.Parameters);
2475Assert.Same(catchAll, catchAll.CatchAll);
2501Assert.Same(endpoint2, Assert.Single(a1.Matches));
2507e => Assert.Same(endpoint1, e),
2508e => Assert.Same(endpoint2, e));
2514Assert.Same(endpoint2, Assert.Single(catchAll1.Matches));
2516Assert.Same(catchAll1, catchAll1.Parameters);
2517Assert.Same(catchAll1, catchAll1.CatchAll);
2526e => Assert.Same(endpoint1, e));
2555Assert.Same(endpoint1, Assert.Single(a1.Matches));
2561e => Assert.Same(endpoint1, e),
2562e => Assert.Same(endpoint2, e));
2568Assert.Same(endpoint1, Assert.Single(catchAll1.Matches));
2570Assert.Same(catchAll1, catchAll1.Parameters);
2571Assert.Same(catchAll1, catchAll1.CatchAll);
2580e => Assert.Same(endpoint2, e));
2605Assert.Same(endpoint1, Assert.Single(a1.Matches));
2609Assert.Same(endpoint2, Assert.Single(b1.Matches));
2621e => Assert.Same(endpoint2, e));
2661Assert.Same(endpoint1, Assert.Single(test2_true.Matches));
2707Assert.Same(endpoint1, Assert.Single(test2_true.Matches));
2720Assert.Same(endpoint2, Assert.Single(test2_true.Matches));
2725Assert.Same(endpoint3, Assert.Single(test2_false.Matches));
2968Assert.Same(endpoint, Assert.Single(index.Matches));
2988Assert.Same(endpoint, Assert.Single(root.Matches));
2995Assert.Same(endpoint, Assert.Single(home.Matches));
3002Assert.Same(endpoint, Assert.Single(index.Matches));
3029Assert.Same(endpoint, Assert.Single(login.Matches));
3036Assert.Same(endpoint, Assert.Single(index.Matches));
3068Assert.Same(endpoint1, Assert.Single(root.Matches));
3075Assert.Same(endpoint1, Assert.Single(home.Matches));
3082Assert.Same(endpoint1, Assert.Single(homeIndex.Matches));
3086Assert.Same(endpoint1, Assert.Single(homeIndex.Parameters.Matches));
3090Assert.Same(endpoint2, Assert.Single(login.Matches));
3097Assert.Same(endpoint2, Assert.Single(loginIndex.Matches));
3101Assert.Same(endpoint2, Assert.Single(loginIndex.Parameters.Matches));
3105Assert.Same(endpoint3, Assert.Single(loginChangePassword.Matches));
3109Assert.Same(endpoint3, Assert.Single(loginChangePassword.Parameters.Matches));
3128Assert.Same(endpoint, Assert.Single(root.Matches));
3135Assert.Same(endpoint, Assert.Single(home.Matches));
3142Assert.Same(endpoint, Assert.Single(index.Matches));
3175Assert.Same(endpoint, Assert.Single(conventionalTransformer.Matches));
3181Assert.Same(endpoint, Assert.Single(index.Matches));
3185Assert.Same(endpoint, Assert.Single(index.Parameters.Matches));
3396Assert.Same(constraint1.Value, constraint2.Value);
3419Assert.Same(constraint1.Value, constraint2.Value);
Matching\DfaMatcherTest.cs (21)
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());
378Assert.Same(endpoint2, candidate.Endpoint);
431Assert.Same(endpoint1, candidate.Endpoint);
483Assert.Same(endpoint2, candidate.Endpoint);
536Assert.Same(endpoint1, candidate.Endpoint);
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));
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]);
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 (18)
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);
355Assert.Same(endpoint, matchWithRequiredValue.Entry.Data);
356Assert.Same(endpoint, namedMatch.Entry.Data);
377Assert.Same(endpoint, namedMatch.Entry.Data);
412Assert.Same(endpoint, Assert.Single(allMatches).Entry.Data);
Tree\LinkGenerationDecisionTreeTest.cs (21)
29Assert.Same(entry, Assert.Single(matches).Match);
49Assert.Same(entry, Assert.Single(matches).Match);
69Assert.Same(entry, Assert.Single(matches).Match);
90Assert.Same(entry, match.Match);
114Assert.Same(entry, match.Match);
138Assert.Same(entry, match.Match);
206Assert.Same(entry1, Assert.Single(matches).Match);
363m => { Assert.Same(entry2, m); });
390m => { Assert.Same(entry2, m); },
391m => { Assert.Same(entry1, m); });
418m => { Assert.Same(entry2, m); },
419m => { Assert.Same(entry1, m); });
446m => { Assert.Same(entry2, m); });
473m => { Assert.Same(entry2, m); },
474m => { Assert.Same(entry1, m); });
501m => { Assert.Same(entry2, m); },
502m => { Assert.Same(entry1, m); });
529m => { Assert.Same(entry1, m); });
556m => { Assert.Same(entry1, m); });
633m => { Assert.Same(entry2, m); });
660m => { Assert.Same(entry2, m); });
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 (10)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (102)
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,
Http1\Http1ConnectionTests.cs (11)
170Assert.Same(_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate, _http1Connection.MinRequestBodyDataRate);
180Assert.Same(_serviceContext.ServerOptions.Limits.MinResponseDataRate, _http1Connection.MinResponseDataRate);
334Assert.Same(minDataRate, _http1Connection.MinRequestBodyDataRate);
343Assert.Same(minDataRate, _http1Connection.MinResponseDataRate);
357Assert.Same(originalRequestHeaders, _http1Connection.RequestHeaders);
371Assert.Same(originalResponseHeaders, _http1Connection.ResponseHeaders);
390Assert.Same(originalRequestBody, _http1Connection.RequestBody);
391Assert.Same(originalResponseBody, _http1Connection.ResponseBody);
915Assert.Same(newRequestHeaders, _http1Connection.RequestHeaders);
919Assert.Same(newRequestHeaders, _http1Connection.RequestHeaders);
924Assert.Same(newRequestHeaders, _http1Connection.RequestHeaders);
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);
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);
884Assert.Same(options.CipherSuitesPolicy, clonedOptions.CipherSuitesPolicy);
896Assert.Same(options.RemoteCertificateValidationCallback, clonedOptions.RemoteCertificateValidationCallback);
900Assert.Same(options.ServerCertificate, clonedOptions.ServerCertificate);
903Assert.Same(options.ServerCertificateContext, clonedOptions.ServerCertificateContext);
906Assert.Same(options.ServerCertificateSelectionCallback, clonedOptions.ServerCertificateSelectionCallback);
909Assert.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 (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (5)
Microsoft.AspNetCore.Shared.Tests (27)
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);
Microsoft.AspNetCore.SignalR.Client.Tests (33)
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 (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (23)
Microsoft.AspNetCore.TestHost.Tests (1)
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 (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (162)
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\CodeGenTupleTest.cs (102)
3365Assert.Same(mFirst, mFirst.OriginalDefinition);
3369Assert.Same(mTuple, mFirst.ContainingSymbol);
3383Assert.Same(mItem1, mItem1.OriginalDefinition);
3387Assert.Same(mTuple, mItem1.ContainingSymbol);
3699Assert.Same(yType.TupleElements[1], yType.TupleElements[1].CorrespondingTupleField);
4505Assert.Same(vt2, unnamedTuple);
4507Assert.Same(vt2, unnamedTuple.ConstructedFrom);
4508Assert.Same(unnamedTuple, unnamedTuple.OriginalDefinition);
4509Assert.Same(unnamedTuple, unnamedTuple.TupleUnderlyingType);
4518Assert.Same(vt2, namedTuple.ConstructedFrom);
4519Assert.Same(vt2, namedTuple.OriginalDefinition);
4600Assert.Same(mItem1, mItem1.OriginalDefinition);
4605Assert.Same(mTuple, mItem1.ContainingSymbol);
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);
11163Assert.Same(m1Tuple.TupleUnderlyingType.ContainingSymbol, m1Tuple.ContainingSymbol);
11164Assert.Same(m1Tuple.ContainingSymbol, m1Tuple.ContainingSymbol);
11250Assert.Same(m1Tuple, m1Item1.ContainingSymbol);
11251Assert.Same(m1Tuple, m1Item1.TupleUnderlyingField.ContainingSymbol);
11271Assert.Same(m2Tuple, m2Item1.ContainingSymbol);
11272Assert.Same(m2Tuple, m2Item1.TupleUnderlyingField.ContainingSymbol);
11292Assert.Same(m2Tuple, m2a2.ContainingSymbol);
11293Assert.Same(m2Tuple, m2a2.TupleUnderlyingField.ContainingSymbol);
11424Assert.Same(m1Tuple.OriginalDefinition, m1Tuple.ConstructedFrom);
11426Assert.Same(m1Tuple.TupleUnderlyingType.ContainingSymbol, m1Tuple.ContainingSymbol);
11540Assert.Same(m1Item9, m1Item9.OriginalDefinition);
11545Assert.Same(m1Tuple, m1Item9.ContainingSymbol);
11546Assert.Same(m1Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Last().Type, m1Item9.TupleUnderlyingField.ContainingSymbol);
11556Assert.Same(m2Item9, m2Item9.OriginalDefinition);
11560Assert.Same(m2Tuple, m2Item9.ContainingSymbol);
11561Assert.Same(m2Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Last().Type, m2Item9.TupleUnderlyingField.ContainingSymbol);
11573Assert.Same(m2i2, m2i2.OriginalDefinition);
11577Assert.Same(m2Tuple, m2i2.ContainingSymbol);
11578Assert.Same(m2Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Last().Type, m2i2.TupleUnderlyingField.ContainingSymbol);
11774Assert.Same(m3Item8, m3Item8.OriginalDefinition);
11778Assert.Same(m3Tuple, m3Item8.ContainingSymbol);
11967Assert.Same(m4Item8, m4Item8.OriginalDefinition);
11971Assert.Same(m4Tuple, m4Item8.ContainingSymbol);
11986Assert.Same(m4h4, m4h4.OriginalDefinition);
11990Assert.Same(m4Tuple, m4h4.ContainingSymbol);
12214Assert.Same(m5Item8, m5Item8.OriginalDefinition);
12219Assert.Same(m5Tuple, m5Item8.ContainingSymbol);
12582Assert.Same(m8Item8, m8Item8.OriginalDefinition);
12587Assert.Same(m8Tuple, m8Item8.ContainingSymbol);
12602Assert.Same(m8Item1, m8Item1.OriginalDefinition);
12607Assert.Same(m8Tuple, m8Item1.ContainingSymbol);
12739Assert.Same(m1Tuple, m1Tuple);
12801Assert.Same(m1Tuple, m1Item1.ContainingSymbol);
12802Assert.Same(m1Tuple, m1Item1.TupleUnderlyingField.ContainingSymbol);
12820Assert.Same(m2Tuple, m2Item1.ContainingSymbol);
12821Assert.Same(m2Tuple, m2Item1.TupleUnderlyingField.ContainingSymbol);
12835Assert.Same(m2a2, m2a2.OriginalDefinition);
12839Assert.Same(m2Tuple, m2a2.ContainingSymbol);
12840Assert.Same(m2Tuple, m2a2.TupleUnderlyingField.ContainingSymbol);
12852Assert.Same(m1ToString, m1ToString.ConstructedFrom);
12855Assert.Same(m1Tuple, m1ToString.ContainingSymbol);
13533Assert.Same(m9Test, m9Test.ConstructedFrom);
13537Assert.Same(m9Test, m9Test.TypeParameters.Single().ContainingSymbol);
13538Assert.Same(m9Test, m9Test.Parameters.Single().ContainingSymbol);
15825Assert.Same(m1Tuple, m1P1.ContainingSymbol);
15855Assert.Same(m1Tuple, m1this.ContainingSymbol);
16056Assert.Same(m1Tuple, m1E1.ContainingSymbol);
16075Assert.Same(m1Tuple, m1E1BackingField.ContainingSymbol);
16087Assert.Same(m1Tuple, m1E2.ContainingSymbol);
20577Assert.Same(m2,
20579Assert.Same(m2,
27065Assert.Same(field, field.TupleUnderlyingField);
27067Assert.Same(toEmit, toEmit.TupleUnderlyingField);
27068Assert.Same(field.TupleUnderlyingField, toEmit);
27149Assert.Same(field, field.TupleUnderlyingField);
27151Assert.Same(toEmit, toEmit.TupleUnderlyingField);
27152Assert.Same(field.TupleUnderlyingField, toEmit);
27223Assert.Same(field, field.TupleUnderlyingField);
27225Assert.Same(toEmit, toEmit.TupleUnderlyingField);
27226Assert.Same(field.TupleUnderlyingField, toEmit);
27301Assert.Same(field, field.TupleUnderlyingField);
27303Assert.Same(toEmit, toEmit.TupleUnderlyingField);
27304Assert.Same(field.TupleUnderlyingField, toEmit);
28009Assert.Same(field, field.CorrespondingTupleField);
28287Assert.Same(item, item.TupleUnderlyingField);
28288Assert.Same(item, item.CorrespondingTupleField);
28455Assert.Same(item, item.CorrespondingTupleField);
28464Assert.Same(item, item.TupleUnderlyingField);
28571Assert.Same(field, field.TupleUnderlyingField);
28598Assert.Same(item1Underlying, item1Underlying.TupleUnderlyingField);
28605Assert.Same(item2Underlying, item2Underlying.TupleUnderlyingField);
28635Assert.Same(tuple, item1Underlying.ContainingType);
28646Assert.Same(item8Underlying, item8Underlying.TupleUnderlyingField);
28657Assert.Same(item9Underlying, item9Underlying.TupleUnderlyingField);
Emit\EmitMetadataTests.cs (31)
324Assert.Same(i1, classA.Interfaces().Single());
327Assert.Same(i2, interfaces[0]);
328Assert.Same(i3, interfaces[1]);
437Assert.Same(classA, method1Ret.ElementType);
439Assert.Same(classA, method2Ret.ElementType);
441Assert.Same(classA, method3Ret.ElementType);
450Assert.Same(module.GetCorLibType(SpecialType.System_Array), parameter1Type);
451Assert.Same(module.GetCorLibType(SpecialType.System_Boolean), m2.Parameters.Single().Type);
452Assert.Same(module.GetCorLibType(SpecialType.System_Char), m3.Parameters.Single().Type);
456Assert.Same(module.GetCorLibType(SpecialType.System_Void), m4.ReturnType);
457Assert.Same(module.GetCorLibType(SpecialType.System_SByte), method4ParamTypes[0]);
458Assert.Same(module.GetCorLibType(SpecialType.System_Single), method4ParamTypes[1]);
459Assert.Same(module.GetCorLibType(SpecialType.System_Double), method4ParamTypes[2]);
460Assert.Same(module.GetCorLibType(SpecialType.System_Int16), method4ParamTypes[3]);
461Assert.Same(module.GetCorLibType(SpecialType.System_Int32), method4ParamTypes[4]);
462Assert.Same(module.GetCorLibType(SpecialType.System_Int64), method4ParamTypes[5]);
463Assert.Same(module.GetCorLibType(SpecialType.System_IntPtr), method4ParamTypes[6]);
464Assert.Same(module.GetCorLibType(SpecialType.System_String), method4ParamTypes[7]);
465Assert.Same(module.GetCorLibType(SpecialType.System_Byte), method4ParamTypes[8]);
466Assert.Same(module.GetCorLibType(SpecialType.System_UInt16), method4ParamTypes[9]);
467Assert.Same(module.GetCorLibType(SpecialType.System_UInt32), method4ParamTypes[10]);
468Assert.Same(module.GetCorLibType(SpecialType.System_UInt64), method4ParamTypes[11]);
469Assert.Same(module.GetCorLibType(SpecialType.System_UIntPtr), method4ParamTypes[12]);
472Assert.Same(m5.TypeParameters[0], m5.Parameters[0].Type);
473Assert.Same(m5.TypeParameters[1], m5.Parameters[1].Type);
787Assert.Same(baseType.TypeArguments()[0], derivedType.TypeParameters[0]);
788Assert.Same(baseType.TypeArguments()[1], derivedType.TypeParameters[1]);
1136Assert.Same(overriddenProperty, propertyQ.OverriddenProperty);
1139Assert.Same(overriddenAccessor, propertyQ.SetMethod.OverriddenMethod);
1248Assert.Same(getMethodC.OverriddenMethod, getMethodA);
1421Assert.Same(fieldDefinition.GetInternalSymbol(), field); // Dev10: value__ field is the first field.
Emit\NoPiaEmbedTypes.cs (17)
1199Assert.Same(itest1, test2.Interfaces().Single());
1219Assert.Same(itest1, itest3.Interfaces().Single());
1256Assert.Same(itest8, module.GlobalNamespace.GetTypeMembers("UsePia1").Single().Interfaces().Single());
1309Assert.Same(f1, test9.GetMembers()[0]);
1310Assert.Same(f2, test9.GetMembers()[1]);
1584Assert.Same(p1.GetMethod, get_P1);
1585Assert.Same(p1.SetMethod, set_P1);
1593Assert.Same(p2.GetMethod, get_P2);
1594Assert.Same(p2.SetMethod, set_P2);
1601Assert.Same(p3.GetMethod, get_P3);
1615Assert.Same(p4.SetMethod, set_P4);
1626Assert.Same(e1.AddMethod, add_E1);
1627Assert.Same(e1.RemoveMethod, remove_E1);
1639Assert.Same(e2.AddMethod, add_E2);
1640Assert.Same(e2.RemoveMethod, remove_E2);
1755Assert.Same(itest28, t2.ConstraintTypes()[0]);
4403Assert.Same(m1, m1Impl.ExplicitInterfaceImplementations[0]);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (26)
Emit\EditAndContinue\SymbolMatcherTests.cs (18)
242Assert.Same(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol());
243Assert.Same(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol());
871Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol());
872Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol());
919Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol());
920Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol());
1185Assert.Same(x0, matcher.MapDefinition(x1.GetCciAdapter()).GetInternalSymbol());
1186Assert.Same(y0, matcher.MapDefinition(y1.GetCciAdapter()).GetInternalSymbol());
1187Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol());
1188Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol());
1189Assert.Same(p0, matcher.MapDefinition(p1.GetCciAdapter()).GetInternalSymbol());
1190Assert.Same(q0, matcher.MapDefinition(q1.GetCciAdapter()).GetInternalSymbol());
1191Assert.Same(e0, matcher.MapDefinition(e1.GetCciAdapter()).GetInternalSymbol());
1192Assert.Same(f0, matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol());
1221Assert.Same(f_0, matcher.MapDefinition(f_1.GetCciAdapter()).GetInternalSymbol());
1726Assert.Same(members0[i], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol());
1768Assert.Same(members0[i], matcher.MapDefinition(members1[i * 2].GetCciAdapter()).GetInternalSymbol());
1820Assert.Same(members0[i * 2], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (133)
PartialEventsAndConstructorsTests.cs (16)
1940Assert.Same(e, addMethod.AssociatedSymbol);
1941Assert.Same(e.PartialImplementationPart, addMethod.PartialImplementationPart.AssociatedSymbol);
1945Assert.Same(e, removeMethod.AssociatedSymbol);
1946Assert.Same(e.PartialImplementationPart, removeMethod.PartialImplementationPart.AssociatedSymbol);
2002Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
2003Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
2020Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
2021Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
2041Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
2042Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
2078Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
2079Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
2109Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
2110Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
2155Assert.Same(implSymbol, ((IMethodSymbol)defSymbol.ContainingSymbol).PartialImplementationPart!.Parameters.Single());
2156Assert.Same(defSymbol, ((IMethodSymbol)implSymbol.ContainingSymbol).PartialDefinitionPart!.Parameters.Single());
Semantics\ExtensionTests.cs (12)
164Assert.Same(symbol, symbol.OriginalDefinition);
165Assert.Same(symbol, symbol.ConstructedFrom);
249Assert.Same(symbol, symbol.OriginalDefinition);
250Assert.Same(symbol, symbol.ConstructedFrom);
263Assert.Same(symbol, constructed.OriginalDefinition);
264Assert.Same(symbol, constructed.ConstructedFrom);
270Assert.Same(symbol, unbound.OriginalDefinition);
271Assert.Same(symbol, unbound.ConstructedFrom);
2729Assert.Same(extensionParameter, model.GetDeclaredSymbol(parameterSyntaxes[0]));
2772Assert.Same(extensionParameter.Type, symbol.TypeParameters[0]);
2796Assert.Same(extensionParameter.Type, symbol.ContainingType.TypeParameters[0]);
47500Assert.Same(context.Node.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
Semantics\OutVarTests.cs (22)
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());
18831Assert.Same(mm, syntaxTreeModel.GetMemberModel(x1Decl));
18832Assert.Same(mm, syntaxTreeModel.GetMemberModel(x1Ref[0]));
18833Assert.Same(mm, syntaxTreeModel.GetMemberModel(x1Ref[1]));
32736Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)variableDesignationSyntax));
32748Assert.Same(symbol, symbols.Single());
32777Assert.Same(symbol, referenceInfo.Symbol);
32778Assert.Same(symbol, symbols.Single());
36023Assert.Same(initializerOperation.Parent.Parent, blockBodyOperation.Parent);
36047Assert.Same(blockBodyOperation.Parent, model.GetOperation(expressionBodySyntax).Parent);
36051Assert.Same(blockBodyOperation.Parent, model.GetOperation(declarationSyntax));
36168Assert.Same(expressionBodyOperation.Parent, blockBodyOperation.Parent);
36176Assert.Same(expressionBodyOperation.Parent, model.GetOperation(declarationSyntax));
36416Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single()));
36498Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single()));
36571Assert.Same(symbolInfo.Symbol, speculativeModel.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Where(l => l.Identifier.ValueText == "M2").Single()));
Semantics\PatternMatchingTestBase.cs (13)
84Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation));
93Assert.Same(symbol, other);
124Assert.Same(symbol, model.GetSymbolInfo(reference).Symbol);
125Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: designation.Identifier.ValueText).Single());
145Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation));
171Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)declarator));
185Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation));
196Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single());
210Assert.Same(symbol, other);
247Assert.Same(symbol, model.GetDeclaredSymbol((SyntaxNode)designation));
259Assert.Same(symbol, symbols.Single());
312Assert.Same(symbol, referenceInfo.Symbol);
313Assert.Same(symbol, symbols.Single());
Semantics\PrimaryConstructorTests.cs (33)
424Assert.Same(x, model.GetDeclaredSymbol(parameters[0]).GetSymbol());
427Assert.Same(y, model.GetDeclaredSymbol(parameters[1]).GetSymbol());
1014Assert.Same(symbol, model.LookupSymbols(x.SpanStart, name: "X").Single());
1081Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
1130Assert.Same(operation.Parent.Parent, model.GetOperation(baseWithargs.Parent.Parent));
1308Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
1321Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
1373Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1419Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1479Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1537Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
1548Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1626Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
1637Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1822Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1862Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
1975Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
2433Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
3803Assert.Same(literal.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
3829Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
3847Assert.Same(initializer.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
3878Assert.Same(baseType.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
3905Assert.Same(@class.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
5292Assert.Same(literal.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
5310Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
5328Assert.Same(initializer.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
5357Assert.Same(record.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
7834Assert.Same(symbol, model.LookupSymbols(p1.SpanStart, name: "p1").Single());
7843Assert.Same(symbol.GetSymbol(), capturedParameters.Single().Key);
20655Assert.Same(primaryConstructor, namedType.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol());
20689Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol());
20733Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol());
20830Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol());
Semantics\RecordTests.cs (21)
12449Assert.Same(accessor, parameter.ContainingSymbol);
21257Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
21307Assert.Same(operation.Parent.Parent, model.GetOperation(baseWithargs.Parent.Parent));
21486Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
21499Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
21551Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
21597Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
21657Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
21715Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
21726Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
21804Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
21815Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
22000Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
22037Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
22112Assert.Same("<global namespace>", model.GetEnclosingSymbol(x.SpanStart).ToTestDisplayString());
22191Assert.Same(symbol.ContainingSymbol, model.GetEnclosingSymbol(x.SpanStart));
26347Assert.Same(literal.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
26373Assert.Same(equalsValue.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
26391Assert.Same(initializer.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
26422Assert.Same(baseType.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
26445Assert.Same(record.SyntaxTree, context.ContainingSymbol!.DeclaringSyntaxReferences.Single().SyntaxTree);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (22)
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);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (259)
Semantics\NativeIntegerTests.cs (24)
230Assert.Same(type, type.ConstructedFrom);
245Assert.Same(type, type.ConstructedFrom);
260Assert.Same(underlyingType.ContainingSymbol, nativeIntegerType.ContainingSymbol);
261Assert.Same(underlyingType.Name, nativeIntegerType.Name);
268Assert.Same(underlyingType, nativeIntegerType.NativeIntegerUnderlyingType);
359Assert.Same(underlyingType.ContainingSymbol, nativeIntegerType.ContainingSymbol);
360Assert.Same(underlyingType.Name, nativeIntegerType.Name);
368Assert.Same(nativeIntegerType, underlyingType.AsNativeInteger());
369Assert.Same(underlyingType, nativeIntegerType.NativeIntegerUnderlyingType);
502Assert.Same(type, member.ContainingSymbol);
503Assert.Same(type, member.ContainingType);
543Assert.Same(type, member.ContainingSymbol);
544Assert.Same(type, member.ContainingType);
559Assert.Same(underlyingMember, getUnderlyingMember(member));
811Assert.Same(f1.Type, f3.Type);
812Assert.Same(f2.Type, f4.Type);
1101Assert.Same(t1B, f1.Type);
1102Assert.Same(t2B, f2.Type);
1103Assert.Same(f1.Type, f3.Type);
1104Assert.Same(f2.Type, f4.Type);
1632Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None)).NativeIntegerUnderlyingType);
1633Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated)).NativeIntegerUnderlyingType);
1634Assert.Same(underlyingType, ((INamedTypeSymbol)type.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.NotAnnotated)).NativeIntegerUnderlyingType);
1829Assert.Same(getMethod, property.GetMethod);
Semantics\NullableReferenceTypesTests.cs (24)
3703Assert.Same(symbol1, symbol2);
17032Assert.Same(m2,
17034Assert.Same(m2,
17111Assert.Same(m2,
17113Assert.Same(m2,
17434Assert.Same(method,
17437Assert.Same(method,
17440Assert.Same(method,
17515Assert.Same(method,
17518Assert.Same(method,
17599Assert.Same(method,
17602Assert.Same(method,
17680Assert.Same(method,
17683Assert.Same(method,
98848Assert.Same(m, nullableAttribute.AttributeClass.ContainingModule);
104973Assert.Same(m, nullableAttribute.AttributeClass.ContainingModule);
115891Assert.Same(i2.OriginalDefinition, iDefinition);
115930Assert.Same(i4.OriginalDefinition, iDefinition);
138594Assert.Same(im, cme.OriginalDefinition);
138632Assert.Same(im, cme.OriginalDefinition);
138666Assert.Same(im, cme.OriginalDefinition);
138700Assert.Same(im, cme.OriginalDefinition);
138743Assert.Same(im, cme.OriginalDefinition);
138785Assert.Same(im, cme.OriginalDefinition);
Semantics\TopLevelStatementsTests.cs (138)
50Assert.Same(entryPoint, comp.GetEntryPoint(default));
63Assert.Same(entryPoint, parameter.ContainingSymbol);
200Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single());
238Assert.Same(declSymbol.ContainingSymbol, model1.GetDeclaredSymbol(unit1));
239Assert.Same(declSymbol.ContainingSymbol, model1.GetDeclaredSymbol((SyntaxNode)unit1));
240Assert.Same(refSymbol, declSymbol);
243Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
362Assert.Same(declSymbol.ContainingSymbol, declMethod);
366Assert.Same(declSymbol, model2.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
487Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
496Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single());
539Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
547Assert.Same(declSymbol, refSymbol);
550Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single());
579Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
588Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single());
594Assert.Same(declSymbol, refSymbol);
597Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single());
703Assert.Same(local, model.GetSymbolInfo(reference).Symbol);
874Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol);
880Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol);
988Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").First()).Symbol);
992Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Skip(1).Single()).Symbol);
1043Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol);
1693Assert.Same(getHashCode, model1.LookupSymbols(localDecl.SpanStart, name: getHashCode.Name).Single());
1698Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
1703Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single());
1711Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol);
1720Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
1731Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1735Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
1741Assert.Same(declSymbol, model.GetSymbolInfo(nameRef).Symbol);
1746Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
1751Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
1757Assert.Same(declSymbol, model.GetSymbolInfo(nameRef).Symbol);
1768Assert.Same(declSymbol, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1773Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single());
1866Assert.Same(getHashCode, model1.LookupSymbols(localDecl.SpanStart, name: getHashCode.Name).Single());
1871Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
1876Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single());
1888Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
1899Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1903Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
1909Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol);
1914Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
1919Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
1925Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol);
1936Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1941Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single());
2094Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
2099Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single());
2106Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2114Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2118Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2123Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol);
2128Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2133Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2138Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol);
2149Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2154Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single());
2258Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
2263Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single());
2272Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
2280Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2284Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
2289Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol);
2294Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
2299Assert.Same(testType, model2.GetSymbolInfo(nameRef).Symbol);
2304Assert.Same(declSymbol, model2.GetSymbolInfo(nameRef).Symbol);
2315Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2320Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single());
2437Assert.Same(testType, model1.LookupSymbols(labelDecl.SpanStart, name: "Test").Single());
2442Assert.Same(testType, model1.LookupNamespacesAndTypes(labelDecl.SpanStart, name: "Test").Single());
2444Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart).Single());
2445Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart, name: "Test").Single());
2452Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2460Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2466Assert.Same(declSymbol, model1.GetSymbolInfo(nameRef).Symbol);
2475Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2476Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart).Single());
2477Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart, name: "Test").Single());
2481Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2491Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2496Assert.Same(testType, model1.GetSymbolInfo(nameRef).Symbol);
2512Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2517Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single());
3947Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
3954Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
3968Assert.Same(parameter, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
3973Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single());
3977Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
3982Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
3987Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
3992Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
3997Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4008Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4013Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single());
4096Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4103Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4107Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4112Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4117Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4122Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4127Assert.Same(testType, model.GetSymbolInfo(nameRef).Symbol);
4138Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4143Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single());
4220Assert.Same(local, model.GetSymbolInfo(reference).Symbol);
4513Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol);
4519Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol);
4577Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").First()).Symbol);
4581Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Skip(1).Single()).Symbol);
4626Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol);
4898Assert.Same(label, model.GetSymbolInfo(reference).Symbol);
4953Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol);
4960Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol);
4983Assert.Same(label, model.GetSymbolInfo(reference).Symbol);
6041Assert.Same(declSymbol, refSymbol);
6044Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single());
6283Assert.Same(x, semanticModel.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6284Assert.Same(x, semanticModel.GetSymbolInfo(localRef).Symbol);
6285Assert.Same(x, semanticModel.LookupSymbols(localRef.SpanStart, name: "x").Single());
6328Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6330Assert.Same(xRef, semanticModel1.LookupSymbols(localRef.SpanStart, name: "x").Single());
6333Assert.Same(xDecl, xRef);
6379Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6385Assert.Same(xRef, semanticModel2.LookupSymbols(localRef.SpanStart, name: "x").Single());
6387Assert.Same(xDecl, xRef);
6456Assert.Same(globalStatement.SyntaxTree, context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree);
6463Assert.Same(mm, syntaxTreeModel.GetMemberModel(globalStatement.Statement));
6722Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().SyntaxTree, context.Operation.Syntax.SyntaxTree);
6743Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().GetSyntax(), context.Operation.Syntax);
6941Assert.Same(mm, syntaxTreeModel.GetMemberModel(unit));
7009Assert.Same(mm, syntaxTreeModel.GetMemberModel(unit));
7095Assert.Same(mm, syntaxTreeModel.GetMemberModel(node));
7421Assert.Same(context.ContainingSymbol.DeclaringSyntaxReferences.Single().GetSyntax(), context.Operation.Syntax);
9053Assert.Same(entryPoint, comp.GetEntryPoint(default));
9108Assert.Same(entryPoint, comp.GetEntryPoint(default));
9150Assert.Same(entryPoint, comp.GetEntryPoint(default));
SourceGeneration\GeneratorDriverTests.cs (11)
766Assert.Same(oldDriver, driver);
811Assert.Same(parseOptions, passedOptions);
1148Assert.Same(rootFromGetRoot, rootFromTryGetRoot);
4383Assert.Same(generator, sourceGenerator);
4394Assert.Same(generator.GetType(), type);
4405Assert.Same(generator, incrementalGenerator);
4416Assert.Same(generator.GetType(), type);
4630Assert.Same(newParseOptions, result.GeneratedTrees[0].Options);
4631Assert.Same(parseOptions, result.GeneratedTrees[1].Options);
4638Assert.Same(newParseOptions, result.GeneratedTrees[0].Options);
4639Assert.Same(newParseOptions, result.GeneratedTrees[1].Options);
Utilities\ValueSetTests.cs (23)
399Assert.Same(t, q);
401Assert.Same(b.Intersect(b), b);
402Assert.Same(b.Union(b), b);
421Assert.Same(b.Intersect(b), b);
422Assert.Same(b.Union(b), b);
431Assert.Same(s1, s1.Intersect(s1));
432Assert.Same(s1, s1.Union(s1));
492Assert.Same(ForByte, ForSpecialType(SpecialType.System_Byte));
493Assert.Same(ForSByte, ForSpecialType(SpecialType.System_SByte));
494Assert.Same(ForShort, ForSpecialType(SpecialType.System_Int16));
495Assert.Same(ForUShort, ForSpecialType(SpecialType.System_UInt16));
496Assert.Same(ForInt, ForSpecialType(SpecialType.System_Int32));
497Assert.Same(ForUInt, ForSpecialType(SpecialType.System_UInt32));
498Assert.Same(ForLong, ForSpecialType(SpecialType.System_Int64));
499Assert.Same(ForULong, ForSpecialType(SpecialType.System_UInt64));
500Assert.Same(ForFloat, ForSpecialType(SpecialType.System_Single));
501Assert.Same(ForDouble, ForSpecialType(SpecialType.System_Double));
502Assert.Same(ForString, ForSpecialType(SpecialType.System_String));
503Assert.Same(ForDecimal, ForSpecialType(SpecialType.System_Decimal));
504Assert.Same(ForChar, ForSpecialType(SpecialType.System_Char));
505Assert.Same(ForBool, ForSpecialType(SpecialType.System_Boolean));
506Assert.Same(ForNint, ForSpecialType(SpecialType.System_IntPtr, isNative: true));
507Assert.Same(ForNuint, ForSpecialType(SpecialType.System_UIntPtr, isNative: true));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1780)
Compilation\CompilationAPITests.cs (22)
598Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[0]));
599Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd1[1]));
600Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd2[0]));
601Assert.Same(NetFramework.MicrosoftVisualBasic, c.GetDirectiveReference(rd2[1]));
602Assert.Same(NetFramework.MicrosoftCSharp, c.GetDirectiveReference(rd3[0]));
1660Assert.Same(CSharpCompilation.EntryPoint.None, compilation.GetEntryPointAndDiagnostics(default(CancellationToken)));
1676Assert.Same(CSharpCompilation.EntryPoint.None, compilation.GetEntryPointAndDiagnostics(default(CancellationToken)));
1733Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfT.ContainingAssembly);
1734Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfObject.ContainingAssembly);
1755Assert.Same(firstCompilation.ObjectType, secondCompilation.ObjectType);
3477Assert.Same(comp.Assembly.GetPublicSymbol(), types[0].ContainingAssembly);
3481Assert.Same(types[1].ContainingAssembly, assembly1);
3507Assert.Same(types[0].ContainingAssembly, assembly1);
3537Assert.Same(types[0].ContainingAssembly, assembly1);
3540Assert.Same(types[1].ContainingAssembly, assembly2);
3572Assert.Same(comp.Assembly.GetPublicSymbol(), types[0].ContainingAssembly);
3577Assert.Same(types[1].ContainingAssembly, assembly1);
3580Assert.Same(types[2].ContainingAssembly, assembly2);
3614Assert.Same(types[0].ContainingAssembly, current.Assembly.GetPublicSymbol());
3617Assert.Same(types[1].ContainingAssembly, corlibAssembly);
3620Assert.Same(types[2].ContainingAssembly, otherAssembly);
3647Assert.Same(type.ContainingAssembly, corlibAssembly);
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);
DeclarationTests.cs (12)
415Assert.Same(type1.MergedDeclaration.Declarations[0].MemberNames, type2.MergedDeclaration.Declarations[0].MemberNames);
468Assert.Same(type1.MergedDeclaration.Declarations[0].MemberNames, type2.MergedDeclaration.Declarations[0].MemberNames);
511Assert.Same(type1.MergedDeclaration.Declarations[0].MemberNames, type2.MergedDeclaration.Declarations[0].MemberNames);
570Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
571Assert.Same(type1b.MergedDeclaration.Declarations[0].MemberNames, type2b.MergedDeclaration.Declarations[0].MemberNames);
625Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
668Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
711Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
758Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
803Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
848Assert.Same(type1a.MergedDeclaration.Declarations[0].MemberNames, type2a.MergedDeclaration.Declarations[0].MemberNames);
878Assert.Same(type1.MergedDeclaration.Declarations[0].MemberNames, type2.MergedDeclaration.Declarations[0].MemberNames);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (21)
54Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseProperty.OverriddenOrHiddenMembers);
57Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseGetter.OverriddenOrHiddenMembers);
60Assert.Same(OverriddenOrHiddenMembersResult.Empty, baseSetter.OverriddenOrHiddenMembers);
65Assert.Same(baseProperty, derivedPropertyOverriddenOrHidden.OverriddenMembers.Single());
66Assert.Same(baseProperty, derivedProperty.OverriddenProperty);
70Assert.Same(baseGetter, derivedGetterOverriddenOrHidden.OverriddenMembers.Single());
71Assert.Same(baseGetter, derivedGetter.OverriddenMethod);
75Assert.Same(baseSetter, derivedSetterOverriddenOrHidden.OverriddenMembers.Single());
76Assert.Same(baseSetter, derivedSetter.OverriddenMethod);
120Assert.Same(baseProperty, derived1PropertyOverriddenOrHidden.OverriddenMembers.Single());
124Assert.Same(baseGetter, derived1GetterOverriddenOrHidden.OverriddenMembers.Single());
128Assert.Same(derived1Property, derived2PropertyOverriddenOrHidden.OverriddenMembers.Single());
132Assert.Same(baseSetter, derived2SetterOverriddenOrHidden.OverriddenMembers.Single());
166Assert.Same(baseProperty, derivedPropertyOverriddenOrHidden.HiddenMembers.Single());
170Assert.Same(baseGetter, derivedGetterOverriddenOrHidden.HiddenMembers.Single());
174Assert.Same(baseSetter, derivedSetterOverriddenOrHidden.HiddenMembers.Single());
225Assert.Same(baseProperty, derived1PropertyOverriddenOrHidden.HiddenMembers.Single());
229Assert.Same(baseGetter, derived1GetterOverriddenOrHidden.HiddenMembers.Single());
233Assert.Same(derived1Property, derived2PropertyOverriddenOrHidden.OverriddenMembers.Single());
356Assert.Same(csharpGetter, bridge.ImplementingMethod);
357Assert.Same(ilGetter, bridge.ExplicitInterfaceImplementations.Single());
Symbols\CompilationCreationTests.cs (301)
121Assert.Same(cyclic2Mod.GetReferencedAssemblySymbols()[1], cyclic1Asm);
122Assert.Same(cyclic1Mod.GetReferencedAssemblySymbols()[1], cyclic2Asm);
151Assert.Same(asm2[0], asm1[0]);
155Assert.Same(((PEAssemblySymbol)asm2[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly);
165Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
181Assert.Same(asm3[0], asm1[0]);
186Assert.Same(((PEAssemblySymbol)asm3[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly);
196Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
217Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
222Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
227Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
239Assert.Same(asm3[0], asm1[0]);
245Assert.Same(((PEAssemblySymbol)asm4[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly);
255Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
268Assert.Same(((PEAssemblySymbol)asm4[3]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly);
280Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
285Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
290Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
305Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
310Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
315Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
320Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
325Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
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);
379Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
382Assert.Same(((PEAssemblySymbol)asm7[3]).Assembly, ((PEAssemblySymbol)asm4[4]).Assembly);
406Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
411Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
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);
476Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
483Assert.Same(asm3[0], asm1[0]);
488Assert.Same(((PEAssemblySymbol)asm3[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly);
498Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
519Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
524Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
529Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
531Assert.Same(asm3[0], asm1[0]);
537Assert.Same(((PEAssemblySymbol)asm4[1]).Assembly, ((PEAssemblySymbol)asm1[1]).Assembly);
547Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
560Assert.Same(((PEAssemblySymbol)asm4[3]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly);
572Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
577Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
582Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
597Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
602Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
607Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
612Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
617Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
619Assert.Same(asm7[0], asm1[0]);
620Assert.Same(asm7[1], asm1[1]);
626Assert.Same(((PEAssemblySymbol)asm7[2]).Assembly, ((PEAssemblySymbol)asm3[3]).Assembly);
645Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
648Assert.Same(((PEAssemblySymbol)asm7[3]).Assembly, ((PEAssemblySymbol)asm4[4]).Assembly);
672Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
677Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
720Assert.Same(asm_MTTestLib2[0], asm_MTTestLib1_V1[0]);
721Assert.Same(asm_MTTestLib2[1], varC_MTTestLib1_V1.SourceAssembly());
734Assert.Same(asm2[0], asm_MTTestLib1_V1[0]);
735Assert.Same(asm2[1], varC_MTTestLib2.SourceAssembly());
736Assert.Same(asm2[2], varC_MTTestLib1_V1.SourceAssembly());
748Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
812Assert.Same(asm_MTTestLib3[0], asm_MTTestLib1_V1[0]);
828Assert.Same(asm3[0], asm_MTTestLib1_V1[0]);
829Assert.Same(asm3[1], asm_MTTestLib3[1]);
830Assert.Same(asm3[2], asm_MTTestLib3[2]);
831Assert.Same(asm3[3], varC_MTTestLib3.SourceAssembly());
834Assert.Same(((RetargetingAssemblySymbol)asm3[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
844Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
865Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
870Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
875Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
947Assert.Same(asm_MTTestLib4[0], asm_MTTestLib1_V1[0]);
949Assert.Same(asm_MTTestLib4[2], varC_MTTestLib1_V3.SourceAssembly());
965Assert.Same(asm4[0], asm_MTTestLib1_V1[0]);
966Assert.Same(asm4[1], asm_MTTestLib4[1]);
967Assert.Same(asm4[2], asm_MTTestLib4[2]);
968Assert.Same(asm4[3], asm_MTTestLib4[3]);
969Assert.Same(asm4[4], varC_MTTestLib4.SourceAssembly());
975Assert.Same(((RetargetingAssemblySymbol)asm4[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
985Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
998Assert.Same(((RetargetingAssemblySymbol)asm4[3]).UnderlyingAssembly, asm3[3]);
1010Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1015Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1020Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1035Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1040Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1045Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
1050Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1055Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
1063Assert.Same(asm5[0], asm2[0]);
1072Assert.Same(asm6[0], asm2[0]);
1081Assert.Same(asm7[0], asm2[0]);
1088Assert.Same(((RetargetingAssemblySymbol)asm7[2]).UnderlyingAssembly, asm3[3]);
1108Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1111Assert.Same(((RetargetingAssemblySymbol)asm7[3]).UnderlyingAssembly, asm4[4]);
1135Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1140Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
1149Assert.Same(asm8[0], asm2[0]);
1151Assert.Same(asm8[2], asm7[1]);
1153Assert.Same(asm8[3], asm7[2]);
1155Assert.Same(asm8[1], asm7[3]);
1163Assert.Same(asm9[0], asm2[0]);
1177Assert.Same(asm10[0], asm2[0]);
1178Assert.Same(asm10[1], asm4[1]);
1179Assert.Same(asm10[2], asm4[2]);
1180Assert.Same(asm10[3], asm4[3]);
1181Assert.Same(asm10[4], asm4[4]);
1184Assert.Same(asm2[0], asm_MTTestLib1_V1[0]);
1196Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
1203Assert.Same(asm_MTTestLib3[0], asm_MTTestLib1_V1[0]);
1207Assert.Same(asm3[0], asm_MTTestLib1_V1[0]);
1208Assert.Same(asm3[1], asm_MTTestLib3[1]);
1209Assert.Same(asm3[2], asm_MTTestLib3[2]);
1210Assert.Same(asm3[3], varC_MTTestLib3.SourceAssembly());
1213Assert.Same(((RetargetingAssemblySymbol)asm3[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1223Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1244Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1249Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
1254Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
1256Assert.Same(asm4[0], asm_MTTestLib1_V1[0]);
1257Assert.Same(asm4[1], asm_MTTestLib4[1]);
1258Assert.Same(asm4[2], asm_MTTestLib4[2]);
1259Assert.Same(asm4[3], asm_MTTestLib4[3]);
1260Assert.Same(asm4[4], varC_MTTestLib4.SourceAssembly());
1266Assert.Same(((RetargetingAssemblySymbol)asm4[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1276Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1289Assert.Same(((RetargetingAssemblySymbol)asm4[3]).UnderlyingAssembly, asm3[3]);
1301Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1306Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1311Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1326Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1331Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1336Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
1341Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1346Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
1348Assert.Same(asm5[0], asm2[0]);
1351Assert.Same(asm6[0], asm2[0]);
1354Assert.Same(asm7[0], asm2[0]);
1361Assert.Same(((RetargetingAssemblySymbol)asm7[2]).UnderlyingAssembly, asm3[3]);
1381Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1384Assert.Same(((RetargetingAssemblySymbol)asm7[3]).UnderlyingAssembly, asm4[4]);
1408Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1413Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
1441Assert.Same(asm2[0], asm_MTTestLib2[0]);
1442Assert.Same(asm2[1], varC_MTTestLib2.SourceAssembly());
1443Assert.Same(asm2[2], asm_MTTestLib2[1]);
1454Assert.Same(retval1, asm2[1].GlobalNamespace.GetTypeMembers("Class4").
1459Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
1481Assert.Same(asm_MTTestLib3[0], asm_MTTestLib2[0]);
1498Assert.Same(asm3[0], asm_MTTestLib2[0]);
1499Assert.Same(asm3[1], asm_MTTestLib3[1]);
1500Assert.Same(asm3[2], asm_MTTestLib3[2]);
1501Assert.Same(asm3[3], varC_MTTestLib3.SourceAssembly());
1504Assert.Same(((RetargetingAssemblySymbol)asm3[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1513Assert.Same(retval2, asm3[1].GlobalNamespace.GetTypeMembers("Class4").
1518Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1539Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1544Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
1549Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
1567Assert.Same(asm_MTTestLib4[0], asm_MTTestLib2[0]);
1586Assert.Same(asm4[0], asm_MTTestLib2[0]);
1587Assert.Same(asm4[1], asm_MTTestLib4[1]);
1588Assert.Same(asm4[2], asm_MTTestLib4[2]);
1589Assert.Same(asm4[3], asm_MTTestLib4[3]);
1590Assert.Same(asm4[4], varC_MTTestLib4.SourceAssembly());
1596Assert.Same(((RetargetingAssemblySymbol)asm4[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1606Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1619Assert.Same(((RetargetingAssemblySymbol)asm4[3]).UnderlyingAssembly, asm3[3]);
1631Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1636Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1641Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1656Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1661Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1666Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
1671Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1676Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
1687Assert.Same(asm5[0], asm2[0]);
1699Assert.Same(asm6[0], asm2[0]);
1713Assert.Same(asm7[0], asm2[0]);
1720Assert.Same(((RetargetingAssemblySymbol)asm7[2]).UnderlyingAssembly, asm3[3]);
1739Assert.Same(missingAssembly, retval16.ContainingAssembly);
1744Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1747Assert.Same(((RetargetingAssemblySymbol)asm7[3]).UnderlyingAssembly, asm4[4]);
1762Assert.Same(retval18.ContainingAssembly, retval19.ContainingAssembly);
1766Assert.Same(retval18.ContainingAssembly, retval20.ContainingAssembly);
1771Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
1776Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
1790Assert.Same(asm8[0], asm2[0]);
1792Assert.Same(asm8[2], asm7[1]);
1794Assert.Same(asm8[3], asm7[2]);
1796Assert.Same(asm8[1], asm7[3]);
1807Assert.Same(asm9[0], asm2[0]);
1823Assert.Same(asm10[0], asm2[0]);
1824Assert.Same(asm10[1], asm4[1]);
1825Assert.Same(asm10[2], asm4[2]);
1826Assert.Same(asm10[3], asm4[3]);
1827Assert.Same(asm10[4], asm4[4]);
1830Assert.Same(asm2[0], asm_MTTestLib2[0]);
1842Assert.Same(retval1, asm2[2].GlobalNamespace.GetMembers("Class1").Single());
1849Assert.Same(asm_MTTestLib3[0], asm_MTTestLib2[0]);
1853Assert.Same(asm3[0], asm_MTTestLib2[0]);
1854Assert.Same(asm3[1], asm_MTTestLib3[1]);
1855Assert.Same(asm3[2], asm_MTTestLib3[2]);
1856Assert.Same(asm3[3], varC_MTTestLib3.SourceAssembly());
1859Assert.Same(((RetargetingAssemblySymbol)asm3[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1869Assert.Same(retval2, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1890Assert.Same(retval3, asm3[2].GlobalNamespace.GetMembers("Class1").Single());
1895Assert.Same(retval4, asm3[2].GlobalNamespace.GetMembers("Class2").Single());
1900Assert.Same(retval5, asm3[1].GlobalNamespace.GetMembers("Class4").Single());
1902Assert.Same(asm4[0], asm_MTTestLib2[0]);
1903Assert.Same(asm4[1], asm_MTTestLib4[1]);
1904Assert.Same(asm4[2], asm_MTTestLib4[2]);
1905Assert.Same(asm4[3], asm_MTTestLib4[3]);
1906Assert.Same(asm4[4], varC_MTTestLib4.SourceAssembly());
1912Assert.Same(((RetargetingAssemblySymbol)asm4[1]).UnderlyingAssembly, varC_MTTestLib2.SourceAssembly());
1922Assert.Same(retval6, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1935Assert.Same(((RetargetingAssemblySymbol)asm4[3]).UnderlyingAssembly, asm3[3]);
1947Assert.Same(retval7, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1952Assert.Same(retval8, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1957Assert.Same(retval9, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1972Assert.Same(retval10, asm4[2].GlobalNamespace.GetMembers("Class1").Single());
1977Assert.Same(retval11, asm4[2].GlobalNamespace.GetMembers("Class2").Single());
1982Assert.Same(retval12, asm4[2].GlobalNamespace.GetMembers("Class3").Single());
1987Assert.Same(retval13, asm4[1].GlobalNamespace.GetMembers("Class4").Single());
1992Assert.Same(retval14, asm4[3].GlobalNamespace.GetMembers("Class5").Single());
1994Assert.Same(asm5[0], asm2[0]);
1997Assert.Same(asm6[0], asm2[0]);
2000Assert.Same(asm7[0], asm2[0]);
2007Assert.Same(((RetargetingAssemblySymbol)asm7[2]).UnderlyingAssembly, asm3[3]);
2024Assert.Same(missingAssembly, retval16.ContainingAssembly);
2029Assert.Same(retval17, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
2032Assert.Same(((RetargetingAssemblySymbol)asm7[3]).UnderlyingAssembly, asm4[4]);
2047Assert.Same(retval18.ContainingAssembly, retval19.ContainingAssembly);
2051Assert.Same(retval18.ContainingAssembly, retval20.ContainingAssembly);
2056Assert.Same(retval21, asm7[1].GlobalNamespace.GetMembers("Class4").Single());
2061Assert.Same(retval22, asm7[2].GlobalNamespace.GetMembers("Class5").Single());
2265Assert.Same(((RetargetingAssemblySymbol)asm5[1]).UnderlyingAssembly, asm3);
2266Assert.Same(asm5[2], asm1_V2);
2267Assert.Same(asm5[3], asm4_V2);
2268Assert.Same(asm5[4], asm7);
2286Assert.Same(retval1.OriginalDefinition, type2);
2291Assert.Same(params1[0], type1.TypeParameters[0]);
2292Assert.Same(params1[1].OriginalDefinition, type2.TypeParameters[0].OriginalDefinition);
2294Assert.Same(args1[0], type3);
2295Assert.Same(args1[0].ContainingAssembly, asm5[1]);
2296Assert.Same(args1[1], type4);
2301Assert.Same(retval2.OriginalDefinition, type1);
2310Assert.Same(retval3.OriginalDefinition, type6);
2311Assert.Same(retval3.ContainingAssembly, asm5[1]);
2316Assert.Same(params3[0], type6.TypeParameters[0]);
2317Assert.Same(params3[0].ContainingAssembly, asm5[1]);
2318Assert.Same(args3[0], type4);
2325Assert.Same(retval4,
2335Assert.Same(localC3Foo2, ((RetargetingMethodSymbol)foo2).UnderlyingMethod);
2340Assert.Same(localC3Foo2.Parameters[0], ((RetargetingParameterSymbol)foo2Params[0]).UnderlyingParameter);
2341Assert.Same(localC3Foo2.Parameters[1], ((RetargetingParameterSymbol)foo2Params[1]).UnderlyingParameter);
2342Assert.Same(localC3Foo2.Parameters[2], ((RetargetingParameterSymbol)foo2Params[2]).UnderlyingParameter);
2343Assert.Same(localC3Foo2.Parameters[3], ((RetargetingParameterSymbol)foo2Params[3]).UnderlyingParameter);
2353Assert.Same(asm5[1], x1.ContainingAssembly);
2354Assert.Same(foo2, x1.ContainingSymbol);
2365Assert.Same(localC3Foo2.Parameters[2].Type, x3.Type);
2373Assert.Same(asm5[1], foo2.ContainingAssembly);
2374Assert.Same(type3, foo2.ContainingSymbol);
2401Assert.Same(foo3TypeParams[0], foo3.TypeArgumentsWithAnnotations[0].Type);
2427Assert.Same(typeC301, type3.GetTypeMembers("C301", 0).Single());
2454Assert.Same(localC6Params[0], typeC6.TypeArguments()[0]);
2456Assert.Same(((RetargetingNamedTypeSymbol)type3).UnderlyingNamedType,
2469Assert.Same(type4, foo3TypeParam.ConstraintTypes().Single());
2471Assert.Same(typeC6, localC6_T.ContainingSymbol);
2486Assert.Same(((RetargetingTypeParameterSymbol)localC6_T).UnderlyingTypeParameter,
2496Assert.Same(ns1.GetTypeMembers("C304").Single(), ns1.GetTypeMembers("C304", 0).Single());
2498Assert.Same(asm5[1].Modules[0], asm5[1].Modules[0].GlobalNamespace.ContainingSymbol);
2499Assert.Same(asm5[1].Modules[0].GlobalNamespace, ns1.ContainingSymbol);
2500Assert.Same(asm5[1].Modules[0], ns1.Extent.Module);
2502Assert.Same(ns1, ns1.ConstituentNamespaces[0]);
2506Assert.Same(asm3.Modules[0].GlobalNamespace,
2508Assert.Same(asm3.Modules[0].GlobalNamespace.GetMembers("ns1").Single(),
2516Assert.Same(asm5[1], module3.ContainingSymbol);
2517Assert.Same(asm5[1], module3.ContainingAssembly);
2526Assert.Same(asm5[1], typeC5.BaseType().ContainingAssembly);
2579Assert.Same(module1.Module, module2.Module);
2586Assert.Same(module2, m1.ReturnType.ContainingModule);
2587Assert.Same(module2, m2.ReturnType.ContainingModule);
2588Assert.Same(module2, m3.ReturnType.ContainingModule);
Symbols\DefaultInterfaceImplementationTests.cs (405)
218Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1));
229Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1));
591Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1));
592Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2));
689Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1));
690Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2));
976Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1051Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1290Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1291Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
1374Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1375Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
1595Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1629Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
1685Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
1786Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1826Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
1883Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
1917Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
1935Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
2114Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
2188Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
2210Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1));
2731Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
2735Assert.Same(p1.GetMethod, test1.FindImplementationForInterfaceMember(p1.GetMethod));
2740Assert.Same(p1.SetMethod, test1.FindImplementationForInterfaceMember(p1.SetMethod));
2750Assert.Same(p1, test2.FindImplementationForInterfaceMember(p1));
2755Assert.Same(getP1, test2.FindImplementationForInterfaceMember(getP1));
2761Assert.Same(setP1, test2.FindImplementationForInterfaceMember(setP1));
3418Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
3419Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1));
3420Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1));
3573Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
3574Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1));
3575Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1));
3766Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1));
3767Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2));
3768Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3));
3769Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4));
3770Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5));
3771Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6));
3772Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7));
3773Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8));
3775Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod));
3776Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod));
3777Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod));
3778Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod));
3779Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod));
3780Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod));
3781Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod));
3782Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod));
3783Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod));
3784Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod));
4346Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1));
4347Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3));
4348Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5));
4349Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7));
4369Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod));
4370Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod));
4371Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod));
4372Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod));
4373Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod));
5272Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
5273Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1));
5274Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1));
5325Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
5326Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1));
5327Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1));
5429Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1));
5430Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2));
5431Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3));
5432Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4));
5433Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5));
5434Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6));
5435Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7));
5436Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8));
5438Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod));
5439Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod));
5440Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod));
5441Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod));
5442Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod));
5443Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod));
5444Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod));
5445Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod));
5446Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod));
5447Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod));
5903Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1));
5904Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3));
5905Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5));
5906Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7));
5926Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod));
5927Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod));
5928Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod));
5929Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod));
5930Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod));
6452Assert.Same(e1, test1.FindImplementationForInterfaceMember(e1));
6456Assert.Same(addE1, test1.FindImplementationForInterfaceMember(addE1));
6461Assert.Same(rmvE1, test1.FindImplementationForInterfaceMember(rmvE1));
6471Assert.Same(e1, test2.FindImplementationForInterfaceMember(e1));
6476Assert.Same(addP1, test2.FindImplementationForInterfaceMember(addP1));
6482Assert.Same(rmvP1, test2.FindImplementationForInterfaceMember(rmvP1));
6978Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7));
6979Assert.Same(e8, derived.FindImplementationForInterfaceMember(e8));
6981Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod));
6982Assert.Same(e8.AddMethod, derived.FindImplementationForInterfaceMember(e8.AddMethod));
6983Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod));
6984Assert.Same(e8.RemoveMethod, derived.FindImplementationForInterfaceMember(e8.RemoveMethod));
7384Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7));
7395Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod));
7396Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod));
8797Assert.Same(test1.GetMember(methodName), test1.FindImplementationForInterfaceMember(m1));
8997Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
9137Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
9359Assert.Same(implementation, test1.FindImplementationForInterfaceMember(m1));
10342Assert.Same(test1.GetMember("I1." + methodName), test1.FindImplementationForInterfaceMember(m2));
10396Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
10397Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1));
10410Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
10411Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2));
10623Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1));
10636Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2));
10637Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2));
10743Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1));
10757Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2));
10899Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
11109Assert.Same(m2, m2Impl.PartialDefinitionPart);
11216Assert.Same(m2, m2Impl.PartialDefinitionPart);
12656Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
12744Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
12832Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1));
14018Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
14034Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor));
14428Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
14439Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set));
14770Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
14781Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get));
15007Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
15008Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get));
15009Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set));
15185Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
15187Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get));
15188Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set));
16601Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2));
16635Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor));
16791Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
16792Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
16803Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get));
16804Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get));
16817Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
16818Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
16829Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set));
16830Assert.Same(test2P2.SetMethod, test2.FindImplementationForInterfaceMember(p2set));
17035Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
17047Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get));
17060Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
17061Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
17072Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get));
17073Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get));
17085Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3));
17086Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3));
17101Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor));
17102Assert.Same(test2Implementation, test2.FindImplementationForInterfaceMember(accessor));
17284Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
17300Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
17315Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
17327Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get));
17339Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3));
17340Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3));
17355Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor));
17356Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
17370Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4));
17386Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
17481Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
17482Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get));
17483Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set));
17762Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
17792Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor));
18355Assert.Same(implementingProperty, test1.FindImplementationForInterfaceMember(p1));
18359Assert.Same(p1, implementingProperty.ExplicitInterfaceImplementations.Single());
18392Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1));
19862Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
19863Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get));
19864Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set));
27646Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
27662Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor));
28015Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
28030Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor));
28272Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
28287Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor));
28449Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
28450Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1add));
28451Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1remove));
28689Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1));
28691Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1Add));
28692Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1Remove));
30014Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2));
30048Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor));
30126Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
30127Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
30142Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor));
30143Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30156Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
30157Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
30172Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor));
30173Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30457Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
30473Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30486Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2));
30487Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
30502Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor));
30503Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30678Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1));
30694Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30708Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2));
30724Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor));
30886Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1));
30887Assert.Same(p1add, test1.FindImplementationForInterfaceMember(p1add));
30888Assert.Same(p1remove, test1.FindImplementationForInterfaceMember(p1remove));
33787Assert.Same(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1));
33790Assert.Same(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1));
33794Assert.Same(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1));
34303Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1));
34304Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i1m1));
34305Assert.Same(i5m1, i5.FindImplementationForInterfaceMember(i1m1));
34306Assert.Same(i5m1, i6.FindImplementationForInterfaceMember(i1m1));
34523Assert.Same(i2m1, test5.FindImplementationForInterfaceMember(i1m1));
34524Assert.Same(i5m1, test6.FindImplementationForInterfaceMember(i1m1));
34525Assert.Same(i5m1, test7.FindImplementationForInterfaceMember(i1m1));
34604Assert.Same(test8.GetMember<MethodSymbol>("I1.M1"), test8.FindImplementationForInterfaceMember(i1m1));
34605Assert.Same(test9.GetMember<MethodSymbol>("I1.M1"), test9.FindImplementationForInterfaceMember(i1m1));
34606Assert.Same(test10.GetMember<MethodSymbol>("M1"), test10.FindImplementationForInterfaceMember(i1m1));
34607Assert.Same(test11.GetMember<MethodSymbol>("M1"), test11.FindImplementationForInterfaceMember(i1m1));
34608Assert.Same(test12.GetMember<MethodSymbol>("M1"), test12.FindImplementationForInterfaceMember(i1m1));
34821Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1));
34822Assert.Same(i1m2, i1.FindImplementationForInterfaceMember(i1m2));
34828Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i2i1m1));
34829Assert.Same(i2m2, i2.FindImplementationForInterfaceMember(i2i1m2));
34835Assert.Same(i3i1m1, i3.FindImplementationForInterfaceMember(i3i1m1));
34836Assert.Same(i3i1m2, i3.FindImplementationForInterfaceMember(i3i1m2));
37083Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty));
37091Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor));
40116Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent));
40124Assert.Same(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor));
49662Assert.Same(compilation1.Assembly, compilation1.Assembly.CorLibrary);
49778Assert.Same(compilation1.Assembly, compilation1.Assembly.CorLibrary);
52288Assert.Same(c2m1, c2.FindImplementationForInterfaceMember(i1m1));
52539Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single());
52550Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single());
52734Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1));
52739Assert.Same(test12p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod));
52745Assert.Same(test12p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod));
53060Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1));
53061Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1));
53065Assert.Same(i3p1.GetMethod, i3.FindImplementationForInterfaceMember(i1p1.GetMethod));
53066Assert.Same(i3p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod));
53071Assert.Same(i3p1.SetMethod, i3.FindImplementationForInterfaceMember(i1p1.SetMethod));
53072Assert.Same(i3p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod));
53529Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1));
53530Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1));
53534Assert.Same(i4p1.GetMethod, i4.FindImplementationForInterfaceMember(i1p1.GetMethod));
53535Assert.Same(i4p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod));
53540Assert.Same(i4p1.SetMethod, i4.FindImplementationForInterfaceMember(i1p1.SetMethod));
53541Assert.Same(i4p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod));
53623Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single());
53638Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single());
53794Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single());
53805Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single());
53910Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1));
53913Assert.Same(i1p1.GetMethod, c2p1.GetMethod.ExplicitInterfaceImplementations.Single());
53914Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.GetMethod));
53923Assert.Same(i1p1.SetMethod, c2p1.SetMethod.ExplicitInterfaceImplementations.Single());
53924Assert.Same(c2p1Set, c2.FindImplementationForInterfaceMember(i1p1.SetMethod));
54229Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single());
54240Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single());
57515Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single());
57519Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single());
57692Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1));
57695Assert.Same(test12p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod));
57698Assert.Same(test12p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
57999Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1));
58000Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1));
58002Assert.Same(i3p1.AddMethod, i3.FindImplementationForInterfaceMember(i1p1.AddMethod));
58003Assert.Same(i3p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod));
58005Assert.Same(i3p1.RemoveMethod, i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
58006Assert.Same(i3p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
58431Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1));
58432Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1));
58434Assert.Same(i4p1.AddMethod, i4.FindImplementationForInterfaceMember(i1p1.AddMethod));
58435Assert.Same(i4p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod));
58437Assert.Same(i4p1.RemoveMethod, i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
58438Assert.Same(i4p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
58511Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single());
58526Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single());
58696Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1));
58705Assert.Same(i1p1.AddMethod, c2p1Add.ExplicitInterfaceImplementations.Single());
58706Assert.Same(c2p1Add, c2.FindImplementationForInterfaceMember(i1p1.AddMethod));
58720Assert.Same(i1p1.RemoveMethod, c2p1Remove.ExplicitInterfaceImplementations.Single());
58721Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod));
59279Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single());
59283Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single());
62735Assert.Same(i1Normal, i1.FindImplementationForInterfaceMember(baseInterfaceNormal));
62736Assert.Same(i1Normal.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod));
62737Assert.Same(i1Normal.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod));
62738Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT));
62739Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod));
62740Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod));
62742Assert.Same(i1Normal, c1.FindImplementationForInterfaceMember(baseInterfaceNormal));
62743Assert.Same(i1Normal.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod));
62744Assert.Same(i1Normal.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod));
62745Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT));
62746Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod));
62747Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod));
62797Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(i1WinRT));
62798Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(i1WinRT.AddMethod));
62799Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod));
62857Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT));
62858Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod));
62859Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod));
62861Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT));
62862Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod));
62863Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod));
63164Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod));
63165Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
63166Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
63167Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod));
63168Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod));
63169Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
63175Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.GetMethod));
63176Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod));
63177Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod));
63178Assert.Same(c1i1P3set, test1.FindImplementationForInterfaceMember(i1P3.SetMethod));
63179Assert.Same(c1i1E1add, test1.FindImplementationForInterfaceMember(i1E1.AddMethod));
63180Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
63186Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.GetMethod));
63187Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod));
63188Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod));
63189Assert.Same(c1i1P3set, test4.FindImplementationForInterfaceMember(i1P3.SetMethod));
63190Assert.Same(c1i1E1add, test4.FindImplementationForInterfaceMember(i1E1.AddMethod));
63191Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
63197Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod));
63198Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
63199Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
63200Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod));
63201Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod));
63202Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
63358Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod));
63359Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod));
63360Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2));
63362Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod));
63363Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod));
63364Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2));
63366Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
63367Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
63370Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
63371Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
63524Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod));
63525Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod));
63526Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2));
63528Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod));
63529Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod));
63530Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2));
63532Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
63533Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
63536Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
63537Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
63698Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
63699Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
63702Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod));
63703Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod));
63706Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod));
63707Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod));
63710Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
63711Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
64099Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod));
64100Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
64101Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
64102Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod));
64103Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod));
64104Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
64110Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod));
64111Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
64112Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
64113Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod));
64114Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod));
64115Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod));
64229Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
64230Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
64233Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
64234Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
64345Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
64346Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
64349Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
64350Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
64465Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod));
64466Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod));
64469Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod));
64470Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod));
64698Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod));
64777Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod));
67220Assert.Same(i2.GetMembers().OfType<MethodSymbol>().Single(), i1.GetMembers().OfType<MethodSymbol>().Single().ExplicitInterfaceImplementations.Single());
67406Assert.Same(m2, m1.ExplicitInterfaceImplementations.Single());
67407Assert.Same(m2.GetMethod, m1.GetMethod.ExplicitInterfaceImplementations.Single());
67597Assert.Same(m2, m1.ExplicitInterfaceImplementations.Single());
67598Assert.Same(m2.AddMethod, m1.AddMethod.ExplicitInterfaceImplementations.Single());
67599Assert.Same(m2.RemoveMethod, m1.RemoveMethod.ExplicitInterfaceImplementations.Single());
Symbols\InterfaceImplementationTests.cs (58)
143Assert.Same(classExplicitImplementationBase, implementingMethodBase);
146Assert.Same(classExplicitImplementation, implementingMethod);
194Assert.Same(classExplicitImplementationBase, implementingMethodBase);
197Assert.Same(classExplicitImplementation, implementingMethod);
263Assert.Same(classImplicitImplementation, implementingMethod);
266Assert.Same(classImplicitImplementationBase, implementingMethodBase1);
269Assert.Same(classImplicitImplementationBase, implementingMethodBase2);
331Assert.Same(classImplicitImplementation, implementingIndexer);
334Assert.Same(classImplicitImplementationBase, implementingIndexerBase1);
337Assert.Same(classImplicitImplementationBase, implementingIndexerBase2);
454Assert.Same(baseClassExplicitImplementationBase, class1ImplementingMethodBase);
457Assert.Same(baseClassExplicitImplementation, class1ImplementingMethod);
462Assert.Same(baseClassExplicitImplementationBase, class2ImplementingMethodBase);
465Assert.Same(baseClassExplicitImplementation, class2ImplementingMethod);
527Assert.Same(baseClassImplicitImplementation, class1ImplementingMethod);
530Assert.Same(baseClassImplicitImplementationBase, class1ImplementingMethodBase1);
533Assert.Same(baseClassImplicitImplementationBase, class1ImplementingMethodBase2);
538Assert.Same(baseClassImplicitImplementation, class2ImplementingMethod);
541Assert.Same(baseClassImplicitImplementationBase, class2ImplementingMethodBase1);
544Assert.Same(baseClassImplicitImplementationBase, class2ImplementingMethodBase2);
585Assert.Same(baseClass, class1.BaseType());
589Assert.Same(baseClass, class2.BaseType());
593Assert.Same(baseClassMethod, class1.FindImplementationForInterfaceMember(interfaceMethod));
634Assert.Same(baseClass, class1.BaseType());
638Assert.Same(baseClass, class2.BaseType());
642Assert.Same(baseClassIndexer, class1.FindImplementationForInterfaceMember(interfaceIndexer));
684Assert.Same(baseClassMethod, baseClassImplementingMethod);
691Assert.Same(class1Method, class1ImplementingMethod);
699Assert.Same(baseClassMethod, class2ImplementingMethod);
752Assert.Same(baseClassMethodVirtual, baseClassImplementingMethodVirtual);
755Assert.Same(baseClassMethodNonVirtual, baseClassImplementingMethodNonVirtual);
768Assert.Same(class1MethodVirtual, class1ImplementingMethodVirtual);
772Assert.Same(class1MethodNonVirtual, class1ImplementingMethodNonVirtual);
786Assert.Same(baseClassMethodVirtual, class2ImplementingMethodVirtual);
790Assert.Same(baseClassMethodNonVirtual, class2ImplementingMethodNonVirtual);
883Assert.Same(derivedClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod));
933Assert.Same(baseClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod));
934Assert.Same(baseClassProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty));
935Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter));
936Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter));
1002Assert.Same(baseClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod));
1003Assert.Same(baseClassProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty));
1004Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter));
1005Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter));
1017Assert.Same(interfaceMethod, synthesizedExplicitImpls[0].ExplicitInterfaceImplementations.Single());
1018Assert.Same(baseClassMethod, synthesizedExplicitImpls[0].ImplementingMethod);
1020Assert.Same(interfacePropertyGetter, synthesizedExplicitImpls[1].ExplicitInterfaceImplementations.Single());
1021Assert.Same(baseClassPropertyGetter, synthesizedExplicitImpls[1].ImplementingMethod);
1024Assert.Same(interfacePropertySetter, synthesizedExplicitImpls[2].ExplicitInterfaceImplementations.Single());
1025Assert.Same(baseClassPropertySetter, synthesizedExplicitImpls[2].ImplementingMethod);
1074Assert.Same(classDMethod1, classMethod1Impl);
1078Assert.Same(classDMethod2, classMethod2Impl);
1086Assert.Same(interfaceMethod1, synthesizedExplicitMethod1Impl.ExplicitInterfaceImplementations.Single());
1087Assert.Same(classDMethod1, synthesizedExplicitMethod1Impl.ImplementingMethod);
1088Assert.Same(@class, synthesizedExplicitMethod1Impl.ContainingType);
1091Assert.Same(interfaceMethod2, synthesizedExplicitMethod2Impl.ExplicitInterfaceImplementations.Single());
1092Assert.Same(classDMethod2, synthesizedExplicitMethod2Impl.ImplementingMethod);
1093Assert.Same(@class, synthesizedExplicitMethod2Impl.ContainingType);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (13)
129Assert.Same(globalNS.ContainingAssembly, assembly);
130Assert.Same(globalNS.ContainingSymbol, module0);
136Assert.Same(extent.Module, module0);
138Assert.Same(globalNS, globalNS.ConstituentNamespaces[0]);
142Assert.Same(systemNS.ContainingAssembly, assembly);
143Assert.Same(systemNS.ContainingSymbol, globalNS);
149Assert.Same(extent.Module, module0);
151Assert.Same(systemNS, systemNS.ConstituentNamespaces[0]);
155Assert.Same(collectionsNS.ContainingAssembly, assembly);
156Assert.Same(collectionsNS.ContainingSymbol, systemNS);
162Assert.Same(extent.Module, module0);
164Assert.Same(collectionsNS, collectionsNS.ConstituentNamespaces[0]);
275Assert.Same(dictionary.ConstructedFrom, dictionary);
Symbols\Metadata\PE\MissingTypeReferences.cs (20)
89Assert.Same(constructedFrom, constructedFrom.Construct(constructedFrom.TypeParameters.ToArray()));
94Assert.Same(genericBase, genericBase.ConstructedFrom);
98Assert.Same(genericBase.OriginalDefinition, genericBase.ConstructedFrom);
114Assert.Same(@base.ContainingAssembly, @base.ContainingSymbol.ContainingAssembly);
118Assert.Same(@base.ContainingAssembly, @base.ContainingSymbol.ContainingSymbol.ContainingAssembly);
136Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
151Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
166Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
183Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
200Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
202Assert.Same(@base.ContainingSymbol, missingC4);
219Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
220Assert.Same(@base.ContainingSymbol, localC6);
221Assert.Same(@base.ContainingNamespace, localC6.ContainingNamespace);
237Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
240Assert.Same(@base.ContainingSymbol, missingC7);
243Assert.Same(@base.ContainingNamespace, localC6.ContainingNamespace);
259Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
262Assert.Same(@base.ContainingSymbol, missingC8);
265Assert.Same(@base.ContainingNamespace, localC6.ContainingNamespace);
Symbols\Metadata\PE\NoPia.cs (72)
82Assert.Same(varI1, param[0].Type);
83Assert.Same(varI2, param[1].Type);
87Assert.Same(varS1, param[0].Type);
88Assert.Same(varS2, param[1].Type);
103Assert.Same(pia1_1, assemblies2[2]);
113Assert.Same(varI1, param[0].Type);
114Assert.Same(varI2, param[1].Type);
118Assert.Same(varS1, param[0].Type);
119Assert.Same(varS2, param[1].Type);
146Assert.Same(pia1_3.GlobalNamespace.GetTypeMembers("I1").Single(), param[0].Type);
147Assert.Same(pia1_3.GlobalNamespace.GetMembers("NS1").OfType<NamespaceSymbol>().Single().GetTypeMembers("I2").Single(), param[1].Type);
158Assert.Same(localTypes2_3, missing.EmbeddingAssembly);
178Assert.Same(assemblies1[i], assemblies4[i]);
202Assert.Same(localTypes1_5, missing.EmbeddingAssembly);
306Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
307Assert.Same(pia4_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.FirstCandidate);
308Assert.Same(pia1_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.SecondCandidate);
394Assert.Same(localTypes1.GetReferencedAssemblySymbol(mscorlibRef), localTypes1_1.Modules[0].GetReferencedAssemblySymbols()[0]);
399Assert.Same(localTypes2.GetReferencedAssemblySymbol(mscorlibRef), localTypes2_1.Modules[0].GetReferencedAssemblySymbols()[0]);
423Assert.Same(varI1, param[0].Type);
424Assert.Same(varI2, param[1].Type);
428Assert.Same(varS1, param[0].Type);
429Assert.Same(varS2, param[1].Type);
444Assert.Same(pia1_1, assemblies2[0]);
454Assert.Same(varI1, param[0].Type);
455Assert.Same(varI2, param[1].Type);
459Assert.Same(varS1, param[0].Type);
460Assert.Same(varS2, param[1].Type);
476Assert.Same(pia1_1, assemblies3[0]);
486Assert.Same(varI1, param[0].Type);
487Assert.Same(varI2, param[1].Type);
491Assert.Same(varS1, param[0].Type);
492Assert.Same(varS2, param[1].Type);
505Assert.Same(assemblies1[i], assemblies4[i]);
530Assert.Same(localTypes1_5, missing.EmbeddingAssembly);
544Assert.Same(localTypes2_5, missing.EmbeddingAssembly);
606Assert.Same(pia4_7.GlobalNamespace.GetTypeMembers("I1").Single(), param[0].Type);
607Assert.Same(pia4_7, param[1].Type.ContainingAssembly);
642Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
643Assert.Same(pia4_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.FirstCandidate);
644Assert.Same(pia1_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.SecondCandidate);
790Assert.Same(pia5Asm1, pia5Asm3);
805Assert.Same(pia5Asm2, pia5Asm4);
822Assert.Same(pia5Asm1, pia5Asm5);
840Assert.Same(pia5Asm1, pia5Asm6);
841Assert.Same(library2Asm6, library2Asm3);
851Assert.Same(pia5Asm1, pia5Asm3);
890Assert.Same(varA1, tc2.GetReferencedAssemblySymbol(varARef));
891Assert.Same(varB1, tc2.GetReferencedAssemblySymbol(varBLink));
892Assert.Same(varC1, tc2.GetReferencedAssemblySymbol(varCRef));
898Assert.Same(varB1, tc3.GetReferencedAssemblySymbol(varBLink));
903Assert.Same(varA1, tc4.GetReferencedAssemblySymbol(varARef));
913Assert.Same(varB1, tc5.GetReferencedAssemblySymbol(varBLink));
924Assert.Same(varA1, tc6.GetReferencedAssemblySymbol(varARef));
925Assert.Same(varB1, tc6.GetReferencedAssemblySymbol(varBLink));
935Assert.Same(varA1, tc7.GetReferencedAssemblySymbol(varARef));
1157Assert.Same(pia5Asm1, pia5Asm3);
1172Assert.Same(pia5Asm2, pia5Asm4);
1189Assert.Same(pia5Asm1, pia5Asm5);
1207Assert.Same(pia5Asm1, pia5Asm6);
1208Assert.Same(library2Asm6, library2Asm3);
1218Assert.Same(pia5Asm1, pia5Asm3);
1295Assert.Same(varA1, tc2.GetReferencedAssemblySymbol(varARef));
1296Assert.Same(varB1, tc2.GetReferencedAssemblySymbol(varBLink));
1297Assert.Same(varC1, tc2.GetReferencedAssemblySymbol(varCRef));
1303Assert.Same(varB1, tc3.GetReferencedAssemblySymbol(varBLink));
1308Assert.Same(varA1, tc4.GetReferencedAssemblySymbol(varARef));
1318Assert.Same(varB1, tc5.GetReferencedAssemblySymbol(varBLink));
1329Assert.Same(varA1, tc6.GetReferencedAssemblySymbol(varARef));
1330Assert.Same(varB1, tc6.GetReferencedAssemblySymbol(varBLink));
1340Assert.Same(varA1, tc7.GetReferencedAssemblySymbol(varARef));
1419Assert.Same(i1F1, baseI1F1.ExplicitInterfaceImplementations.Single());
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (16)
45Assert.Same(canonicalType1, param.Where(arg => arg.Type.Name == "I1").Select(arg => arg).Single().Type);
46Assert.Same(canonicalType2, param.Where(arg => arg.Type.Name == "I2").Select(arg => arg).Single().Type);
143Assert.Same(localConsumerRefsAsm.First(arg => arg.Name == "ExternalAsm1"), missing.EmbeddingAssembly);
148Assert.Same(canonicalType, localFieldSymbol.Type);
202Assert.Same(canonicalTypeInter, localFieldSymbol.Type);
203Assert.Same(canonicalTypeInter, param.First().Type);
238Assert.Same(localConsumerRefsAsm.First(arg => arg.Name == "ExternalAsm1"), missing.EmbeddingAssembly);
243Assert.Same(canonicalType, localFieldSymbol.Type);
274Assert.Same(canonicalType, localFieldSymbol.Type);
307Assert.Same(canonicalTypeInter, localFieldSymbol.Type);
329Assert.Same(canonicalType, interfaceType);
352Assert.Same(canonicalType, explicitImpl.ContainingType);
376Assert.Same(localConsumerRefsAsm.First(arg => arg.Name == "ExternalAsm1"), ambiguous.EmbeddingAssembly);
377Assert.Same(localConsumerRefsAsm.First(arg => arg.Name == "GeneralPia").GlobalNamespace.ChildNamespace("InheritanceConflict").GetTypeMembers("IBase").Single(), ambiguous.FirstCandidate);
378Assert.Same(localConsumerRefsAsm.First(arg => arg.Name == "GeneralPiaCopy").GlobalNamespace.ChildNamespace("InheritanceConflict").GetTypeMembers("IBase").Single(), ambiguous.SecondCandidate);
481Assert.Same(embeddedType.ReturnType, importedTypeAsm);
Symbols\OverriddenOrHiddenMembersTests.cs (64)
190Assert.Same(ref1M, ref2M.OverriddenMethod);
191Assert.Same(ref1M, ref2M.OverriddenOrHiddenMembers.OverriddenMembers.Single());
197Assert.Same(out1M, out2M.OverriddenMethod);
198Assert.Same(out1M, out2M.OverriddenOrHiddenMembers.OverriddenMembers.Single());
204Assert.Same(out2M, out3M.OverriddenMethod);
205Assert.Same(out2M, out3M.OverriddenOrHiddenMembers.OverriddenMembers.Single());
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);
434Assert.Same(baseClassMethod, derivedClassMethodOverriddenOrHidden.HiddenMembers.Single());
438Assert.Same(baseClassProperty, derivedClassPropertyOverriddenOrHidden.HiddenMembers.Single());
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);
551Assert.Same(baseClassMethod, derivedClassMethodOverriddenOrHidden.OverriddenMembers.Single());
555Assert.Same(baseClassProperty, derivedClassPropertyOverriddenOrHidden.OverriddenMembers.Single());
559Assert.Same(baseClassRefMethod, derivedClassRefMethodOverriddenOrHidden.OverriddenMembers.Single());
563Assert.Same(baseClassRefProperty, derivedClassRefPropertyOverriddenOrHidden.OverriddenMembers.Single());
567Assert.Same(baseClassRefIndexer, derivedClassRefIndexerOverriddenOrHidden.OverriddenMembers.Single());
576Assert.Same(baseClassMethod, derivedClassMethod.OverriddenMethod);
577Assert.Same(baseClassProperty, derivedClassProperty.OverriddenProperty);
578Assert.Same(baseClassRefMethod, derivedClassRefMethod.OverriddenMethod);
579Assert.Same(baseClassRefProperty, derivedClassRefProperty.OverriddenProperty);
580Assert.Same(baseClassRefIndexer, derivedClassRefIndexer.OverriddenProperty);
637Assert.Same(objectToString, baseClassToString.OverriddenMethod);
638Assert.Same(objectGetHashCode, baseClassGetHashCode.OverriddenMethod);
640Assert.Same(baseClassGetHashCode, derivedClassGetHashCode.OverriddenMethod.OriginalDefinition);
641Assert.Same(objectEquals, derivedClassEquals.OverriddenMethod);
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);
767Assert.Same(hidingClassMethod1, overridingClassMethod1OverriddenOrHidden.HiddenMembers.Single());
773Assert.Same(hidingClassMethod2, overridingClassMethod2OverriddenOrHidden.OverriddenMembers.Single());
783Assert.Same(hidingClassProperty2, overridingClassProperty2OverriddenOrHidden.OverriddenMembers.Single());
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);
947Assert.Same(classDMethod1, classEMethod1OverriddenOrHiddenMembers.OverriddenMembers.Single());
955Assert.Same(classDMethod2, classEMethod2OverriddenOrHiddenMembers.OverriddenMembers.Single());
Symbols\PartialPropertiesTests.cs (22)
929Assert.Same(propDefinition, propImplementation.PartialDefinitionPart);
931Assert.Same(propImplementation, propDefinition.PartialImplementationPart);
934Assert.Same(propDefinition.GetMethod, comp.GetMember<MethodSymbol>("C.get_P"));
935Assert.Same(propDefinition.SetMethod, comp.GetMember<MethodSymbol>("C.set_P"));
945Assert.Same(implementationAccessor, definitionAccessor.PartialImplementationPart);
947Assert.Same(definitionAccessor, implementationAccessor.PartialDefinitionPart);
1003Assert.Same(propDefinition, propImplementation.PartialDefinitionPart);
1005Assert.Same(propImplementation, propDefinition.PartialImplementationPart);
1016Assert.Same(implementationAccessor, definitionAccessor.PartialImplementationPart);
1018Assert.Same(definitionAccessor, implementationAccessor.PartialDefinitionPart);
1089Assert.Same(propDefinition, propImplementation.PartialDefinitionPart);
1091Assert.Same(propImplementation, propDefinition.PartialImplementationPart);
1102Assert.Same(implementationAccessor, definitionAccessor.PartialImplementationPart);
1104Assert.Same(definitionAccessor, implementationAccessor.PartialDefinitionPart);
5237Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
5238Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
5273Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
5274Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
5320Assert.Same(implSymbol, defSymbol.PartialImplementationPart);
5321Assert.Same(defSymbol, implSymbol.PartialDefinitionPart);
5357Assert.Same(implSymbol, ((IPropertySymbol)defSymbol.ContainingSymbol).PartialImplementationPart!.Parameters[0]);
5358Assert.Same(defSymbol, ((IPropertySymbol)implSymbol.ContainingSymbol).PartialDefinitionPart!.Parameters[0]);
Symbols\Retargeting\NoPia.cs (54)
296Assert.Same(assemblies[2], LocalTypes1.Assembly.CorLibrary);
297Assert.Same(assemblies[2], LocalTypes2.Assembly.CorLibrary);
392Assert.Same(varI1, param[0].Type);
393Assert.Same(varI2, param[1].Type);
397Assert.Same(varS1, param[0].Type);
398Assert.Same(varS2, param[1].Type);
413Assert.Same(pia1_1, assemblies2[2]);
423Assert.Same(varI1, param[0].Type);
424Assert.Same(varI2, param[1].Type);
428Assert.Same(varS1, param[0].Type);
429Assert.Same(varS2, param[1].Type);
454Assert.Same(pia1_3.GlobalNamespace.GetTypeMembers("I1").Single(), param[0].Type);
455Assert.Same(pia1_3.GlobalNamespace.GetMembers("NS1").OfType<NamespaceSymbol>().Single().GetTypeMembers("I2").Single(), param[1].Type);
466Assert.Same(localTypes2_3, missing.EmbeddingAssembly);
485Assert.Same(assemblies1[i], assemblies4[i]);
508Assert.Same(localTypes1_5, missing.EmbeddingAssembly);
608Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
609Assert.Same(pia4_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.FirstCandidate);
610Assert.Same(pia1_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.SecondCandidate);
693Assert.Same(varI1, param[0].Type);
694Assert.Same(varI2, param[1].Type);
698Assert.Same(varS1, param[0].Type);
699Assert.Same(varS2, param[1].Type);
714Assert.Same(pia1_1, assemblies2[2]);
724Assert.Same(varI1, param[0].Type);
725Assert.Same(varI2, param[1].Type);
729Assert.Same(varS1, param[0].Type);
730Assert.Same(varS2, param[1].Type);
755Assert.Same(pia1_3.GlobalNamespace.GetTypeMembers("I1").Single(), param[0].Type);
756Assert.Same(pia1_3.GlobalNamespace.GetMembers("NS1").OfType<NamespaceSymbol>().Single().GetTypeMembers("I2").Single(), param[1].Type);
767Assert.Same(localTypes2_3, missing.EmbeddingAssembly);
786Assert.Same(assemblies1[i], assemblies4[i]);
809Assert.Same(localTypes1_5, missing.EmbeddingAssembly);
909Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
910Assert.Same(pia4_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.FirstCandidate);
911Assert.Same(pia1_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.SecondCandidate);
997Assert.Same(varI1, param[0].Type);
998Assert.Same(varI2, param[1].Type);
1002Assert.Same(varS1, param[0].Type);
1003Assert.Same(varS2, param[1].Type);
1018Assert.Same(pia1_1, assemblies2[2]);
1028Assert.Same(varI1, param[0].Type);
1029Assert.Same(varI2, param[1].Type);
1033Assert.Same(varS1, param[0].Type);
1034Assert.Same(varS2, param[1].Type);
1059Assert.Same(pia1_3.GlobalNamespace.GetTypeMembers("I1").Single(), param[0].Type);
1060Assert.Same(pia1_3.GlobalNamespace.GetMembers("NS1").OfType<NamespaceSymbol>().Single().GetTypeMembers("I2").Single(), param[1].Type);
1071Assert.Same(localTypes2_3, missing.EmbeddingAssembly);
1090Assert.Same(assemblies1[i], assemblies4[i]);
1113Assert.Same(localTypes1_5, missing.EmbeddingAssembly);
1213Assert.Same(localTypes1_8, ambiguous.EmbeddingAssembly);
1214Assert.Same(pia4_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.FirstCandidate);
1215Assert.Same(pia1_8.GlobalNamespace.GetTypeMembers("I1").Single(), ambiguous.SecondCandidate);
2679Assert.Same(test, usePia1.GetMember<MethodSymbol>("M1").ReturnType);
Symbols\Retargeting\RetargetCustomModifiers.cs (17)
55Assert.Same(mscorlibAssembly, f0Mod.Modifier.ContainingAssembly.GetSymbol());
76Assert.Same(mscorlibAssembly, p1Mod.Modifier.ContainingAssembly.GetSymbol());
84Assert.Same(mscorlibAssembly, p2Mod.Modifier.ContainingAssembly.GetSymbol());
93Assert.Same(mscorlibAssembly, m5Mod.Modifier.ContainingAssembly.GetSymbol());
106Assert.Same(mscorlibAssembly, p5TypeMod.Modifier.ContainingAssembly.GetSymbol());
119Assert.Same(mscorlibAssembly, p6TypeMod.Modifier.ContainingAssembly.GetSymbol());
127Assert.Same(mscorlibAssembly, m7Mod.Modifier.ContainingAssembly.GetSymbol());
174Assert.Same(mscorlibAssembly, ((CSharpCustomModifier)volatileFldMod).ModifierSymbol.ContainingAssembly);
178Assert.Same(volatileFld, volatileFld.OriginalDefinition);
182Assert.Same(c1AsmRef, volatileFld.ContainingAssembly);
183Assert.Same(c1AsmRef.Modules[0], volatileFld.ContainingModule);
184Assert.Same(modifiers, volatileFld.ContainingSymbol);
189Assert.Same(volatileFld.ContainingModule, ((RetargetingFieldSymbol)volatileFld).RetargetingModule);
190Assert.Same(c1Assembly, ((RetargetingFieldSymbol)volatileFld).UnderlyingField.ContainingAssembly);
201Assert.Same(c1AsmRef.Modules[0], m1.ContainingModule);
206Assert.Same(c1AsmRef.Modules[0], p1.ContainingModule);
213Assert.Same(mscorlibAssembly, p1Type.PointedAtType.ContainingAssembly);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (17)
160Assert.Same(interfaceV2Method1, retargetedClassCMethod1Impl);
189Assert.Same(interfaceV2Method4, retargetedClassCMethod4Impl);
199Assert.Same(interfaceV2Property1, retargetedClassCProperty1Impl);
226Assert.Same(interfaceV2Property4, retargetedClassCProperty4Impl);
237Assert.Same(interfaceV2Indexer1, retargetedClassCIndexer1Impl);
264Assert.Same(interfaceV2Indexer4, retargetedClassCIndexer4Impl);
275Assert.Same(interfaceV2Event1, retargetedClassCEvent1Impl);
302Assert.Same(interfaceV2Event4, retargetedClassCEvent4Impl);
403Assert.Same(interfaceV2Method1, retargetedClassC1Method1Impl.OriginalDefinition);
407Assert.Same(interfaceV2Method1, retargetedClassC2Method1Impl.OriginalDefinition);
411Assert.Same(interfaceV2Method1, retargetedClassC3Method1Impl.OriginalDefinition);
415Assert.Same(interfaceV2Property1, retargetedClassC1Property1Impl.OriginalDefinition);
419Assert.Same(interfaceV2Property1, retargetedClassC2Property1Impl.OriginalDefinition);
423Assert.Same(interfaceV2Property1, retargetedClassC3Property1Impl.OriginalDefinition);
427Assert.Same(interfaceV2Event1, retargetedClassC1Event1Impl.OriginalDefinition);
431Assert.Same(interfaceV2Event1, retargetedClassC2Event1Impl.OriginalDefinition);
435Assert.Same(interfaceV2Event1, retargetedClassC3Event1Impl.OriginalDefinition);
Symbols\StaticAbstractMembersInInterfacesTests.cs (469)
172Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
244Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
256Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
1056Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1183Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1220Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1270Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1318Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1321Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1333Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1376Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1431Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1434Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1486Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
1489Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1547Assert.Same(m01, m01.PartialImplementationPart.PartialDefinitionPart);
1734Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
1794Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
1804Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
1839Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
1911Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
1923Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
2540Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
2600Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
2610Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
2647Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
2719Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
2731Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
3375Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02));
3447Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08));
3459Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09));
4562Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01));
4575Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01));
4802Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01));
4815Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01));
15775Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
15849Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
15850Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
15851Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
15852Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
15855Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
15857Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
15860Assert.Same(i8.GetMembers().OfType<MethodSymbol>().Single(), i8.FindImplementationForInterfaceMember(m01));
16071Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
16130Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
16193Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
16287Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
16290Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
16293Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
16296Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
16346Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01));
16347Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
16425Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01));
16426Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01));
16427Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single());
16478Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single());
16563Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
16598Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single());
16600Assert.Same(c2M01, c2.GetMembers().OfType<MethodSymbol>().Where(m => !m.IsConstructor()).Single());
16688Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single());
16692Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
16699Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
16781Assert.Same(m01, c3M01.ExplicitInterfaceImplementations.Single());
16785Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01));
16863Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
17019Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
17020Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
17091Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
17173Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
17357Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
17459Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
18420Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
18434Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
18567Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
18581Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
18714Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
18715Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
18716Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
18717Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
18720Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
18722Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
18728Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM));
18735Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM));
18739Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01));
18867Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
18868Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
18869Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
18870Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
18873Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
18875Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
18881Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM));
18888Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM));
18892Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01));
19059Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
19073Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
19245Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
19246Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
19247Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
19248Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
19251Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01));
19253Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
19259Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM));
19266Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM));
19270Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01));
20132Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20215Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20307Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20477Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20551Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20634Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
20824Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
20827Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
20830Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
20833Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
20959Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
20962Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
20965Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
20968Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
21032Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01));
21033Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
21112Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01));
21113Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
21204Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01));
21205Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01));
21207Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single());
21269Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01));
21270Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01));
21272Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single());
21504Assert.Same(c2M01, c2.GetMembers().OfType<MethodSymbol>().Where(m => !m.IsConstructor()).Single());
21615Assert.Same(c2M01, c2.GetMembers().OfType<MethodSymbol>().Where(m => !m.IsConstructor()).Single());
21749Assert.Same(c2M01, c2.GetMembers().OfType<MethodSymbol>().Where(m => !m.IsConstructor()).Single());
21842Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
21903Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01));
21907Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
22023Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
22030Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
22150Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01));
22360Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
23166Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m));
23167Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod);
23168Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod);
23244Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
23245Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
23246Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
23247Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
23248Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
23257Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m));
23258Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod);
23259Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod);
23487Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
23502Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
23518Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
23519Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
23520Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
23583Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
23609Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
23610Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
23673Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
23688Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
23702Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
23703Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
23704Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
23769Assert.Same(cM01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod));
23770Assert.Same(cM01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod));
23772Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
23773Assert.Same(m01.GetMethod, cM01.GetMethod.ExplicitInterfaceImplementations.Single());
23774Assert.Same(m01.SetMethod, cM01.SetMethod.ExplicitInterfaceImplementations.Single());
23925Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
23926Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
23927Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
23928Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single());
23929Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single());
23932Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
23933Assert.Same(c1M01.GetMethod, c2.FindImplementationForInterfaceMember(m01.GetMethod));
23934Assert.Same(c1M01.SetMethod, c2.FindImplementationForInterfaceMember(m01.SetMethod));
23937Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
23938Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod));
23939Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod));
23942Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
23943Assert.Same(c1M01.GetMethod, c4.FindImplementationForInterfaceMember(m01.GetMethod));
23944Assert.Same(c1M01.SetMethod, c4.FindImplementationForInterfaceMember(m01.SetMethod));
23950Assert.Same(c2M01.GetMethod, c5.FindImplementationForInterfaceMember(m01.GetMethod));
23951Assert.Same(c2M01.SetMethod, c5.FindImplementationForInterfaceMember(m01.SetMethod));
24023Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01));
24024Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
24025Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24026Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod));
24027Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24028Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod));
24066Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01));
24067Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
24068Assert.Same(c1m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24069Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod));
24070Assert.Same(c1m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24071Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod));
24104Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01));
24105Assert.Same(c1m01.GetMethod, c.FindImplementationForInterfaceMember(m01.GetMethod));
24106Assert.Same(c1m01.SetMethod, c.FindImplementationForInterfaceMember(m01.SetMethod));
24161Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24162Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod));
24206Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
24219Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set));
24221Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
24222Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
24264Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
24289Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
24293Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
24294Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
24295Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
24328Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24329Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24330Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24331Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
24332Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single());
24333Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single());
24368Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
24381Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set));
24385Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
24421Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24423Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24454Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24456Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24457Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
24458Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single());
24511Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24512Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod));
24558Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
24571Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get));
24573Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
24574Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
24616Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
24641Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get));
24645Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
24646Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
24647Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single());
24680Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24681Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24682Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24683Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
24684Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single());
24685Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single());
24720Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set));
24733Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get));
24737Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single());
24773Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24774Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24806Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
24807Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24809Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
24810Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single());
24888Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01));
24889Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01));
24890Assert.Same(i2M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod));
24891Assert.Same(i2M01.GetMethod, i2.FindImplementationForInterfaceMember(m01.GetMethod));
24892Assert.Same(i2M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod));
24893Assert.Same(i2M01.SetMethod, i2.FindImplementationForInterfaceMember(m01.SetMethod));
24895Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single());
24896Assert.Same(m01.GetMethod, i2M01.GetMethod.ExplicitInterfaceImplementations.Single());
24897Assert.Same(m01.SetMethod, i2M01.SetMethod.ExplicitInterfaceImplementations.Single());
24959Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single());
24965Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single());
25013Assert.Same(c2M01.GetMethod, c2M01Get);
25019Assert.Same(c2M01.SetMethod, c2M01Set);
25142Assert.Same(c1M01Get, c1.FindImplementationForInterfaceMember(m01.GetMethod));
25156Assert.Same(m01.GetMethod, c1M01Get.ExplicitInterfaceImplementations.Single());
25161Assert.Same(m01.SetMethod, c1M01Set.ExplicitInterfaceImplementations.Single());
25173Assert.Same(c1M01Set, c1.FindImplementationForInterfaceMember(m01.SetMethod));
25187Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single());
25197Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single());
25198Assert.Same(c2M01Get, c2.FindImplementationForInterfaceMember(m01.GetMethod));
25209Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single());
25210Assert.Same(c2M01Set, c2.FindImplementationForInterfaceMember(m01.SetMethod));
25212Assert.Same(c2M01, c2.GetMembers().OfType<PropertySymbol>().Single());
25227Assert.Same(m01, c3M01.ExplicitInterfaceImplementations.Single());
25237Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single());
25238Assert.Same(c3M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod));
25249Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single());
25250Assert.Same(c3M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod));
25252Assert.Same(c3M01, c3.GetMembers().OfType<PropertySymbol>().Single());
25369Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
25370Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod));
25371Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod));
25378Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
25379Assert.Same(c2M02.GetMethod, c3.FindImplementationForInterfaceMember(m02.GetMethod));
25380Assert.Same(c2M02.SetMethod, c3.FindImplementationForInterfaceMember(m02.SetMethod));
25491Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single());
25495Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single());
25499Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01));
25500Assert.Same(c2M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod));
25501Assert.Same(c2M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod));
25571Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
25572Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
25643Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
25946Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m));
25947Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod);
25948Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod);
26022Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01));
26023Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01));
26024Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01));
26025Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01));
26026Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01));
26035Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m));
26036Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod);
26037Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod);
26265Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add));
26280Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove));
26296Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
26297Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single());
26298Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single());
26360Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add));
26375Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove));
26389Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
26390Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single());
26391Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single());
26456Assert.Same(cM01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod));
26457Assert.Same(cM01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod));
26459Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
26460Assert.Same(m01.AddMethod, cM01.AddMethod.ExplicitInterfaceImplementations.Single());
26461Assert.Same(m01.RemoveMethod, cM01.RemoveMethod.ExplicitInterfaceImplementations.Single());
26617Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26618Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26619Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
26620Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single());
26621Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
26624Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
26625Assert.Same(c1M01.AddMethod, c2.FindImplementationForInterfaceMember(m01.AddMethod));
26626Assert.Same(c1M01.RemoveMethod, c2.FindImplementationForInterfaceMember(m01.RemoveMethod));
26629Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
26630Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod));
26631Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod));
26634Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
26635Assert.Same(c1M01.AddMethod, c4.FindImplementationForInterfaceMember(m01.AddMethod));
26636Assert.Same(c1M01.RemoveMethod, c4.FindImplementationForInterfaceMember(m01.RemoveMethod));
26642Assert.Same(c2M01.AddMethod, c5.FindImplementationForInterfaceMember(m01.AddMethod));
26643Assert.Same(c2M01.RemoveMethod, c5.FindImplementationForInterfaceMember(m01.RemoveMethod));
26716Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01));
26717Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
26718Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26719Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod));
26720Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26721Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26755Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01));
26756Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
26757Assert.Same(c1m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26758Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod));
26759Assert.Same(c1m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26760Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26784Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01));
26785Assert.Same(c1m01.AddMethod, c.FindImplementationForInterfaceMember(m01.AddMethod));
26786Assert.Same(c1m01.RemoveMethod, c.FindImplementationForInterfaceMember(m01.RemoveMethod));
26843Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26844Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26869Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
26870Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26871Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26872Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
26873Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single());
26908Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add));
26932Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01.RemoveMethod));
26936Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single());
26937Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
26938Assert.Same(m01.RemoveMethod, cM01Remove.ExplicitInterfaceImplementations.Single());
26967Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
26968Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26969Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
26970Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
26971Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single());
26972Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
26997Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
26998Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
26999Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27027Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27029Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27057Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27059Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27060Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
27061Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
27117Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27118Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod));
27143Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27144Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27145Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27146Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
27147Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
27182Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove));
27206Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01.AddMethod));
27210Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single());
27211Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single());
27212Assert.Same(m01.AddMethod, cM01Add.ExplicitInterfaceImplementations.Single());
27241Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27242Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27243Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27244Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
27245Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
27246Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single());
27271Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27272Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27273Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27301Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27302Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27331Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27332Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27334Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
27335Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single());
27416Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01));
27417Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01));
27418Assert.Same(i2M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27419Assert.Same(i2M01.AddMethod, i2.FindImplementationForInterfaceMember(m01.AddMethod));
27420Assert.Same(i2M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27421Assert.Same(i2M01.RemoveMethod, i2.FindImplementationForInterfaceMember(m01.RemoveMethod));
27423Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single());
27424Assert.Same(m01.AddMethod, i2M01.AddMethod.ExplicitInterfaceImplementations.Single());
27425Assert.Same(m01.RemoveMethod, i2M01.RemoveMethod.ExplicitInterfaceImplementations.Single());
27487Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single());
27493Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single());
27541Assert.Same(c2M01.AddMethod, c2M01Add);
27547Assert.Same(c2M01.RemoveMethod, c2M01Remove);
27701Assert.Same(m01.AddMethod, c1M01Add.ExplicitInterfaceImplementations.Single());
27713Assert.Same(m01.RemoveMethod, c1M01Remove.ExplicitInterfaceImplementations.Single());
27727Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01));
27728Assert.Same(c1M01Add, c1.FindImplementationForInterfaceMember(m01.AddMethod));
27729Assert.Same(c1M01Remove, c1.FindImplementationForInterfaceMember(m01.RemoveMethod));
27743Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single());
27754Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single());
27755Assert.Same(c2M01Add, c2.FindImplementationForInterfaceMember(m01.AddMethod));
27766Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single());
27767Assert.Same(c2M01Remove, c2.FindImplementationForInterfaceMember(m01.RemoveMethod));
27769Assert.Same(c2M01, c2.GetMembers().OfType<EventSymbol>().Single());
27812Assert.Same(m02.AddMethod, c3M02Add.ExplicitInterfaceImplementations.Single());
27824Assert.Same(m02.RemoveMethod, c3M02Remove.ExplicitInterfaceImplementations.Single());
27838Assert.Same(c3M02, c3.FindImplementationForInterfaceMember(m02));
27839Assert.Same(c3M02Add, c3.FindImplementationForInterfaceMember(m02.AddMethod));
27840Assert.Same(c3M02Remove, c3.FindImplementationForInterfaceMember(m02.RemoveMethod));
27856Assert.Same(m02, c4M02.ExplicitInterfaceImplementations.Single());
27868Assert.Same(m02.AddMethod, c4M02Add.ExplicitInterfaceImplementations.Single());
27869Assert.Same(c4M02Add, c4.FindImplementationForInterfaceMember(m02.AddMethod));
27881Assert.Same(m02.RemoveMethod, c4M02Remove.ExplicitInterfaceImplementations.Single());
27882Assert.Same(c4M02Remove, c4.FindImplementationForInterfaceMember(m02.RemoveMethod));
27884Assert.Same(c4M02, c4.GetMembers().OfType<EventSymbol>().Single());
28034Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
28035Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod));
28036Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod));
28043Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
28044Assert.Same(c2M02.AddMethod, c3.FindImplementationForInterfaceMember(m02.AddMethod));
28045Assert.Same(c2M02.RemoveMethod, c3.FindImplementationForInterfaceMember(m02.RemoveMethod));
28157Assert.Same(m01.AddMethod, c3M01Add.ExplicitInterfaceImplementations.Single());
28161Assert.Same(m01.RemoveMethod, c3M01Remove.ExplicitInterfaceImplementations.Single());
28165Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01));
28166Assert.Same(c2M01Add, c3.FindImplementationForInterfaceMember(m01.AddMethod));
28167Assert.Same(c2M01Remove, c3.FindImplementationForInterfaceMember(m01.RemoveMethod));
28237Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single());
28238Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
28309Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
28734Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
28749Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
28901Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
28922Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single()));
29566Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01));
29569Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01));
29572Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01));
29638Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01));
29962Assert.Same(c2M01, c2.GetMembers().OfType<MethodSymbol>().Where(m => !m.IsConstructor()).Single());
30091Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02));
30292Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01));
32176Assert.Same(bM2, b.FindImplementationForInterfaceMember(biMethods[2]));
32206Assert.Same(bM1, dM1.OriginalDefinition);
32210Assert.Same(bM2, dM2.OriginalDefinition);
32211Assert.Same(bM2, d.FindImplementationForInterfaceMember(diMethods[2]).OriginalDefinition);
32274Assert.Same(dM2, d.FindImplementationForInterfaceMember(diMethods[2]));
Symbols\TypeTests.cs (49)
1339Assert.Same(baseType, ExtractErrorGuess(derivedTypes[0].BaseType()));
1340Assert.Same(interface1, ExtractErrorGuess(derivedTypes[0].Interfaces().Single()));
1344Assert.Same(interface1, ExtractErrorGuess(derivedTypes[1].Interfaces()[0]));
1345Assert.Same(baseType, ExtractErrorGuess(derivedTypes[1].Interfaces()[1]));
1347Assert.Same(baseType, ExtractErrorGuess(derivedTypes[2].BaseType()));
1348Assert.Same(interface1, ExtractErrorGuess(derivedTypes[2].Interfaces().Single()));
1350Assert.Same(baseType, ExtractErrorGuess(derivedTypes[3].BaseType()));
1351Assert.Same(interface1, ExtractErrorGuess(derivedTypes[3].Interfaces().Single()));
1354Assert.Same(interface1, ExtractErrorGuess(derivedTypes[4].Interfaces()[0]));
1355Assert.Same(interface2, ExtractErrorGuess(derivedTypes[4].Interfaces()[1]));
1357Assert.Same(baseType, ExtractErrorGuess(derivedTypes[5].BaseType()));
1358Assert.Same(interface1, ExtractErrorGuess(derivedTypes[5].Interfaces()[0]));
1359Assert.Same(interface2, ExtractErrorGuess(derivedTypes[5].Interfaces()[1]));
1361Assert.Same(baseType, ExtractErrorGuess(derivedTypes[6].BaseType()));
1362Assert.Same(interface1, ExtractErrorGuess(derivedTypes[6].Interfaces()[1]));
1363Assert.Same(interface2, ExtractErrorGuess(derivedTypes[6].Interfaces()[0]));
1481Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), varX.Type.OriginalDefinition);
1508Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1513Assert.Same(comp.GetSpecialType(SpecialType.System_SByte), underType);
1521Assert.Same(comp.GetSpecialType(SpecialType.System_Byte), underType);
1522Assert.Same(underType, memType.GetNullableUnderlyingType());
1526Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1530Assert.Same(comp.GetSpecialType(SpecialType.System_Char), underType);
1531Assert.Same(underType, memType.GetNullableUnderlyingType());
1540Assert.Same(comp.GetSpecialType(SpecialType.System_Int16), underType);
1545Assert.Same(comp.GetSpecialType(SpecialType.System_UInt16), memType.GetNullableUnderlyingType());
1547Assert.Same(comp.GetSpecialType(SpecialType.System_UInt32), memType.GetNullableUnderlyingType());
1551Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1554Assert.Same(comp.GetSpecialType(SpecialType.System_Int32), underType);
1555Assert.Same(underType, memType.GetNullableUnderlyingType());
1561Assert.Same(comp.GetSpecialType(SpecialType.System_Int64), memType.GetNullableUnderlyingType());
1563Assert.Same(comp.GetSpecialType(SpecialType.System_UInt64), memType.GetNullableUnderlyingType());
1570Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), underType);
1579Assert.Same(comp.GetSpecialType(SpecialType.System_Double), memType.GetNullableUnderlyingType());
1582Assert.Same(comp.GetSpecialType(SpecialType.System_Single), (memType as ArrayTypeSymbol).ElementType.GetNullableUnderlyingType());
1619Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1625Assert.Same(topType, memType.GetNullableUnderlyingType());
1627Assert.Same(enumType, memType.GetNullableUnderlyingType());
1637Assert.Same(nestedType, underType);
1640Assert.Same(topType, paras[0].Type.GetNullableUnderlyingType());
1644Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1649Assert.Same(topType, memType.GetNullableUnderlyingType());
1651Assert.Same(nestedType, memType.GetNullableUnderlyingType());
1691Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1700Assert.Same((locals[1] as ILocalSymbol).Type, memType);
1707Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1713Assert.Same((locals[2] as ILocalSymbol).Type, memType);
1769Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1785Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), ((ITypeSymbol)tinfo.ConvertedType).GetNullableUnderlyingType());
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 (536)
Generated\Syntax.Test.xml.Generated.cs (494)
3959Assert.Same(oldNode, newNode);
3985Assert.Same(oldNode, newNode);
4011Assert.Same(oldNode, newNode);
4037Assert.Same(oldNode, newNode);
4063Assert.Same(oldNode, newNode);
4089Assert.Same(oldNode, newNode);
4115Assert.Same(oldNode, newNode);
4141Assert.Same(oldNode, newNode);
4167Assert.Same(oldNode, newNode);
4193Assert.Same(oldNode, newNode);
4219Assert.Same(oldNode, newNode);
4245Assert.Same(oldNode, newNode);
4271Assert.Same(oldNode, newNode);
4297Assert.Same(oldNode, newNode);
4323Assert.Same(oldNode, newNode);
4349Assert.Same(oldNode, newNode);
4375Assert.Same(oldNode, newNode);
4401Assert.Same(oldNode, newNode);
4427Assert.Same(oldNode, newNode);
4453Assert.Same(oldNode, newNode);
4479Assert.Same(oldNode, newNode);
4505Assert.Same(oldNode, newNode);
4531Assert.Same(oldNode, newNode);
4557Assert.Same(oldNode, newNode);
4583Assert.Same(oldNode, newNode);
4609Assert.Same(oldNode, newNode);
4635Assert.Same(oldNode, newNode);
4661Assert.Same(oldNode, newNode);
4687Assert.Same(oldNode, newNode);
4713Assert.Same(oldNode, newNode);
4739Assert.Same(oldNode, newNode);
4765Assert.Same(oldNode, newNode);
4791Assert.Same(oldNode, newNode);
4817Assert.Same(oldNode, newNode);
4843Assert.Same(oldNode, newNode);
4869Assert.Same(oldNode, newNode);
4895Assert.Same(oldNode, newNode);
4921Assert.Same(oldNode, newNode);
4947Assert.Same(oldNode, newNode);
4973Assert.Same(oldNode, newNode);
4999Assert.Same(oldNode, newNode);
5025Assert.Same(oldNode, newNode);
5051Assert.Same(oldNode, newNode);
5077Assert.Same(oldNode, newNode);
5103Assert.Same(oldNode, newNode);
5129Assert.Same(oldNode, newNode);
5155Assert.Same(oldNode, newNode);
5181Assert.Same(oldNode, newNode);
5207Assert.Same(oldNode, newNode);
5233Assert.Same(oldNode, newNode);
5259Assert.Same(oldNode, newNode);
5285Assert.Same(oldNode, newNode);
5311Assert.Same(oldNode, newNode);
5337Assert.Same(oldNode, newNode);
5363Assert.Same(oldNode, newNode);
5389Assert.Same(oldNode, newNode);
5415Assert.Same(oldNode, newNode);
5441Assert.Same(oldNode, newNode);
5467Assert.Same(oldNode, newNode);
5493Assert.Same(oldNode, newNode);
5519Assert.Same(oldNode, newNode);
5545Assert.Same(oldNode, newNode);
5571Assert.Same(oldNode, newNode);
5597Assert.Same(oldNode, newNode);
5623Assert.Same(oldNode, newNode);
5649Assert.Same(oldNode, newNode);
5675Assert.Same(oldNode, newNode);
5701Assert.Same(oldNode, newNode);
5727Assert.Same(oldNode, newNode);
5753Assert.Same(oldNode, newNode);
5779Assert.Same(oldNode, newNode);
5805Assert.Same(oldNode, newNode);
5831Assert.Same(oldNode, newNode);
5857Assert.Same(oldNode, newNode);
5883Assert.Same(oldNode, newNode);
5909Assert.Same(oldNode, newNode);
5935Assert.Same(oldNode, newNode);
5961Assert.Same(oldNode, newNode);
5987Assert.Same(oldNode, newNode);
6013Assert.Same(oldNode, newNode);
6039Assert.Same(oldNode, newNode);
6065Assert.Same(oldNode, newNode);
6091Assert.Same(oldNode, newNode);
6117Assert.Same(oldNode, newNode);
6143Assert.Same(oldNode, newNode);
6169Assert.Same(oldNode, newNode);
6195Assert.Same(oldNode, newNode);
6221Assert.Same(oldNode, newNode);
6247Assert.Same(oldNode, newNode);
6273Assert.Same(oldNode, newNode);
6299Assert.Same(oldNode, newNode);
6325Assert.Same(oldNode, newNode);
6351Assert.Same(oldNode, newNode);
6377Assert.Same(oldNode, newNode);
6403Assert.Same(oldNode, newNode);
6429Assert.Same(oldNode, newNode);
6455Assert.Same(oldNode, newNode);
6481Assert.Same(oldNode, newNode);
6507Assert.Same(oldNode, newNode);
6533Assert.Same(oldNode, newNode);
6559Assert.Same(oldNode, newNode);
6585Assert.Same(oldNode, newNode);
6611Assert.Same(oldNode, newNode);
6637Assert.Same(oldNode, newNode);
6663Assert.Same(oldNode, newNode);
6689Assert.Same(oldNode, newNode);
6715Assert.Same(oldNode, newNode);
6741Assert.Same(oldNode, newNode);
6767Assert.Same(oldNode, newNode);
6793Assert.Same(oldNode, newNode);
6819Assert.Same(oldNode, newNode);
6845Assert.Same(oldNode, newNode);
6871Assert.Same(oldNode, newNode);
6897Assert.Same(oldNode, newNode);
6923Assert.Same(oldNode, newNode);
6949Assert.Same(oldNode, newNode);
6975Assert.Same(oldNode, newNode);
7001Assert.Same(oldNode, newNode);
7027Assert.Same(oldNode, newNode);
7053Assert.Same(oldNode, newNode);
7079Assert.Same(oldNode, newNode);
7105Assert.Same(oldNode, newNode);
7131Assert.Same(oldNode, newNode);
7157Assert.Same(oldNode, newNode);
7183Assert.Same(oldNode, newNode);
7209Assert.Same(oldNode, newNode);
7235Assert.Same(oldNode, newNode);
7261Assert.Same(oldNode, newNode);
7287Assert.Same(oldNode, newNode);
7313Assert.Same(oldNode, newNode);
7339Assert.Same(oldNode, newNode);
7365Assert.Same(oldNode, newNode);
7391Assert.Same(oldNode, newNode);
7417Assert.Same(oldNode, newNode);
7443Assert.Same(oldNode, newNode);
7469Assert.Same(oldNode, newNode);
7495Assert.Same(oldNode, newNode);
7521Assert.Same(oldNode, newNode);
7547Assert.Same(oldNode, newNode);
7573Assert.Same(oldNode, newNode);
7599Assert.Same(oldNode, newNode);
7625Assert.Same(oldNode, newNode);
7651Assert.Same(oldNode, newNode);
7677Assert.Same(oldNode, newNode);
7703Assert.Same(oldNode, newNode);
7729Assert.Same(oldNode, newNode);
7755Assert.Same(oldNode, newNode);
7781Assert.Same(oldNode, newNode);
7807Assert.Same(oldNode, newNode);
7833Assert.Same(oldNode, newNode);
7859Assert.Same(oldNode, newNode);
7885Assert.Same(oldNode, newNode);
7911Assert.Same(oldNode, newNode);
7937Assert.Same(oldNode, newNode);
7963Assert.Same(oldNode, newNode);
7989Assert.Same(oldNode, newNode);
8015Assert.Same(oldNode, newNode);
8041Assert.Same(oldNode, newNode);
8067Assert.Same(oldNode, newNode);
8093Assert.Same(oldNode, newNode);
8119Assert.Same(oldNode, newNode);
8145Assert.Same(oldNode, newNode);
8171Assert.Same(oldNode, newNode);
8197Assert.Same(oldNode, newNode);
8223Assert.Same(oldNode, newNode);
8249Assert.Same(oldNode, newNode);
8275Assert.Same(oldNode, newNode);
8301Assert.Same(oldNode, newNode);
8327Assert.Same(oldNode, newNode);
8353Assert.Same(oldNode, newNode);
8379Assert.Same(oldNode, newNode);
8405Assert.Same(oldNode, newNode);
8431Assert.Same(oldNode, newNode);
8457Assert.Same(oldNode, newNode);
8483Assert.Same(oldNode, newNode);
8509Assert.Same(oldNode, newNode);
8535Assert.Same(oldNode, newNode);
8561Assert.Same(oldNode, newNode);
8587Assert.Same(oldNode, newNode);
8613Assert.Same(oldNode, newNode);
8639Assert.Same(oldNode, newNode);
8665Assert.Same(oldNode, newNode);
8691Assert.Same(oldNode, newNode);
8717Assert.Same(oldNode, newNode);
8743Assert.Same(oldNode, newNode);
8769Assert.Same(oldNode, newNode);
8795Assert.Same(oldNode, newNode);
8821Assert.Same(oldNode, newNode);
8847Assert.Same(oldNode, newNode);
8873Assert.Same(oldNode, newNode);
8899Assert.Same(oldNode, newNode);
8925Assert.Same(oldNode, newNode);
8951Assert.Same(oldNode, newNode);
8977Assert.Same(oldNode, newNode);
9003Assert.Same(oldNode, newNode);
9029Assert.Same(oldNode, newNode);
9055Assert.Same(oldNode, newNode);
9081Assert.Same(oldNode, newNode);
9107Assert.Same(oldNode, newNode);
9133Assert.Same(oldNode, newNode);
9159Assert.Same(oldNode, newNode);
9185Assert.Same(oldNode, newNode);
9211Assert.Same(oldNode, newNode);
9237Assert.Same(oldNode, newNode);
9263Assert.Same(oldNode, newNode);
9289Assert.Same(oldNode, newNode);
9315Assert.Same(oldNode, newNode);
9341Assert.Same(oldNode, newNode);
9367Assert.Same(oldNode, newNode);
9393Assert.Same(oldNode, newNode);
9419Assert.Same(oldNode, newNode);
9445Assert.Same(oldNode, newNode);
9471Assert.Same(oldNode, newNode);
9497Assert.Same(oldNode, newNode);
9523Assert.Same(oldNode, newNode);
9549Assert.Same(oldNode, newNode);
9575Assert.Same(oldNode, newNode);
9601Assert.Same(oldNode, newNode);
9627Assert.Same(oldNode, newNode);
9653Assert.Same(oldNode, newNode);
9679Assert.Same(oldNode, newNode);
9705Assert.Same(oldNode, newNode);
9731Assert.Same(oldNode, newNode);
9757Assert.Same(oldNode, newNode);
9783Assert.Same(oldNode, newNode);
9809Assert.Same(oldNode, newNode);
9835Assert.Same(oldNode, newNode);
9861Assert.Same(oldNode, newNode);
9887Assert.Same(oldNode, newNode);
9913Assert.Same(oldNode, newNode);
9939Assert.Same(oldNode, newNode);
9965Assert.Same(oldNode, newNode);
9991Assert.Same(oldNode, newNode);
10017Assert.Same(oldNode, newNode);
10043Assert.Same(oldNode, newNode);
10069Assert.Same(oldNode, newNode);
10095Assert.Same(oldNode, newNode);
10121Assert.Same(oldNode, newNode);
10147Assert.Same(oldNode, newNode);
10173Assert.Same(oldNode, newNode);
10199Assert.Same(oldNode, newNode);
10225Assert.Same(oldNode, newNode);
10251Assert.Same(oldNode, newNode);
10277Assert.Same(oldNode, newNode);
10303Assert.Same(oldNode, newNode);
10329Assert.Same(oldNode, newNode);
10355Assert.Same(oldNode, newNode);
14309Assert.Same(oldNode, newNode);
14335Assert.Same(oldNode, newNode);
14361Assert.Same(oldNode, newNode);
14387Assert.Same(oldNode, newNode);
14413Assert.Same(oldNode, newNode);
14439Assert.Same(oldNode, newNode);
14465Assert.Same(oldNode, newNode);
14491Assert.Same(oldNode, newNode);
14517Assert.Same(oldNode, newNode);
14543Assert.Same(oldNode, newNode);
14569Assert.Same(oldNode, newNode);
14595Assert.Same(oldNode, newNode);
14621Assert.Same(oldNode, newNode);
14647Assert.Same(oldNode, newNode);
14673Assert.Same(oldNode, newNode);
14699Assert.Same(oldNode, newNode);
14725Assert.Same(oldNode, newNode);
14751Assert.Same(oldNode, newNode);
14777Assert.Same(oldNode, newNode);
14803Assert.Same(oldNode, newNode);
14829Assert.Same(oldNode, newNode);
14855Assert.Same(oldNode, newNode);
14881Assert.Same(oldNode, newNode);
14907Assert.Same(oldNode, newNode);
14933Assert.Same(oldNode, newNode);
14959Assert.Same(oldNode, newNode);
14985Assert.Same(oldNode, newNode);
15011Assert.Same(oldNode, newNode);
15037Assert.Same(oldNode, newNode);
15063Assert.Same(oldNode, newNode);
15089Assert.Same(oldNode, newNode);
15115Assert.Same(oldNode, newNode);
15141Assert.Same(oldNode, newNode);
15167Assert.Same(oldNode, newNode);
15193Assert.Same(oldNode, newNode);
15219Assert.Same(oldNode, newNode);
15245Assert.Same(oldNode, newNode);
15271Assert.Same(oldNode, newNode);
15297Assert.Same(oldNode, newNode);
15323Assert.Same(oldNode, newNode);
15349Assert.Same(oldNode, newNode);
15375Assert.Same(oldNode, newNode);
15401Assert.Same(oldNode, newNode);
15427Assert.Same(oldNode, newNode);
15453Assert.Same(oldNode, newNode);
15479Assert.Same(oldNode, newNode);
15505Assert.Same(oldNode, newNode);
15531Assert.Same(oldNode, newNode);
15557Assert.Same(oldNode, newNode);
15583Assert.Same(oldNode, newNode);
15609Assert.Same(oldNode, newNode);
15635Assert.Same(oldNode, newNode);
15661Assert.Same(oldNode, newNode);
15687Assert.Same(oldNode, newNode);
15713Assert.Same(oldNode, newNode);
15739Assert.Same(oldNode, newNode);
15765Assert.Same(oldNode, newNode);
15791Assert.Same(oldNode, newNode);
15817Assert.Same(oldNode, newNode);
15843Assert.Same(oldNode, newNode);
15869Assert.Same(oldNode, newNode);
15895Assert.Same(oldNode, newNode);
15921Assert.Same(oldNode, newNode);
15947Assert.Same(oldNode, newNode);
15973Assert.Same(oldNode, newNode);
15999Assert.Same(oldNode, newNode);
16025Assert.Same(oldNode, newNode);
16051Assert.Same(oldNode, newNode);
16077Assert.Same(oldNode, newNode);
16103Assert.Same(oldNode, newNode);
16129Assert.Same(oldNode, newNode);
16155Assert.Same(oldNode, newNode);
16181Assert.Same(oldNode, newNode);
16207Assert.Same(oldNode, newNode);
16233Assert.Same(oldNode, newNode);
16259Assert.Same(oldNode, newNode);
16285Assert.Same(oldNode, newNode);
16311Assert.Same(oldNode, newNode);
16337Assert.Same(oldNode, newNode);
16363Assert.Same(oldNode, newNode);
16389Assert.Same(oldNode, newNode);
16415Assert.Same(oldNode, newNode);
16441Assert.Same(oldNode, newNode);
16467Assert.Same(oldNode, newNode);
16493Assert.Same(oldNode, newNode);
16519Assert.Same(oldNode, newNode);
16545Assert.Same(oldNode, newNode);
16571Assert.Same(oldNode, newNode);
16597Assert.Same(oldNode, newNode);
16623Assert.Same(oldNode, newNode);
16649Assert.Same(oldNode, newNode);
16675Assert.Same(oldNode, newNode);
16701Assert.Same(oldNode, newNode);
16727Assert.Same(oldNode, newNode);
16753Assert.Same(oldNode, newNode);
16779Assert.Same(oldNode, newNode);
16805Assert.Same(oldNode, newNode);
16831Assert.Same(oldNode, newNode);
16857Assert.Same(oldNode, newNode);
16883Assert.Same(oldNode, newNode);
16909Assert.Same(oldNode, newNode);
16935Assert.Same(oldNode, newNode);
16961Assert.Same(oldNode, newNode);
16987Assert.Same(oldNode, newNode);
17013Assert.Same(oldNode, newNode);
17039Assert.Same(oldNode, newNode);
17065Assert.Same(oldNode, newNode);
17091Assert.Same(oldNode, newNode);
17117Assert.Same(oldNode, newNode);
17143Assert.Same(oldNode, newNode);
17169Assert.Same(oldNode, newNode);
17195Assert.Same(oldNode, newNode);
17221Assert.Same(oldNode, newNode);
17247Assert.Same(oldNode, newNode);
17273Assert.Same(oldNode, newNode);
17299Assert.Same(oldNode, newNode);
17325Assert.Same(oldNode, newNode);
17351Assert.Same(oldNode, newNode);
17377Assert.Same(oldNode, newNode);
17403Assert.Same(oldNode, newNode);
17429Assert.Same(oldNode, newNode);
17455Assert.Same(oldNode, newNode);
17481Assert.Same(oldNode, newNode);
17507Assert.Same(oldNode, newNode);
17533Assert.Same(oldNode, newNode);
17559Assert.Same(oldNode, newNode);
17585Assert.Same(oldNode, newNode);
17611Assert.Same(oldNode, newNode);
17637Assert.Same(oldNode, newNode);
17663Assert.Same(oldNode, newNode);
17689Assert.Same(oldNode, newNode);
17715Assert.Same(oldNode, newNode);
17741Assert.Same(oldNode, newNode);
17767Assert.Same(oldNode, newNode);
17793Assert.Same(oldNode, newNode);
17819Assert.Same(oldNode, newNode);
17845Assert.Same(oldNode, newNode);
17871Assert.Same(oldNode, newNode);
17897Assert.Same(oldNode, newNode);
17923Assert.Same(oldNode, newNode);
17949Assert.Same(oldNode, newNode);
17975Assert.Same(oldNode, newNode);
18001Assert.Same(oldNode, newNode);
18027Assert.Same(oldNode, newNode);
18053Assert.Same(oldNode, newNode);
18079Assert.Same(oldNode, newNode);
18105Assert.Same(oldNode, newNode);
18131Assert.Same(oldNode, newNode);
18157Assert.Same(oldNode, newNode);
18183Assert.Same(oldNode, newNode);
18209Assert.Same(oldNode, newNode);
18235Assert.Same(oldNode, newNode);
18261Assert.Same(oldNode, newNode);
18287Assert.Same(oldNode, newNode);
18313Assert.Same(oldNode, newNode);
18339Assert.Same(oldNode, newNode);
18365Assert.Same(oldNode, newNode);
18391Assert.Same(oldNode, newNode);
18417Assert.Same(oldNode, newNode);
18443Assert.Same(oldNode, newNode);
18469Assert.Same(oldNode, newNode);
18495Assert.Same(oldNode, newNode);
18521Assert.Same(oldNode, newNode);
18547Assert.Same(oldNode, newNode);
18573Assert.Same(oldNode, newNode);
18599Assert.Same(oldNode, newNode);
18625Assert.Same(oldNode, newNode);
18651Assert.Same(oldNode, newNode);
18677Assert.Same(oldNode, newNode);
18703Assert.Same(oldNode, newNode);
18729Assert.Same(oldNode, newNode);
18755Assert.Same(oldNode, newNode);
18781Assert.Same(oldNode, newNode);
18807Assert.Same(oldNode, newNode);
18833Assert.Same(oldNode, newNode);
18859Assert.Same(oldNode, newNode);
18885Assert.Same(oldNode, newNode);
18911Assert.Same(oldNode, newNode);
18937Assert.Same(oldNode, newNode);
18963Assert.Same(oldNode, newNode);
18989Assert.Same(oldNode, newNode);
19015Assert.Same(oldNode, newNode);
19041Assert.Same(oldNode, newNode);
19067Assert.Same(oldNode, newNode);
19093Assert.Same(oldNode, newNode);
19119Assert.Same(oldNode, newNode);
19145Assert.Same(oldNode, newNode);
19171Assert.Same(oldNode, newNode);
19197Assert.Same(oldNode, newNode);
19223Assert.Same(oldNode, newNode);
19249Assert.Same(oldNode, newNode);
19275Assert.Same(oldNode, newNode);
19301Assert.Same(oldNode, newNode);
19327Assert.Same(oldNode, newNode);
19353Assert.Same(oldNode, newNode);
19379Assert.Same(oldNode, newNode);
19405Assert.Same(oldNode, newNode);
19431Assert.Same(oldNode, newNode);
19457Assert.Same(oldNode, newNode);
19483Assert.Same(oldNode, newNode);
19509Assert.Same(oldNode, newNode);
19535Assert.Same(oldNode, newNode);
19561Assert.Same(oldNode, newNode);
19587Assert.Same(oldNode, newNode);
19613Assert.Same(oldNode, newNode);
19639Assert.Same(oldNode, newNode);
19665Assert.Same(oldNode, newNode);
19691Assert.Same(oldNode, newNode);
19717Assert.Same(oldNode, newNode);
19743Assert.Same(oldNode, newNode);
19769Assert.Same(oldNode, newNode);
19795Assert.Same(oldNode, newNode);
19821Assert.Same(oldNode, newNode);
19847Assert.Same(oldNode, newNode);
19873Assert.Same(oldNode, newNode);
19899Assert.Same(oldNode, newNode);
19925Assert.Same(oldNode, newNode);
19951Assert.Same(oldNode, newNode);
19977Assert.Same(oldNode, newNode);
20003Assert.Same(oldNode, newNode);
20029Assert.Same(oldNode, newNode);
20055Assert.Same(oldNode, newNode);
20081Assert.Same(oldNode, newNode);
20107Assert.Same(oldNode, newNode);
20133Assert.Same(oldNode, newNode);
20159Assert.Same(oldNode, newNode);
20185Assert.Same(oldNode, newNode);
20211Assert.Same(oldNode, newNode);
20237Assert.Same(oldNode, newNode);
20263Assert.Same(oldNode, newNode);
20289Assert.Same(oldNode, newNode);
20315Assert.Same(oldNode, newNode);
20341Assert.Same(oldNode, newNode);
20367Assert.Same(oldNode, newNode);
20393Assert.Same(oldNode, newNode);
20419Assert.Same(oldNode, newNode);
20445Assert.Same(oldNode, newNode);
20471Assert.Same(oldNode, newNode);
20497Assert.Same(oldNode, newNode);
20523Assert.Same(oldNode, newNode);
20549Assert.Same(oldNode, newNode);
20575Assert.Same(oldNode, newNode);
20601Assert.Same(oldNode, newNode);
20627Assert.Same(oldNode, newNode);
20653Assert.Same(oldNode, newNode);
20679Assert.Same(oldNode, newNode);
20705Assert.Same(oldNode, newNode);
Syntax\SyntaxFactoryTests.cs (11)
201Assert.Same(expectedGreen, actualGreen); // Don't create a new token if we don't have to.
688Assert.Same(parseOptions, argList.SyntaxTree.Options);
691Assert.Same(parseOptions, attrArgList.SyntaxTree.Options);
694Assert.Same(parseOptions, bracketedArgList.SyntaxTree.Options);
697Assert.Same(parseOptions, bracketedParamList.SyntaxTree.Options);
700Assert.Same(parseOptions, compUnit.SyntaxTree.Options);
703Assert.Same(parseOptions, expr.SyntaxTree.Options);
706Assert.Same(parseOptions, memberDecl.SyntaxTree.Options);
709Assert.Same(parseOptions, paramList.SyntaxTree.Options);
712Assert.Same(parseOptions, statement.SyntaxTree.Options);
715Assert.Same(parseOptions, typeName.SyntaxTree.Options);
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 (8)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (3)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (14)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (13)
1547Assert.Same(encoding, text.Encoding);
3280Assert.Same(readers[0], baselineReaders[0]);
3281Assert.Same(readers[1], baselineReaders[1]);
3284Assert.Same(newBaseline.EmitBaseline, debuggingSession.GetTestAccessor().GetProjectBaselines(document2.Project.Id).Single().EmitBaseline);
3412Assert.Same(newBaseline.EmitBaseline, debuggingSession.GetTestAccessor().GetProjectBaselines(document2.Project.Id).Single().EmitBaseline);
4199Assert.Same(newBaselineA1, debuggingSession.GetTestAccessor().GetProjectBaselines(projectA.Id).Single().EmitBaseline);
4200Assert.Same(newBaselineB1, debuggingSession.GetTestAccessor().GetProjectBaselines(projectB.Id).Single().EmitBaseline);
4232Assert.Same(baselineA0, newBaselineA2.GetInitialEmitBaseline());
4233Assert.Same(baselineB0, newBaselineB2.GetInitialEmitBaseline());
4234Assert.Same(baselineA0.OriginalMetadata, newBaselineA2.OriginalMetadata);
4235Assert.Same(baselineB0.OriginalMetadata, newBaselineB2.OriginalMetadata);
4252Assert.Same(newBaselineA2, debuggingSession.GetTestAccessor().GetProjectBaselines(projectA.Id).Single().EmitBaseline);
4253Assert.Same(newBaselineB2, debuggingSession.GetTestAccessor().GetProjectBaselines(projectB.Id).Single().EmitBaseline);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.Scripting.UnitTests (6)
Microsoft.CodeAnalysis.Test.Utilities (90)
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\TestOperationVisitor.cs (52)
78Assert.Same(builder[0], operation.ChildOperations.First());
79Assert.Same(builder[^1], operation.ChildOperations.Last());
86Assert.Same(first, forwards.Current);
93Assert.Same(last, reversed.Current);
104Assert.Same(child, builder[--count]);
112Assert.Same(operation.SemanticModel, operation.SemanticModel.ContainingPublicModelOrSelf);
186Assert.Same(root, ((SwitchCaseOperation)root.Parent).Condition);
377Assert.Same(operation.Operation, operation.ChildOperations.Single());
416Assert.Same(operation.ReturnedValue, operation.ChildOperations.Single());
497Assert.Same(operation.Operand, operation.ChildOperations.Single());
509Assert.Same(operation.Operation, operation.ChildOperations.Single());
572Assert.Same(((IFunctionPointerTypeSymbol)operation.Target.Type).Signature, signature);
583Assert.Same(operation.Value, operation.ChildOperations.Single());
623Assert.Same(operation.Pointer, operation.ChildOperations.Single());
686Assert.Same(operation.Member, operation.Field);
695Assert.Same(operation.Member, operation.Method);
709Assert.Same(operation.Member, operation.Property);
717Assert.Same(operation.Member, operation.Event);
756Assert.Same(operation.Operand, operation.ChildOperations.Single());
864Assert.Same(operation.Operand, operation.ChildOperations.Single());
920Assert.Same(operation.ValueOperand, operation.ChildOperations.Single());
941Assert.Same(operation.Body, operation.ChildOperations.Single());
959Assert.Same(operation.Body, children[0]);
962Assert.Same(operation.IgnoredBody, children[1]);
993Assert.Same(operation.Operation, operation.ChildOperations.Single());
999Assert.Same(operation.Argument, operation.ChildOperations.Single());
1011Assert.Same(operation.Exception, operation.ChildOperations.Single());
1018Assert.Same(operation.Reference, operation.ChildOperations.Single());
1100Assert.Same(operation.Value, operation.ChildOperations.Single());
1207Assert.Same(operation.Target, operation.ChildOperations.Single());
1213Assert.Same(operation.Operand, operation.ChildOperations.Single());
1234Assert.Same(operation.Instance, operation.ChildOperations.Single());
1253Assert.Same(operation.Initializer, operation.ChildOperations.Single());
1266Assert.Same(operation.Initializer, operation.ChildOperations.Single());
1295Assert.Same(operation.Text, operation.ChildOperations.Single());
1370Assert.Same(operation.Value, operation.ChildOperations.Single());
1383Assert.Same(operation.Value, operation.ChildOperations.Single());
1393Assert.Same(operation.LeftPattern, children[0]);
1394Assert.Same(operation.RightPattern, children[1]);
1401Assert.Same(operation.Pattern, operation.ChildOperations.Single());
1452Assert.Same(operation.Pattern, operation.ChildOperations.Single());
1582Assert.Same(((ICaseClauseOperation)operation).Label, operation.Label);
1590Assert.Same(operation.Pattern, operation.ChildOperations.Single());
1597Assert.Same(operation.Operation, operation.ChildOperations.Single());
1603Assert.Same(operation.Expression, operation.ChildOperations.Single());
1615Assert.Same(operation.Target, operation.ChildOperations.Single());
1671Assert.Same(operation.BlockBody, operation.ChildOperations.Single());
1676Assert.Same(operation.ExpressionBody, operation.ChildOperations.Single());
1704Assert.Same(operation.Value, operation.ChildOperations.Single());
1743Assert.Same(operation.Operand, operation.ChildOperations.Single());
1772Assert.Same(operation.LeftOperand, children[index++]);
1777Assert.Same(operation.RightOperand, children[index++]);
Microsoft.CodeAnalysis.UnitTests (149)
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\ImmutableSegmentedDictionaryTest.cs (15)
97Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer);
101Assert.Same(keyComparer, dictionary.KeyComparer);
105Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer);
109Assert.Same(keyComparer, dictionary.KeyComparer);
120Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer);
124Assert.Same(keyComparer, dictionary.KeyComparer);
130Assert.Same(EqualityComparer<string>.Default, dictionary.KeyComparer);
136Assert.Same(keyComparer, dictionary.KeyComparer);
145Assert.Same(StringComparer.OrdinalIgnoreCase, stringIntDictionary.KeyComparer);
167Assert.Same(cultureComparer, result.KeyComparer);
174Assert.Same(EqualityComparer<string>.Default, map.KeyComparer);
179Assert.Same(StringComparer.OrdinalIgnoreCase, map.KeyComparer);
193Assert.Same(StringComparer.OrdinalIgnoreCase, map.KeyComparer);
217Assert.Same(EqualityComparer<string>.Default, map.KeyComparer);
219Assert.Same(StringComparer.OrdinalIgnoreCase, map.KeyComparer);
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]);
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);
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);
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.UnitTests (136)
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 (68)
180Assert.Same(newSolution1, newSolution2);
200Assert.Same(newSolution2, newSolution1);
207Assert.Same(newSolution3, newSolution4);
210Assert.Same(newSolution3, newSolution5);
232Assert.Same(newSolution1, newSolution2);
253Assert.Same(solution, solution.WithDocumentSourceCodeKind(documentId, SourceCodeKind.Regular));
315Assert.Same(newSolution1, newSolution2);
354Assert.Same(text, actualText);
357Assert.Same(newSolution1, newSolution2);
377Assert.Same(textAndVersion.Text, actualText);
381Assert.Same(newSolution1, newSolution2);
400Assert.Same(text, actualText);
403Assert.Same(newSolution1, newSolution2);
406Assert.Same(solution, solution.WithDocumentText([null!], text));
407Assert.Same(solution, solution.WithDocumentText([s_unrelatedDocumentId], text));
922Assert.Same(text, actualText);
925Assert.Same(newSolution1, newSolution2);
945Assert.Same(textAndVersion.Text, actualText);
949Assert.Same(newSolution1, newSolution2);
968Assert.Same(text, actualText);
971Assert.Same(newSolution1, newSolution2);
991Assert.Same(textAndVersion.Text, actualText);
995Assert.Same(newSolution1, newSolution2);
1233Assert.Same(DefaultTextDocumentServiceProvider.Instance, newDocument1.DocumentServiceProvider);
1235Assert.Same(Encoding.UTF32, newText1.Encoding);
1242Assert.Same(newDocumentInfo3.DocumentServiceProvider, newDocument3.DocumentServiceProvider);
1244Assert.Same(Encoding.UTF8, newText3.Encoding);
1254Assert.Same(DefaultTextDocumentServiceProvider.Instance, newAddDocument1.DocumentServiceProvider);
1256Assert.Same(Encoding.UTF32, newAddText1.Encoding);
1263Assert.Same(newAddDocumentInfo3.DocumentServiceProvider, newAddDocument3.DocumentServiceProvider);
1265Assert.Same(Encoding.UTF8, newAddText3.Encoding);
1275Assert.Same(DefaultTextDocumentServiceProvider.Instance, newConfigDocument1.DocumentServiceProvider);
1277Assert.Same(Encoding.UTF32, newConfigText1.Encoding);
1284Assert.Same(newConfigDocumentInfo3.DocumentServiceProvider, newConfigDocument3.DocumentServiceProvider);
1286Assert.Same(Encoding.UTF8, newConfigText3.Encoding);
1445Assert.Same(newSolution, newSolution.WithProjectAssemblyName(projectId, assemblyName));
1933Assert.Same(projectRefs, solution2.GetProject(projectId)!.AllProjectReferences);
1953Assert.Same(projectRefs, newSolution1.GetProject(projectId)!.AllProjectReferences);
1979Assert.Same(solution, solution2);
2098Assert.Same(solution, solution2);
2168Assert.Same(solution, solution2);
2178Assert.Same(solution, solution2);
2236Assert.Same(solution, solution2);
2246Assert.Same(solution, solution2);
2706Assert.Same(solution, solution.RemoveDocuments([]));
3079Assert.Same(newParseOptions, newUpdatedParseOptions);
3278Assert.Same(tree, root.SyntaxTree);
3279Assert.Same(tree, tree.WithRootAndOptions(root, tree.Options));
3280Assert.Same(tree, tree.WithFilePath(tree.FilePath));
3816Assert.Same(tree2, tree2.GetRoot().SyntaxTree);
3817Assert.Same(tree.Options, tree2.Options);
3818Assert.Same(tree.Encoding, tree2.Encoding);
3823Assert.Same(tree, tree.WithFilePath("old path"));
3844Assert.Same(tree3, tree3.GetRoot().SyntaxTree);
3845Assert.Same(tree.Options, tree3.Options);
3846Assert.Same(tree.Encoding, tree3.Encoding);
3855Assert.Same(tree4, tree4.GetRoot().SyntaxTree);
3856Assert.Same(newOptions, tree4.Options);
3857Assert.Same(tree.Encoding, tree4.Encoding);
3862Assert.Same(tree, tree.WithRootAndOptions(tree.GetRoot(), tree.Options));
4164Assert.Same(frozenDocument, frozenDocument2);
4325Assert.Same(await frozenDocument.GetSyntaxTreeAsync(), singleTree);
4723Assert.Same(originalSyntaxTree, newSyntaxTree);
4890Assert.Same(originalSyntaxTree, newSyntaxTree);
5087Assert.Same(compilation1, compilation1New);
5263Assert.Same(compilation1, compilation1New);
5490Assert.Same(newDocText, sameText);
5494Assert.Same(newDocText, treeText);
SolutionTests\SolutionWithSourceGeneratorTests.cs (14)
74Assert.Same(generatedTree, await generatedDocument.GetSyntaxTreeAsync());
355Assert.Same(partialProject, project);
359Assert.Same(fullCompilation, partialCompilation);
437Assert.Same(compilationWithGenerator, compilationReference.Compilation);
451Assert.Same(syntaxTree, await generatedDocument.GetSyntaxTreeAsync());
474Assert.Same(syntaxTree, await generatedDocument.GetSyntaxTreeAsync());
494Assert.Same(generatedTreeBeforeChange, generatedTreeAfterChange);
554Assert.Same(cachedStateAfterFirstChange, cachedStateAfterSecondChange);
601Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
625Assert.Same(workspace.CurrentSolution, generatedDocument!.Project.Solution);
649Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
937Assert.Same(project.Solution, frozenSolution.Project.Solution);
1103Assert.Same(root, await sourceGeneratedDocument.GetSyntaxRootAsync());
1107Assert.Same(root, await updatedDocument.GetSyntaxRootAsync());
SolutionTests\TextLoaderTests.cs (6)
118Assert.Same(LoaderOverridesObsolete.Value, await loader.LoadTextAndVersionAsync(new LoadTextOptions(SourceHashAlgorithms.Default), CancellationToken.None));
119Assert.Same(LoaderOverridesObsolete.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None));
126Assert.Same(LoaderOverridesObsolete2.Value, await loader.LoadTextAndVersionAsync(new LoadTextOptions(SourceHashAlgorithms.Default), CancellationToken.None));
127Assert.Same(LoaderOverridesObsolete2.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None));
134Assert.Same(LoaderOverridesNew.Value, await loader.LoadTextAndVersionAsync(new LoadTextOptions(SourceHashAlgorithms.Default), CancellationToken.None));
135Assert.Same(LoaderOverridesNew.Value, await loader.LoadTextAndVersionAsync(workspace: null, documentId: null, CancellationToken.None));
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (6)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.XUnitAssert.Tests (27)
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);
Microsoft.Extensions.AI.Abstractions.Tests (143)
ChatCompletion\ChatMessageTests.cs (11)
25Assert.Same(message.Contents, message.Contents);
41Assert.Same(message.Contents, message.Contents);
98Assert.Same(message.Contents, message.Contents);
183Assert.Same(contents, message.Contents);
186Assert.Same(contents, message.Contents);
203Assert.Same(raw, message.RawRepresentation);
206Assert.Same(raw, message.RawRepresentation);
212Assert.Same(raw, message.RawRepresentation);
224Assert.Same(props, message.AdditionalProperties);
227Assert.Same(props, message.AdditionalProperties);
233Assert.Same(props, message.AdditionalProperties);
ChatCompletion\DelegatingChatClientTests.cs (10)
33Assert.Same(expectedChatContents, chatContents);
34Assert.Same(expectedChatOptions, options);
49Assert.Same(expectedResponse, await resultTask);
69Assert.Same(expectedChatContents, chatContents);
70Assert.Same(expectedChatOptions, options);
84Assert.Same(expectedResults[0], enumerator.Current);
86Assert.Same(expectedResults[1], enumerator.Current);
109Assert.Same(delegating, client);
129Assert.Same(expectedResult, client);
151Assert.Same(expectedResult, tzi);
Embeddings\GeneratedEmbeddingsTests.cs (16)
69Assert.Same(embeddings[0], generatedEmbeddings[0]);
70Assert.Same(embeddings[1], generatedEmbeddings[1]);
89Assert.Same(e, generatedEmbeddings[2]);
101Assert.Same(usage, embeddings.Usage);
108Assert.Same(props, embeddings.AdditionalProperties);
121Assert.Same(e, embeddings[0]);
135Assert.Same(e1, embeddings[0]);
136Assert.Same(e2, embeddings[1]);
168Assert.Same(e2, embeddings[0]);
172Assert.Same(e2, embeddings[0]);
191Assert.Same(e2, embeddings[0]);
211Assert.Same(e3, embeddings[1]);
212Assert.Same(e2, embeddings[2]);
229Assert.Same(e1, embeddings[0]);
230Assert.Same(e3, embeddings[1]);
262Assert.Same(expectedGeneratedEmbeddings, actual);
SpeechToText\DelegatingSpeechToTextClientTests.cs (10)
34Assert.Same(expectedAudioSpeechStream, audioSpeechStream);
35Assert.Same(expectedOptions, options);
50Assert.Same(expectedResponse, await resultTask);
70Assert.Same(expectedAudioSpeechStream, audioSpeechStream);
71Assert.Same(expectedOptions, options);
85Assert.Same(expectedResults[0], enumerator.Current);
87Assert.Same(expectedResults[1], enumerator.Current);
110Assert.Same(delegating, client);
130Assert.Same(expectedResult, client);
152Assert.Same(expectedResult, tzi);
Microsoft.Extensions.AI.AzureAIInference.Tests (9)
Microsoft.Extensions.AI.OpenAI.Tests (21)
Microsoft.Extensions.AI.Tests (91)
ChatCompletion\UseDelegateChatClientTests.cs (22)
38Assert.Same(expectedMessages, messages);
39Assert.Same(expectedOptions, options);
47Assert.Same(expectedMessages, messages);
48Assert.Same(expectedOptions, options);
58Assert.Same(expectedMessages, messages);
59Assert.Same(expectedOptions, options);
87Assert.Same(expectedMessages, messages);
88Assert.Same(expectedOptions, options);
98Assert.Same(expectedMessages, messages);
99Assert.Same(expectedOptions, options);
129Assert.Same(expectedMessages, messages);
130Assert.Same(expectedOptions, options);
140Assert.Same(expectedMessages, messages);
141Assert.Same(expectedOptions, options);
180Assert.Same(expectedMessages, messages);
181Assert.Same(expectedOptions, options);
189Assert.Same(expectedMessages, messages);
190Assert.Same(expectedOptions, options);
201Assert.Same(expectedMessages, messages);
202Assert.Same(expectedOptions, options);
211Assert.Same(expectedMessages, messages);
212Assert.Same(expectedOptions, options);
Functions\AIFunctionFactoryTest.cs (15)
220Assert.Same(dotnetFunc.Method, func.UnderlyingMethod);
226Assert.Same(dotnetFunc2.Method, func.UnderlyingMethod);
232Assert.Same(dotnetFunc3.Method, func.UnderlyingMethod);
255Assert.Same(metadata, options.AdditionalProperties);
256Assert.Same(getBindParameterMode, options.ConfigureParameterBinding);
263Assert.Same(dotnetFunc.Method, func.UnderlyingMethod);
339Assert.Same(sp, services1);
340Assert.Same(sp, services2);
341Assert.Same(sp, services3);
342Assert.Same(sp, services4);
344Assert.Same(arguments, arguments1);
345Assert.Same(arguments, arguments2);
346Assert.Same(arguments, arguments3);
347Assert.Same(arguments, arguments4);
416Assert.Same(mat, result?.Item2);
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 (11)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (8)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (3)
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>>());
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)
Microsoft.Extensions.Localization.Tests (2)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
Microsoft.Extensions.ObjectPool.Tests (5)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (8)
Microsoft.Extensions.Validation.Tests (5)
Microsoft.Extensions.WebEncoders.Tests (9)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.JSInterop.Tests (18)
Microsoft.Net.Http.Headers.Tests (19)
Mvc.Analyzers.Test (7)
Mvc.Api.Analyzers.Test (7)
Shared.Tests (9)