1633 references to Equal
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
CscTests.cs (4)
219AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 228AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 238AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4;NS5.NS6;NS7.NS8" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 558AssertEx.Equal("/reportivts", csc.GenerateResponseFileContents());
VbcTests.cs (1)
528AssertEx.Equal("/optionstrict:custom /reportivts", vbc.GenerateResponseFileContents());
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
227AssertEx.Equal("Class1.cs(1,1): warning ID1000:", output.Trim()); 250AssertEx.Equal("", outWriter.ToString()); 3669AssertEx.Equal(""" 3692AssertEx.Equal("""
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
247AssertEx.Equal(expected, test.ToString());
Formatting\RazorLineFormattingOptionsTests.cs (1)
77AssertEx.Equal("""
MoveToNamespace\MoveToNamespaceTests.cs (1)
1440AssertEx.Equal("""
PdbSourceDocument\PdbSourceDocumentTests.cs (3)
700AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName); 729AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName); 758AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (2)
78AssertEx.Equal(expectedTree!.Replace(""" 94AssertEx.Equal(RemoveMessagesInNonSupportedLanguage(expectedDiagnostics).Replace("""
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (1)
54AssertEx.Equal(expected, actual);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (20)
CodeGen\CodeGenFunctionPointersTests.cs (4)
123AssertEx.Equal("delegate* unmanaged[Thiscall, Stdcall]<System.Void modopt(System.Runtime.CompilerServices.CallConvThiscall) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", funcPtr.ToTestDisplayString()); 10810AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>", 10812AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>", 10819AssertEx.Equal("System.Func<delegate* unmanaged<System.Int32, System.Void>>",
CodeGen\CodeGenTupleTest.cs (16)
6086AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]", 6136AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]", 6486AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]", 6506AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]", 6527AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]", 14101AssertEx.Equal("System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, (System.Int32 a, System.Int32 b)>", 16582AssertEx.Equal("System.Int32 (System.Int32, System.Int32)[missing].Item1", 16621AssertEx.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].Item1", 16624AssertEx.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].a", 26825AssertEx.Equal("System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.ValueTuple<System.Int32>[missing]>[missing]", tuple.ToTestDisplayString()); 26878AssertEx.Equal("System.Collections.Generic.IEnumerable<Container<(System.Int32 alice, System.Int32 bob)>[missing]>", 26950AssertEx.Equal(decodingSuccessful 29003AssertEx.Equal("System.ValueTuple<System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, (System.Object, System.Object)>", 29021AssertEx.Equal("System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>", 29035AssertEx.Equal($"System.Object{nullabilityString} System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>.{name}", 29062AssertEx.Equal($"System.Object{nullabilityString} System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>.Item{i + 1}",
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
236AssertEx.Equal(expectedValue, attributeData);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (662)
Attributes\AttributeTests_Assembly.cs (11)
2299AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString()); 2300AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString()); 2301AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString()); 2302AssertEx.Equal("A1(1)", attrs[3].ToString()); 2355AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString()); 2356AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString()); 2357AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString()); 2358AssertEx.Equal("A1(typeof(C1))", attrs[3].ToString()); 2383AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString()); 2384AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString()); 2385AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
Attributes\AttributeTests_Embedded.cs (3)
359AssertEx.Equal("Microsoft.CodeAnalysis.EmbeddedAttribute@<unknown>", embeddedAttributeFile.GetAttributes().Single().AttributeClass.ToTestDisplayString()); 502AssertEx.Equal("Microsoft.CodeAnalysis.EmbeddedAttribute", isReadonlyAttribute.GetAttributes().Single(a => a.AttributeClass.Name == "EmbeddedAttribute").AttributeClass.ToTestDisplayString()); 544AssertEx.Equal("Microsoft.CodeAnalysis.EmbeddedAttribute", isReadonlyAttribute.GetAttributes().Single(a => a.AttributeClass.Name == "EmbeddedAttribute").AttributeClass.ToTestDisplayString());
FirstClassSpanTests.cs (22)
5034AssertEx.Equal("System.Int32[]", aSymbol.Type.ToTestDisplayString()); 5038AssertEx.Equal("System.Int32 System.Span<System.Int32>.M(System.Int32 y)", lookupResult.Single().ToTestDisplayString()); 8906AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8938AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8970AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8985AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 9017AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9049AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 9064AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9079AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9111AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9130AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure)); 9149AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure)); 9182AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 9197AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9212AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9227AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9276AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9308AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 9323AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9338AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9370AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
OverloadResolutionPriorityTests.cs (12)
762AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[0]).Symbol!.ToTestDisplayString()); 763AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[1]).Symbol!.ToTestDisplayString()); 809AssertEx.Equal("Derived..ctor(System.Object o)", model.GetSymbolInfo(creation).Symbol!.ToTestDisplayString()); 907AssertEx.Equal("C..ctor(System.Object o)", attr.AttributeConstructor.ToTestDisplayString()); 996AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", 1001AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", m.GetAttributes().First().AttributeConstructor.ToTestDisplayString()); 1100AssertEx.Equal("System.ObsoleteAttribute..ctor(System.String x)", 1143AssertEx.Equal("System.ObsoleteAttribute..ctor(System.String x)", 1573AssertEx.Equal("System.Int32 C.this[System.Object x] { get; set; }", indexer.ToTestDisplayString()); 1579AssertEx.Equal("System.Int32 C.this[System.String x] { get; set; }", indexer.ToTestDisplayString()); 2465AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString()); 2592AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
PartialEventsAndConstructorsTests.cs (5)
562AssertEx.Equal("event System.Action C.E", e1.ToTestDisplayString()); 563AssertEx.Equal("event System.Action C.E", e1.PartialImplementationPart.ToTestDisplayString()); 567AssertEx.Equal("event System.Action C.E", e2.ToTestDisplayString()); 3078AssertEx.Equal("x", indexer.Parameters.Single().Name); 3275AssertEx.Equal(string.Join(", ", expected), actual.ToStrings().Join(", "));
RefStructInterfacesTests.cs (234)
4384AssertEx.Equal("C<T> where T : allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 5100AssertEx.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 5124AssertEx.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 5771AssertEx.Equal("C<T>", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 7580AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 7581AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 7585AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7587AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 7770AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 7771AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 7775AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7777AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 7990AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 7991AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 7995AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7997AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8180AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 8181AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 8185AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8187AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8373AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 8374AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 8378AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8380AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8652AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 8653AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 8657AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8659AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9023AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 9024AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 9025AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9026AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9030AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9031AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9033AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9037AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 9227AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 9228AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 9229AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9230AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9234AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9235AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9237AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9241AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 9591AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 9592AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 9593AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9594AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9598AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9599AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9601AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9815AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 9816AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 9817AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9818AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9822AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9823AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9825AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10024AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 10025AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 10026AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10027AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10031AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10032AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10034AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10251AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 10252AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 10253AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10254AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10258AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10259AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10261AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10634AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 10635AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 10636AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10637AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10641AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10642AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10644AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10648AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 10831AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 10832AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 10833AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10834AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10838AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10839AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10841AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10845AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 11072AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 11073AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 11074AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11075AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11079AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11080AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11082AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11299AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 11300AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 11301AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11302AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11306AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11307AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11309AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11511AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 11512AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 11513AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11514AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11518AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11519AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11521AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11611AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 11612AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 11613AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11618AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11619AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11621AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11706AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 11707AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 11708AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11713AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11714AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11716AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 14263AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 14264AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 14268AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 14270AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 14604AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 14605AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 14609AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 14611AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 14967AssertEx.Equal("new S()", foreachSyntax.Expression.ToString()); 14971AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 14972AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 14976AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 14978AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 15314AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 15315AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 15319AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 15321AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 15662AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 15663AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 15667AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 15669AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 16100AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString()); 16101AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString()); 16105AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 16107AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 16765AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16771AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 16830AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16836AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 16895AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16979AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16985AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 17067AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 17073AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 17257AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 17767AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 17768AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 17772AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 17774AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 17964AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 17965AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 17969AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 17971AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18184AssertEx.Equal("new S()", foreachSyntax.Expression.ToString()); 18188AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 18189AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 18193AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18195AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18384AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 18385AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 18389AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18391AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18585AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 18586AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 18590AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18592AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18869AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString()); 18870AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 18874AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18876AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19204AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 19205AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 19206AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19211AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19212AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19214AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19375AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 19376AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 19377AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19382AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19383AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19385AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19700AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 19701AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 19702AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19707AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19708AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19710AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19868AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString()); 19869AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString()); 19870AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19871AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 19875AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19876AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19878AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 21242AssertEx.Equal("scoped T u", parameter.ToTestDisplayString()); 21252AssertEx.Equal("scoped T u", parameter.ToTestDisplayString()); 21263AssertEx.Equal("scoped T x", p.ToTestDisplayString()); 21307AssertEx.Equal("x = default", declarator.ToString()); 21309AssertEx.Equal("T x", local.ToTestDisplayString()); 21511AssertEx.Equal("params T x", p.ToTestDisplayString()); 21648AssertEx.Equal("params T x", p.ToTestDisplayString()); 21652AssertEx.Equal("params S y", p.ToTestDisplayString()); 21656AssertEx.Equal("params T z", p.ToTestDisplayString()); 21711AssertEx.Equal("params T x", p.ToTestDisplayString()); 21715AssertEx.Equal("params S y", p.ToTestDisplayString()); 21719AssertEx.Equal("params T z", p.ToTestDisplayString()); 22851AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1[] arg)", m.ToTestDisplayString()); 22875AssertEx.Equal("void <>f__AnonymousDelegate0<T1, T2>.Invoke(T1 arg1, params T2[] arg2)", m.ToTestDisplayString()); 22903AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(System.Int32* arg1, params System.Int32[] arg2)", m.ToTestDisplayString()); 22933AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString()); 22964AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString()); 22995AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params T1[] arg3)", m.ToTestDisplayString()); 23026AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[] arg2)", m.ToTestDisplayString()); 23058AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString()); 23089AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString()); 23120AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[][] arg2)", m.ToTestDisplayString()); 23144AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int32> arg)", m.ToTestDisplayString()); 23174AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1[] arg2)", m.ToTestDisplayString()); 23205AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2)", m.ToTestDisplayString()); 23229AssertEx.Equal("void <>A{00000001}<T1, T2>.Invoke(ref T1 arg1, T2 arg2)", m.ToTestDisplayString()); 28947AssertEx.Equal("void ITest29.M21<T1>() where T1 : allows ref struct", m21.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 29227AssertEx.Equal("void TestStruct.TestExtensionMethod<TestStruct>()", extensionMethodSymbol.ReduceExtensionMethod(testStruct, null).ToTestDisplayString());
Semantics\ExtensionOperatorsTests.cs (130)
449AssertEx.Equal("Extensions1." + name + "(S1)", method.ToDisplayString()); 488AssertEx.Equal("Extensions1." + name + "(S1)", method.ToDisplayString()); 520AssertEx.Equal("Extensions1." + WellKnownMemberNames.TrueOperatorName + "(S1)", method.ToDisplayString()); 524AssertEx.Equal("Extensions1." + WellKnownMemberNames.FalseOperatorName + "(S1)", method.ToDisplayString()); 973AssertEx.Equal("I1.operator -(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 974AssertEx.Equal("I3.operator -(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 1041AssertEx.Equal("NS1.Extensions2.extension(I1).operator -(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 1042AssertEx.Equal("NS1.Extensions2.extension(I3).operator -(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 1751AssertEx.Equal("Extensions1.extension(C1).operator checked -(C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 1752AssertEx.Equal("Extensions2.extension(C1).operator -(C1)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 3285AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -(C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 3286AssertEx.Equal("Extensions1.extension<C2>(C2).operator -(C2)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 3343AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator -(C1<C2?>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 3344AssertEx.Equal("Extensions1.extension<C2>(C1<C2>).operator -(C1<C2>)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 3857AssertEx.Equal($$$""" 3899AssertEx.Equal($$$""" 3939AssertEx.Equal($$$""" 3983AssertEx.Equal($$$""" 4227AssertEx.Equal("Extensions2.extension(S2).operator -(S2)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 4228AssertEx.Equal("Extensions1.extension(S2).operator -(S2)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 4539AssertEx.Equal("Extensions1." + name + "(ref S1)", method.ToDisplayString()); 4575AssertEx.Equal("Extensions1." + name + "(S1)", method.ToDisplayString()); 4586AssertEx.Equal("Extensions1." + name + "(S1)", method.ToDisplayString()); 5806AssertEx.Equal("I1.operator --(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 5807AssertEx.Equal("I3.operator --(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 5869AssertEx.Equal("I1.operator --()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 5870AssertEx.Equal("I3.operator --()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 5934AssertEx.Equal("I1.operator --()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 5935AssertEx.Equal("I3.operator --()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 6004AssertEx.Equal("NS1.Extensions2.extension(I1).operator --(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 6005AssertEx.Equal("NS1.Extensions2.extension(I3).operator --(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 6072AssertEx.Equal("NS1.Extensions2.extension(I1).operator --()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 6073AssertEx.Equal("NS1.Extensions2.extension(I3).operator --()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 6146AssertEx.Equal("NS1.Extensions2.extension(I1).operator --()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 6147AssertEx.Equal("NS1.Extensions2.extension(I3).operator --()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 7615AssertEx.Equal("Extensions1.extension(C1).operator checked --(C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 7616AssertEx.Equal("Extensions2.extension(C1).operator --(C1)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 7697AssertEx.Equal("Extensions1.extension(C1).operator checked --()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 7698AssertEx.Equal("Extensions2.extension(C1).operator --()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 8965AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator --(C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 8966AssertEx.Equal("Extensions1.extension<C2>(C2).operator --(C2)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 9023AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator --(C1<C2?>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 9024AssertEx.Equal("Extensions1.extension<C2>(C1<C2>).operator --(C1<C2>)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 9659AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator --()", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 9660AssertEx.Equal("Extensions1.extension<C2>(C2).operator --()", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 9718AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator --()", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 9719AssertEx.Equal("Extensions1.extension<C2>(C1<C2>).operator --()", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 10090AssertEx.Equal($$$""" 10132AssertEx.Equal($$$""" 10174AssertEx.Equal($$$""" 10218AssertEx.Equal($$$""" 10397AssertEx.Equal("Extensions2.extension(ref S2).operator ++()", symbolInfo.CandidateSymbols[0].ToDisplayString()); 10398AssertEx.Equal("Extensions1.extension(ref S2).operator ++()", symbolInfo.CandidateSymbols[1].ToDisplayString()); 10456AssertEx.Equal("Extensions2.extension(S2).operator ++(S2)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 10457AssertEx.Equal("Extensions1.extension(S2).operator ++(S2)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 11190AssertEx.Equal("Extensions1." + name + "(S1, S1)", method.ToDisplayString()); 11237AssertEx.Equal("Extensions1." + WellKnownMemberNames.EqualityOperatorName + "(S1, S1)", method.ToDisplayString()); 11241AssertEx.Equal("Extensions1." + WellKnownMemberNames.InequalityOperatorName + "(S1, S1)", method.ToDisplayString()); 11245AssertEx.Equal("Extensions1." + WellKnownMemberNames.GreaterThanOrEqualOperatorName + "(S1, S1)", method.ToDisplayString()); 11249AssertEx.Equal("Extensions1." + WellKnownMemberNames.LessThanOrEqualOperatorName + "(S1, S1)", method.ToDisplayString()); 11253AssertEx.Equal("Extensions1." + WellKnownMemberNames.GreaterThanOperatorName + "(S1, S1)", method.ToDisplayString()); 11257AssertEx.Equal("Extensions1." + WellKnownMemberNames.LessThanOperatorName + "(S1, S1)", method.ToDisplayString()); 11750AssertEx.Equal("I1.operator -(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 11751AssertEx.Equal("I3.operator -(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 11818AssertEx.Equal("NS1.Extensions2.extension(I1).operator -(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 11819AssertEx.Equal("NS1.Extensions2.extension(I3).operator -(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 13175AssertEx.Equal("Extensions1.extension(C1).operator checked -(C1, C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 13176AssertEx.Equal("Extensions2.extension(C1).operator -(C1, C1)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 14036AssertEx.Equal("Extensions1.extension<int, int>((int, int)).operator " + op[0] + "((int, int), (int, int))", symbolInfo.Symbol.ToDisplayString()); 15089AssertEx.Equal("I1.operator &(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 15090AssertEx.Equal("I3.operator &(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 15214AssertEx.Equal("NS1.Extensions2.extension(I1).operator &(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 15215AssertEx.Equal("NS1.Extensions2.extension(I3).operator &(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 16006AssertEx.Equal("Extensions1.extension<int, int>((int, int)).operator " + op[0] + "((int, int), (int, int))", symbolInfo.Symbol.ToDisplayString()); 16057AssertEx.Equal("Extensions1.extension<int, int>((int, int)).operator " + op[0] + "((int, int), (int, int))", symbolInfo.Symbol.ToDisplayString()); 17162AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -(C2?, C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 17163AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -(C2?, C2?)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 17164AssertEx.Equal("Extensions1.extension<C2>(C2).operator -(C2, C2)", model.GetSymbolInfo(opNodes[2]).Symbol.ToDisplayString()); 17302AssertEx.Equal("Extensions1.extension<C2?, C2>(C1<C2?>).operator -(C1<C2?>, C1<C2>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 17303AssertEx.Equal("Extensions1.extension<C2, C2?>(C1<C2>).operator -(C1<C2>, C1<C2?>)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 17734AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 17735AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 17736AssertEx.Equal("Extensions1.extension<C2>(C2).operator &(C2, C2)", model.GetSymbolInfo(opNodes[2]).Symbol.ToDisplayString()); 17807AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator &(C1<C2?>, C1<C2?>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 17808AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator &(C1<C2?>, C1<C2?>)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 17809AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator &(C1<C2?>, C1<C2?>)", model.GetSymbolInfo(opNodes[2]).Symbol.ToDisplayString()); 17810AssertEx.Equal("Extensions1.extension<C2>(C1<C2>).operator &(C1<C2>, C1<C2>)", model.GetSymbolInfo(opNodes[3]).Symbol.ToDisplayString()); 18270AssertEx.Equal("Extensions1.extension<C2>(C2).operator -(C2, System.Func<C2>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 18320AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 18321AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 18322AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[2]).Symbol.ToDisplayString()); 18323AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[3]).Symbol.ToDisplayString()); 18324AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator &(C2?, C2?)", model.GetSymbolInfo(opNodes[4]).Symbol.ToDisplayString()); 19062AssertEx.Equal("C1.operator " + op + "(C1, C2)", symbolInfo.Symbol.ToDisplayString()); 19246AssertEx.Equal($$$""" 19291AssertEx.Equal($$$""" 19740AssertEx.Equal("Extensions1.extension(S2).operator +(S2, C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 19741AssertEx.Equal("Extensions1.extension(S2).operator +(S2, C2)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 20048AssertEx.Equal("Extensions1." + name + "(ref S1, int)", method.ToDisplayString()); 21294AssertEx.Equal("I1.operator -(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21295AssertEx.Equal("I3.operator -(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 21357AssertEx.Equal("I1.operator -=(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21358AssertEx.Equal("I3.operator -=(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 21422AssertEx.Equal("I1.operator -=(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21423AssertEx.Equal("I3.operator -=(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 21492AssertEx.Equal("NS1.Extensions2.extension(I1).operator -(I1, I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21493AssertEx.Equal("NS1.Extensions2.extension(I3).operator -(I3, I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 21560AssertEx.Equal("NS1.Extensions2.extension(I1).operator -=(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21561AssertEx.Equal("NS1.Extensions2.extension(I3).operator -=(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 21634AssertEx.Equal("NS1.Extensions2.extension(I1).operator -=(I1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 21635AssertEx.Equal("NS1.Extensions2.extension(I3).operator -=(I3)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 23613AssertEx.Equal("Extensions1.extension(C1).operator checked -(C1, C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 23614AssertEx.Equal("Extensions2.extension(C1).operator -(C1, C1)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 23695AssertEx.Equal("Extensions1.extension(C1).operator checked -=(C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 23696AssertEx.Equal("Extensions2.extension(C1).operator -=(C1)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 25673AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -(C2?, C2?)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 25674AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -(C2?, C2?)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 25675AssertEx.Equal("Extensions1.extension<C2>(C2).operator -(C2, C2)", model.GetSymbolInfo(opNodes[2]).Symbol.ToDisplayString()); 25773AssertEx.Equal("Extensions1.extension<C2?, C2>(C1<C2?>).operator -(C1<C2?>, C1<C2>)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 25774AssertEx.Equal("Extensions1.extension<C2, C2?>(C1<C2>).operator -(C1<C2>, C1<C2?>)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 26257AssertEx.Equal("Extensions1.extension<C2?>(C2?).operator -=(int)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 26258AssertEx.Equal("Extensions1.extension<C2>(C2).operator -=(int)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 26312AssertEx.Equal("Extensions1.extension<C2?>(C1<C2?>).operator -=(int)", model.GetSymbolInfo(opNodes[0]).Symbol.ToDisplayString()); 26313AssertEx.Equal("Extensions1.extension<C2>(C1<C2>).operator -=(int)", model.GetSymbolInfo(opNodes[1]).Symbol.ToDisplayString()); 26699AssertEx.Equal($$$""" 26744AssertEx.Equal($$$""" 27183AssertEx.Equal("Extensions1.extension(ref S2).operator +=(C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 27184AssertEx.Equal("Extensions1.extension(ref S2).operator +=(C2)", symbolInfo.CandidateSymbols[1].ToDisplayString()); 27287AssertEx.Equal("Extensions1.extension(S2).operator +(S2, C1)", symbolInfo.CandidateSymbols[0].ToDisplayString()); 27288AssertEx.Equal("Extensions1.extension(S2).operator +(S2, C2)", symbolInfo.CandidateSymbols[1].ToDisplayString());
Semantics\ExtensionTests.cs (39)
4180AssertEx.Equal("System.String?", m.GlobalNamespace.GetMember<MethodSymbol>("Extensions.<>E__0.<Extension>$").Parameters[0].TypeWithAnnotations.ToTestDisplayString()); 4181AssertEx.Equal("System.String?", m.GlobalNamespace.GetMember<MethodSymbol>("Extensions.<>E__1.<Extension>$").Parameters[0].TypeWithAnnotations.ToTestDisplayString()); 4960AssertEx.Equal("void Extensions.<>E__0.<Extension>$(System.Object o)", m.GlobalNamespace.GetMember("Extensions.<>E__0.<Extension>$").ToTestDisplayString()); 4988AssertEx.Equal("System.String Extensions.M(this System.Object o, System.String s)", implementation.ToTestDisplayString()); 5747AssertEx.Equal("System.Runtime.CompilerServices.IteratorStateMachineAttribute(typeof(Extensions.<M>d__1))", implementation.GetAttributes().Single().ToString()); 6148AssertEx.Equal("System.Runtime.CompilerServices.AsyncStateMachineAttribute(typeof(Extensions.<M>d__1))", implementation.GetAttributes().Single().ToString()); 6443AssertEx.Equal("System.String Extensions.M<T, U>(this C<T> o, T t, U u)", implementation.ToTestDisplayString()); 7223AssertEx.Equal("System.Runtime.CompilerServices.IteratorStateMachineAttribute(typeof(Extensions.<M>d__1<,>))", implementation.GetAttributes().Single().ToString()); 7612AssertEx.Equal("System.Runtime.CompilerServices.AsyncStateMachineAttribute(typeof(Extensions.<M>d__1<,>))", implementation.GetAttributes().Single().ToString()); 7918AssertEx.Equal("System.String Extensions.M(System.Object o, System.String s)", implementation.ToTestDisplayString()); 8774AssertEx.Equal("System.Runtime.CompilerServices.IteratorStateMachineAttribute(typeof(Extensions.<M>d__1))", implementation.GetAttributes().Single().ToString()); 9139AssertEx.Equal("System.Runtime.CompilerServices.AsyncStateMachineAttribute(typeof(Extensions.<M>d__1))", implementation.GetAttributes().Single().ToString()); 9424AssertEx.Equal("System.String Extensions.get_P(System.Object o)", implementation.ToTestDisplayString()); 9713AssertEx.Equal("System.String Extensions.get_P()", implementation.ToTestDisplayString()); 29444AssertEx.Equal("void E1.M(this System.Int32 i, System.Int32 j)", implementations[0].ToTestDisplayString()); 29445AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute(0)", implementations[0].GetAttributes().Single().ToString()); 29447AssertEx.Equal("void E1.M(this System.Int32 i, System.Int64 l)", implementations[1].ToTestDisplayString()); 29448AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute(1)", implementations[1].GetAttributes().Single().ToString()); 29676AssertEx.Equal("void E.M(System.Int32 j)", implementations[0].ToTestDisplayString()); 29677AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute(0)", implementations[0].GetAttributes().Single().ToString()); 29679AssertEx.Equal("void E.M(System.Int64 l)", implementations[1].ToTestDisplayString()); 29680AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute(1)", implementations[1].GetAttributes().Single().ToString()); 33178AssertEx.Equal("System.Object o", model.LookupSymbols(position, null, name: null).OfType<IParameterSymbol>().Single().ToTestDisplayString()); 43181AssertEx.Equal(""" 43190AssertEx.Equal(""" 43200AssertEx.Equal(""" 43210AssertEx.Equal(""" 43218AssertEx.Equal(""" 43226AssertEx.Equal(""" 43265AssertEx.Equal(expected, GetDocumentationCommentText(comp)); 43339AssertEx.Equal(""" 43349AssertEx.Equal(""" 43359AssertEx.Equal(""" 43367AssertEx.Equal(""" 43375AssertEx.Equal(""" 43452AssertEx.Equal(""" 43458AssertEx.Equal(""" 43466AssertEx.Equal(""" 43472AssertEx.Equal("""
Semantics\ExtensionTests2.cs (115)
1222AssertEx.Equal("System.Object? E.extension<System.Object?>(System.Object?).P { get; }", model.GetSymbolInfo(propertyAccess1).Symbol.ToTestDisplayString(includeNonNullable: true)); 1225AssertEx.Equal("System.Object! E.extension<System.Object!>(System.Object!).P { get; }", model.GetSymbolInfo(propertyAccess2).Symbol.ToTestDisplayString(includeNonNullable: true)); 1301AssertEx.Equal("C<System.Object?>! E.extension<C<System.Object?>!>(C<System.Object?>!).P { set; }", model.GetSymbolInfo(propertyAccess).Symbol.ToTestDisplayString(includeNonNullable: true)); 1337AssertEx.Equal("System.Object? E.extension<System.Object?>(System.Object?).P { get; }", model.GetSymbolInfo(propertyAccess1).Symbol.ToTestDisplayString(includeNonNullable: true)); 1340AssertEx.Equal("System.Object! E.extension<System.Object!>(System.Object!).P { get; }", model.GetSymbolInfo(propertyAccess2).Symbol.ToTestDisplayString(includeNonNullable: true)); 3766AssertEx.Equal(""" 3776AssertEx.Equal("T:E.<>E__0", e.GetTypeMembers().Single().GetDocumentationCommentId()); 3779AssertEx.Equal(""" 3818AssertEx.Equal(""" 3825AssertEx.Equal("T:E.<>E__0`1", e.GetTypeMembers().Single().GetDocumentationCommentId()); 3873AssertEx.Equal(""" 3910AssertEx.Equal(""" 3953AssertEx.Equal(""" 3994AssertEx.Equal(""" 4029AssertEx.Equal(""" 4065AssertEx.Equal(""" 4098AssertEx.Equal(""" 4134AssertEx.Equal(""" 4163AssertEx.Equal(""" 4196AssertEx.Equal(""" 4229AssertEx.Equal(""" 4258AssertEx.Equal(""" 4290AssertEx.Equal(""" 4319AssertEx.Equal(""" 4349AssertEx.Equal(""" 4380AssertEx.Equal(""" 4417AssertEx.Equal(""" 4450AssertEx.Equal(""" 4479AssertEx.Equal(""" 4508AssertEx.Equal(""" 4538AssertEx.Equal(""" 4574AssertEx.Equal(""" 4601AssertEx.Equal(""" 4636AssertEx.Equal(""" 4671AssertEx.Equal(""" 4714AssertEx.Equal(""" 4749AssertEx.Equal(""" 4781AssertEx.Equal(""" 4844AssertEx.Equal(""" 4998AssertEx.Equal(""" 5034AssertEx.Equal(""" 5071AssertEx.Equal(""" 5108AssertEx.Equal(""" 5222AssertEx.Equal(""" 5294AssertEx.Equal(""" 5351AssertEx.Equal(""" 5499AssertEx.Equal(""" 5641AssertEx.Equal("extension(C1`1/C2`1<System.Int32, System.String>)", extension.ComputeExtensionGroupingRawName()); 5663AssertEx.Equal("extension(C`12<System.Int32, System.Int32, System.Int32, System.Int32, " + 5687AssertEx.Equal("extension(C`1<C`1<System.Int32>>)", extension.ComputeExtensionGroupingRawName()); 5707AssertEx.Equal("extension(System.ValueTuple`2<System.Int32, System.String>)", extension.ComputeExtensionGroupingRawName()); 5727AssertEx.Equal("extension(System.ValueTuple`8<System.Int32, System.Int32, System.Int32, System.Int32, " + 5750AssertEx.Equal("extension(C`13<System.Char, System.String, System.Boolean, System.SByte, " + 5773AssertEx.Equal("extension(System.ValueTuple`2<System.IntPtr, System.UIntPtr>)", extension.ComputeExtensionGroupingRawName()); 5793AssertEx.Equal("extension(System.Nullable`1<System.Int32>)", extension.ComputeExtensionGroupingRawName()); 5813AssertEx.Equal("extension<>(!0)", extension.ComputeExtensionGroupingRawName()); 5834AssertEx.Equal("extension<,,,,,,,,,,,,>(C`13<!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10, !11, !12>)", 5857AssertEx.Equal("extension<>(!0)", extension.ComputeExtensionGroupingRawName()); 5879AssertEx.Equal("extension(System.Object)", extension.ComputeExtensionGroupingRawName()); 5899AssertEx.Equal("extension(System.Object[,][])", extension.ComputeExtensionGroupingRawName()); 5919AssertEx.Equal("extension(System.Object[][,])", extension.ComputeExtensionGroupingRawName()); 5939AssertEx.Equal("extension(System.Object[,])", extension.ComputeExtensionGroupingRawName()); 5958AssertEx.Equal("extension(System.Int32*[])", extension.ComputeExtensionGroupingRawName()); 5977AssertEx.Equal("extension(System.Int32**[])", extension.ComputeExtensionGroupingRawName()); 5996AssertEx.Equal("extension(method void *(System.Int32, System.String)[])", extension.ComputeExtensionGroupingRawName()); 6033AssertEx.Equal("extension()", extension.ComputeExtensionGroupingRawName()); 6052AssertEx.Equal("extension<class>(!0)", extension.ComputeExtensionGroupingRawName()); 6071AssertEx.Equal("extension<valuetype .ctor (System.ValueType)>(!0)", extension.ComputeExtensionGroupingRawName()); 6090AssertEx.Equal("extension<class .ctor>(!0)", extension.ComputeExtensionGroupingRawName()); 6115AssertEx.Equal("extension<class .ctor>(!0)", extension.ComputeExtensionGroupingRawName()); 6134AssertEx.Equal("extension<valuetype .ctor (System.ValueType modreq(System.Runtime.InteropServices.UnmanagedType))>(!0)", extension.ComputeExtensionGroupingRawName()); 6174AssertEx.Equal("extension<>(!0)", extension.ComputeExtensionGroupingRawName()); 6196AssertEx.Equal("extension<valuetype .ctor (System.ValueType modreq(System.Runtime.InteropServices.UnmanagedType))>(!0)", extension.ComputeExtensionGroupingRawName()); 6217AssertEx.Equal("extension<valuetype .ctor (I, System.ValueType modreq(System.Runtime.InteropServices.UnmanagedType))>(!0)", 6239AssertEx.Equal("extension<(I)>(!0)", extension.ComputeExtensionGroupingRawName()); 6261AssertEx.Equal("extension<(I1, I2)>(!0)", extension.ComputeExtensionGroupingRawName()); 6283AssertEx.Equal("extension<(I1, I2)>(!0)", extension.ComputeExtensionGroupingRawName()); 6306AssertEx.Equal("extension<(C, I1, I2)>(!0)", extension.ComputeExtensionGroupingRawName()); 6327AssertEx.Equal("extension<valuetype .ctor (I, System.ValueType)>(!0)", extension.ComputeExtensionGroupingRawName()); 6346AssertEx.Equal("extension<byreflike>(!0)", extension.ComputeExtensionGroupingRawName()); 6380AssertEx.Equal("extension<valuetype byreflike .ctor (System.ValueType)>(!0)", extension.ComputeExtensionGroupingRawName()); 6399AssertEx.Equal("extension<byreflike .ctor>(!0)", extension.ComputeExtensionGroupingRawName()); 6418AssertEx.Equal("extension<(!1),>(!0)", extension.ComputeExtensionGroupingRawName()); 6438AssertEx.Equal("extension(method D *(D)[])", extension.ComputeExtensionGroupingRawName()); 6458AssertEx.Equal("extension(method D *(D)[])", extension.ComputeExtensionGroupingRawName()); 6476AssertEx.Equal("extension<>(method !0 *(!0)[])", extension.ComputeExtensionGroupingRawName()); 6496AssertEx.Equal("extension(C`1<C`1<System.Int32>>)", extension.ComputeExtensionGroupingRawName()); 6516AssertEx.Equal("extension(C`1<C`1<System.Int32>>)", extension.ComputeExtensionGroupingRawName()); 6537AssertEx.Equal("extension(ERROR)", extension.ComputeExtensionGroupingRawName()); 6556AssertEx.Equal("extension(method unmanaged void *()[])", extension.ComputeExtensionGroupingRawName()); 6575AssertEx.Equal("extension(method unmanaged cdecl void *()[])", extension.ComputeExtensionGroupingRawName()); 6594AssertEx.Equal("extension(method unmanaged stdcall void *()[])", extension.ComputeExtensionGroupingRawName()); 6613AssertEx.Equal("extension(method unmanaged thiscall void *()[])", extension.ComputeExtensionGroupingRawName()); 6632AssertEx.Equal("extension(method unmanaged fastcall void *()[])", extension.ComputeExtensionGroupingRawName()); 6651AssertEx.Equal("extension(method unmanaged void modopt(System.Runtime.CompilerServices.CallConvSuppressGCTransition) *()[])", extension.ComputeExtensionGroupingRawName()); 6673AssertEx.Equal("extension(method unmanaged void modopt(System.Runtime.CompilerServices.CallConvVectorcall) *()[])", extension.ComputeExtensionGroupingRawName()); 6692AssertEx.Equal("extension(method unmanaged void modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvThiscall) *()[])", 6712AssertEx.Equal("extension(method unmanaged void modopt(System.Runtime.CompilerServices.CallConvThiscall) modopt(System.Runtime.CompilerServices.CallConvStdcall) *()[])", 6732AssertEx.Equal("extension(method unmanaged void modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvSuppressGCTransition) *()[])", 6752AssertEx.Equal("extension(method System.Int64& *(System.Int32&)[])", extension.ComputeExtensionGroupingRawName()); 6786AssertEx.Equal("extension(method System.Int64& modreq(System.Runtime.InteropServices.InAttribute) *(System.Int32& modopt(System.Runtime.CompilerServices.RequiresLocationAttribute))[])", 6821AssertEx.Equal("extension(method void *(System.Int32& modreq(System.Runtime.InteropServices.InAttribute))[])", 6856AssertEx.Equal("extension(method void *(System.Int32& modreq(System.Runtime.InteropServices.OutAttribute))[])", 6893AssertEx.Equal("extension(method System.Object *(System.Object)[])", extension.ComputeExtensionGroupingRawName()); 6914AssertEx.Equal("extension(method System.Object *(System.Object)[])", extension.ComputeExtensionGroupingRawName()); 6933AssertEx.Equal("extension(method unmanaged System.Int32& modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvSuppressGCTransition) modreq(System.Runtime.InteropServices.InAttribute) *()[])", 6970AssertEx.Equal("extension(!T)", extension.ComputeExtensionGroupingRawName()); 6991AssertEx.Equal("extension<>(!T0)", extension.ComputeExtensionGroupingRawName()); 7018AssertEx.Equal("extension<>(!0)", nestedExtension.ComputeExtensionGroupingRawName()); 7042AssertEx.Equal("extension(method System.Int32& *(System.Int32&)[])", extension.ComputeExtensionGroupingRawName()); 7061AssertEx.Equal("extension(System.ValueTuple`2<System.Object, System.Object>)", extension.ComputeExtensionGroupingRawName()); 7083AssertEx.Equal("extension(System.Object)", extension.ComputeExtensionGroupingRawName()); 7105AssertEx.Equal("extension<>(!0)", extension.ComputeExtensionGroupingRawName()); 7127AssertEx.Equal("extension<>(!0)", extension.ComputeExtensionGroupingRawName()); 7182AssertEx.Equal("extension(method 'void' *('void')[])", extension.ComputeExtensionGroupingRawName());
Semantics\InlineArrayTests.cs (2)
14641AssertEx.Equal("System.Span<TElement> <PrivateImplementationDetails>.InlineArrayAsSpan<TBuffer, TElement>(ref TBuffer buffer, System.Int32 length)", 14691AssertEx.Equal("System.ReadOnlySpan<TElement> <PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<TBuffer, TElement>(in TBuffer buffer, System.Int32 length)",
Semantics\ParamsCollectionTests.cs (33)
2744AssertEx.Equal("void Program.<>c.<Main>b__0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString()); 2758AssertEx.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString()); 2792AssertEx.Equal("params System.Int64[] x", parameter.ToTestDisplayString()); 2800AssertEx.Equal("void Program.<>c.<Main>b__0_0(System.Int64[] x)", l1.ToTestDisplayString()); 2946AssertEx.Equal("void Program.<Main>g__local|0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString()); 2956AssertEx.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString()); 2987AssertEx.Equal("params System.Int64[] x", parameter.ToTestDisplayString()); 2995AssertEx.Equal("void Program.<Main>g__local|0_0(System.Int64[] x)", l1.ToTestDisplayString()); 4341AssertEx.Equal("System.Collections.Generic.IEnumerable<System.Int64> e1", parameter.ToTestDisplayString()); 4347AssertEx.Equal("System.Int64[] e2", parameter.ToTestDisplayString()); 4467AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString()); 4471AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString()); 4529AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString()); 4533AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString()); 4539AssertEx.Equal("void Program.<>c.<Main>b__0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString()); 4543AssertEx.Equal("void Program.<>c.<Main>b__0_1(System.Int64[] a)", l2.ToTestDisplayString()); 4625AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod.ToTestDisplayString()); 4626AssertEx.Equal("void <>f__AnonymousDelegate1.Invoke(params System.Collections.Generic.List<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1").DelegateInvokeMethod.ToTestDisplayString()); 4627AssertEx.Equal("void <>f__AnonymousDelegate2<T1>.Invoke(params T1[] arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate2`1").DelegateInvokeMethod.ToTestDisplayString()); 4682AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString()); 4686AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString()); 4692AssertEx.Equal("void Program.<Main>g__Test1|0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString()); 4696AssertEx.Equal("void Program.<Main>g__Test2|0_1(System.Int64[] a)", l2.ToTestDisplayString()); 4816AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1 arg)", delegateInvokeMethod.ToTestDisplayString()); 10404AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10405AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10418AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10419AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10769AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10770AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10783AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10784AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 12822AssertEx.Equal(adjustedMemberDisplay, member.ToTestDisplayString());
Semantics\PatternMatchingTestBase.cs (1)
469AssertEx.Equal(expectedDecisionDag, decisionDag.Dump());
Semantics\PatternMatchingTests4.cs (5)
4021AssertEx.Equal( 4090AssertEx.Equal( 4163AssertEx.Equal( 4235AssertEx.Equal( 4279AssertEx.Equal(
Semantics\PrimaryConstructorTests.cs (2)
6835AssertEx.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString()); 19790AssertEx.Equal("System.Int32 C.this[System.Int32 i] { get; }", info.Symbol.ToTestDisplayString());
Semantics\RecordTests.cs (12)
28258AssertEx.Equal( 28410AssertEx.Equal( 28702AssertEx.Equal( 28749AssertEx.Equal( 28797AssertEx.Equal( 28845AssertEx.Equal( 28897AssertEx.Equal( 28948AssertEx.Equal( 29006AssertEx.Equal( 29113AssertEx.Equal( 29164AssertEx.Equal( 30478AssertEx.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString());
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (36)
5378AssertEx.Equal("void C1.op_Decrement()", decrement.ToTestDisplayString()); 5903AssertEx.Equal("C1.op_IncrementAssignment()", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 5990AssertEx.Equal("C1.operator ++()", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 6134AssertEx.Equal("C1.operator " + op + @"()", actualSymbol.ToDisplayString()); 6209AssertEx.Equal("C1.operator " + op + @"(C1)", actualSymbol.ToDisplayString()); 6243AssertEx.Equal("C1.operator " + op + @"(C1)", actualSymbol.ToDisplayString()); 6277AssertEx.Equal("C1.operator " + op + @"(C1)", actualSymbol.ToDisplayString()); 6311AssertEx.Equal("C1.operator " + op + @"(C1)", actualSymbol.ToDisplayString()); 6475AssertEx.Equal("C1.operator " + op + @"()", actualSymbol.ToDisplayString()); 6511AssertEx.Equal("C1.operator checked " + op + @"()", actualSymbol.ToDisplayString()); 6588AssertEx.Equal("C1.operator checked " + op + @"(C1)", actualSymbol.ToDisplayString()); 6625AssertEx.Equal("C1.operator checked " + op + @"(C1)", actualSymbol.ToDisplayString()); 6662AssertEx.Equal("C1.operator checked " + op + @"(C1)", actualSymbol.ToDisplayString()); 6698AssertEx.Equal("C1.operator checked " + op + @"(C1)", actualSymbol.ToDisplayString()); 6867AssertEx.Equal("C1.operator checked " + op + @"()", actualSymbol.ToDisplayString()); 7436AssertEx.Equal(display, m.ToDisplayString()); 7681AssertEx.Equal("void modopt(System.Int64) C2.op_IncrementAssignment()", m.GlobalNamespace.GetMember("C2.op_IncrementAssignment").ToTestDisplayString()); 16870AssertEx.Equal("void C1.op_AdditionAssignment(System.Int32 x)", method.ToTestDisplayString()); 17559AssertEx.Equal("C1.op_AdditionAssignment(int)", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 17646AssertEx.Equal("C1.operator +=(int)", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 17833AssertEx.Equal("C1.operator " + op + @"(int)", actualSymbol.ToDisplayString()); 17877AssertEx.Equal("C1.operator " + op + @"(int)", ambiguityWinner.ToDisplayString()); 17879AssertEx.Equal("C1.operator " + op + @"(int)", actualSymbols[0].ToDisplayString()); 17880AssertEx.Equal("C1.operator " + op + @"(long)", actualSymbols[1].ToDisplayString()); 17914AssertEx.Equal("C1.operator " + op + @"(int)", actualSymbol.ToDisplayString()); 18034AssertEx.Equal("C1." + CompoundAssignmentOperatorName(op, isChecked: false) + @"(int, long)", actualSymbol.ToDisplayString()); 18068AssertEx.Equal("C1.operator " + op + @"(int)", actualSymbol.ToDisplayString()); 18148AssertEx.Equal("C1.operator checked " + op + @"(int)", actualSymbol.ToDisplayString()); 18238AssertEx.Equal("C1.operator checked " + op + @"(int)", ambiguityWinner.ToDisplayString()); 18240AssertEx.Equal("C1.operator checked " + op + @"(int)", actualSymbols[0].ToDisplayString()); 18241AssertEx.Equal("C1.operator checked " + op + @"(long)", actualSymbols[1].ToDisplayString()); 18277AssertEx.Equal("C1.operator checked " + op + @"(int)", actualSymbol.ToDisplayString()); 18403AssertEx.Equal("C1." + CompoundAssignmentOperatorName(op, isChecked: true) + @"(int, long)", actualSymbol.ToDisplayString()); 18438AssertEx.Equal("C1.operator checked " + op + @"(int)", actualSymbol.ToDisplayString()); 19776AssertEx.Equal("void modopt(System.Int64) C2.op_AdditionAssignment(System.Int32 y)", m.GlobalNamespace.GetMember("C2.op_AdditionAssignment").ToTestDisplayString()); 19838AssertEx.Equal("void C2.op_AdditionAssignment(System.Int32 modopt(System.Int64) y)", m.GlobalNamespace.GetMember("C2.op_AdditionAssignment").ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
334AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage); 337AssertEx.Equal($"CSharpAssembly1: [179..179) 'F(x + 1);': InsufficientExecutionStackException: '{expectedMessage}'", Inspect(exception, query)); 403AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage); 406AssertEx.Equal($"CSharpAssembly1: [190..190) 'var x = s.ToString();': NullReferenceException: '{expectedMessage}'", Inspect(exception, query));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (753)
Semantics\DynamicTests.cs (591)
4982AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 4986AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString()); 4988AssertEx.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 4990AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 4991AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 4994AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5063AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5106AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5110AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString()); 5112AssertEx.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5114AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5115AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5118AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5186AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5229AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5233AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString()); 5235AssertEx.Equal("dynamic I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5237AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5238AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5241AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5310AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5347AssertEx.Equal(@"new C().Test(""name"", d)", call.ToString()); 5388AssertEx.Equal(@"Test(name: ""name"", d)", call.ToString()); 5390AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5392AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5393AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5432AssertEx.Equal(@"Test(&name, d)", call.ToString()); 5434AssertEx.Equal("System.Int32 C.Test(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5436AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5437AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5476AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 5478AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString()); 5480AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5481AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5484AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5520AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 5522AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString()); 5524AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5525AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5528AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5697AssertEx.Equal(@"i1(""name"", value)", call.ToString()); 5699AssertEx.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5701AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5702AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5705AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5738AssertEx.Equal(@"Test(name: ""name"", d)", call.ToString()); 5740AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5742AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5743AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5783AssertEx.Equal(@"Test(&name, d)", call.ToString()); 5785AssertEx.Equal("System.Int32 C.D.Invoke(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 5787AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5788AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5828AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 5830AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString()); 5832AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5833AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5836AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 5873AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 5875AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString()); 5877AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 5878AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 5881AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6028AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6033AssertEx.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6035AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6036AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6039AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6108AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6151AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6156AssertEx.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6158AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6159AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6162AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6231AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6271AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6276AssertEx.Equal("dynamic I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6278AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6279AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6282AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6351AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6384AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6386AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6387AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6390AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6426AssertEx.Equal("System.Int32 C.this[System.String* name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6428AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6429AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6473AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6475AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6476AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6517AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6519AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6520AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6562AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6564AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6565AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6573AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6574AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6616AssertEx.Equal("System.Int32* C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 6618AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6619AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6677AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6682AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 6684AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6685AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6692AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6693AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6696AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 6697AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 6698AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6702AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 6703AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 6740AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 6786AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6791AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 6793AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6794AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6801AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6802AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6805AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 6806AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 6807AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6811AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 6812AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 6849AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 6896AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6901AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 6903AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6904AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6911AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6912AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6915AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 6916AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 6917AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 6921AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 6922AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 6960AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 6998AssertEx.Equal("System.IO.Stream C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7000AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7001AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7008AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7009AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7012AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7013AssertEx.Equal("System.Object", operation.Value.Type.ToTestDisplayString()); 7014AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7018AssertEx.Equal("System.Object", typeInfo.Type.ToTestDisplayString()); 7019AssertEx.Equal("System.Object", typeInfo.ConvertedType.ToTestDisplayString()); 7065AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7070AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 7072AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7073AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7080AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7081AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7085AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 7086AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 7122AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 7168AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7173AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7175AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7176AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7183AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7184AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7186AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString()); 7189AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7190AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 7191AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7196AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 7197AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 7234AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7281AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7286AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7288AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7289AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7296AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7297AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7299AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString()); 7302AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7303AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 7304AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7309AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 7310AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 7350AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7397AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7402AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7404AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7405AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7412AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7413AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7415AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, dynamic right)", symbolInfo.Symbol.ToTestDisplayString()); 7418AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7419AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 7420AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7425AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7426AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7467AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7510AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7515AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7517AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7518AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7525AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7527AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7529AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, C2 right)", symbolInfo.Symbol.ToTestDisplayString()); 7532AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7533AssertEx.Equal("C2", operation.Value.Type.ToTestDisplayString()); 7534AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7540AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 7541AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString()); 7587AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7592AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 7594AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7595AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7602AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7603AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7605AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString()); 7609AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 7610AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 7646AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7692AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7697AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7699AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7700AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7707AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7708AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7710AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 7713AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7714AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7752AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7798AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7803AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7805AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7806AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7813AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7814AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7816AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 7819AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7820AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7858AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7901AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7907AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7909AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7910AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7917AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7921AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 7924AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7925AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 7973AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7978AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 7980AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7981AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7988AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 7989AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 7991AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 7994AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 7995AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8033AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8079AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8084AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8086AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8087AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8094AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8095AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8097AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 8100AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8101AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8139AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8184AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8189AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 8191AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8192AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8199AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8200AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8202AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString()); 8205AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8206AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8243AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8289AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8294AssertEx.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8296AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8297AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8304AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8305AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8308AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8309AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8310AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8314AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString()); 8315AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8352AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 8398AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8403AssertEx.Equal("System.Int32? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8405AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8406AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8413AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8414AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8417AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8418AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8419AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8423AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 8424AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8461AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 8507AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8512AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8514AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8515AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8522AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8523AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8526AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8527AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8528AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8532AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString()); 8533AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8570AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 8617AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8622AssertEx.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8624AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8625AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8632AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8633AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8636AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8637AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8638AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8642AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8643AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8681AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString()); 8731AssertEx.Equal("C2? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8733AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8734AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8741AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8742AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8745AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8746AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8747AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8751AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString()); 8752AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8800AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 8802AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8803AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8810AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8811AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8814AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8815AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8816AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8820AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 8821AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8867AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8872AssertEx.Equal("ref System.Int32? C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 8874AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8875AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8882AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8883AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8886AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8887AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8888AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8892AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 8893AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8930AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8931AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8938AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 8939AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 8942AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 8943AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 8944AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 8948AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 8949AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9020AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9021AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9028AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9029AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9032AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 9033AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 9034AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9038AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 9039AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9111AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9112AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9119AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9120AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9123AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 9124AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 9125AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9129AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9130AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9201AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9202AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9209AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9210AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9213AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 9214AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 9215AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9219AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString()); 9220AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9257AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9258AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9265AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9266AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9269AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString()); 9270AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString()); 9271AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9275AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 9276AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9318AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9319AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9326AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9327AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9330AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9439AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9440AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9447AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9448AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9451AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9559AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9560AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9567AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9568AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9571AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9673AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9674AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9681AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9682AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9685AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9784AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9785AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9792AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9793AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9796AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 9895AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9896AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9903AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 9904AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 9907AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 10019AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10024AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 10026AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10027AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10034AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10035AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10039AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10040AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10051AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10052AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10056AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 10057AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10096AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10147AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10152AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 10154AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10155AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10162AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10163AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10167AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10168AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10179AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10180AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10184AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 10185AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10224AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10275AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10280AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 10282AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10283AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10290AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10291AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10295AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10296AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10307AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10308AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10312AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10313AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10352AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10429AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10434AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 10436AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10437AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10444AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10445AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10449AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10450AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10461AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10462AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10466AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 10467AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10504AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10563AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10568AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 10570AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10571AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10578AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10579AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10583AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10584AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10595AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 10596AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString()); 10651AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10711AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10716AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 10718AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10719AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10726AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10727AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 10731AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 10732AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 10743AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 10744AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString()); 10801AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10981AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10986AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 10988AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 10989AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 10996AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString()); 10997AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString()); 11001AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11002AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11013AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 11014AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString()); 11067AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11107AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 11109AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11110AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11114AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11115AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11119AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString()); 11120AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11124AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString()); 11125AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11131AssertEx.Equal("((System.Int32, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString()); 11132AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11136AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11137AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11141AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 11142AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11191AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 11193AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11194AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11198AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11199AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11203AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString()); 11204AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11208AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString()); 11209AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11215AssertEx.Equal("(C2, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11216AssertEx.Equal("(C2, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11220AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString()); 11221AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString()); 11269AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString()); 11271AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11272AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11276AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11277AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11281AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString()); 11282AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString()); 11323AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11327AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString()); 11329AssertEx.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 11331AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11332AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11335AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11376AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11380AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString()); 11382AssertEx.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 11384AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11385AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11388AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11456AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 11458AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString()); 11460AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11461AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11464AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11500AssertEx.Equal(@"i1(""name"", value)", call.ToString()); 11502AssertEx.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString()); 11504AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11505AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11508AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11541AssertEx.Equal(@"Test(""name"", d)", call.ToString()); 11543AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString()); 11545AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11546AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11549AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11590AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11595AssertEx.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 11597AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11598AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11601AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11642AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11647AssertEx.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 11649AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11650AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11653AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString()); 11687AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 11689AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString()); 11690AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString()); 11693AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
Semantics\FunctionPointerTests.cs (14)
907AssertEx.Equal(expectedOriginalType, typeInfo.Type!.ToTestDisplayString()); 908AssertEx.Equal(expectedConvertedType, typeInfo.ConvertedType!.ToTestDisplayString()); 1664AssertEx.Equal("void C.M1<System.String>(delegate*<System.String, System.Void> param1, delegate*<System.String, System.Void> param2)", 1697AssertEx.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object, System.Void>, System.Void> param1, delegate*<delegate*<System.Object, System.Void>, System.Void> param2)", 1730AssertEx.Equal("void C.M1<System.String>(delegate*<delegate*<System.String>, System.Void> param1, delegate*<delegate*<System.String>, System.Void> param2)", 1824AssertEx.Equal("void C.M1<System.Object>(delegate*<System.Object> param1, delegate*<System.Object> param2)", 1857AssertEx.Equal("void C.M1<System.String>(delegate*<delegate*<System.String, System.Void>> param1, delegate*<delegate*<System.String, System.Void>> param2)", 1890AssertEx.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object>> param1, delegate*<delegate*<System.Object>> param2)", 2009AssertEx.Equal("void C<D1, D2, D3, D4, D5, D6>.M1(delegate*<ref modopt(A<D6>) A<D4> modopt(A<D5>), ref modopt(A<T3>) A<D1> modopt(A<D2>)> param)", 2058AssertEx.Equal("void C.M1<D1, D2, D3, D4, D5, D6>(delegate*<ref modopt(A<D6>) A<D4> modopt(A<D5>), ref modopt(A<T3>) A<D1> modopt(A<D2>)> param)", 2089AssertEx.Equal("ptr = M(C.Field)", localSyntax.ToString()); 2092AssertEx.Equal("delegate* unmanaged<System.Int32>", local.Type.ToTestDisplayString()); 2095AssertEx.Equal("delegate* unmanaged<System.Int32>", typeInfo.Type.ToTestDisplayString()); 2127AssertEx.Equal("delegate* unmanaged[Stdcall, Cdecl]<System.Int32 modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvCdecl)>", funcPtrType.ToTestDisplayString());
Semantics\InterceptorsTests.cs (6)
7405AssertEx.Equal("xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz", locationSpecifier.Data); 7406AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax()); 7414AssertEx.Equal("xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz", otherLocation.Data); 7415AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz")]""", otherLocation.GetInterceptsLocationAttributeSyntax()); 7725AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "jB4qgCy292LkEGCwmD+R6FIAAAA=")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax()); 8483AssertEx.Equal("System.Span<System.Int32> D.M(this ref S s)", method.ToTestDisplayString());
Semantics\InterpolationTests.cs (45)
4618AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString()); 6836AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6862AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6894AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6929AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6969AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7004AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7044AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7082AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7122AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7157AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7197AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7232AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7265AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7305AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7345AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7385AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7425AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7460AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7502AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7537AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7579AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7620AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7660AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7728AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7822AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7934AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8000AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8030AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8132AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8274AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8334AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8454AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8692AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8817AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8968AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9079AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9146AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9202AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9318AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9434AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9559AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9820AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9895AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 11953AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\LambdaTests.cs (3)
7009AssertEx.Equal("System.Action", model.GetTypeInfo(action).Type.ToTestDisplayString()); 8436AssertEx.Equal("TResult <>f__AnonymousDelegate0<T1, TResult>.Invoke(params T1[] arg)", lam1.DelegateInvokeMethod.ToTestDisplayString()); 8447AssertEx.Equal("TResult <>f__AnonymousDelegate1<T1, T2, TResult>.Invoke(T1 arg1, params T2[] arg2)", lam3.DelegateInvokeMethod.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (23)
13512AssertEx.Equal("S?[]", model.GetTypeInfo(returnStatement.Expression).Type.ToTestDisplayString()); 138284AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138291AssertEx.Equal("I<T>", interfaces[0].ToTestDisplayString(includeNonNullable: true)); 138293AssertEx.Equal("I<T>", interfaces[1].ToTestDisplayString(includeNonNullable: true)); 138299AssertEx.Equal("I<T>", i.ToTestDisplayString(includeNonNullable: true)); 138328AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138332AssertEx.Equal("I<T, T>", i.ToTestDisplayString(includeNonNullable: true)); 138368AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138372AssertEx.Equal("I<T, System.Object?>", i.ToTestDisplayString(includeNonNullable: true)); 138376AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138380AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true)); 138416AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138420AssertEx.Equal("I<T, System.Object>", i.ToTestDisplayString(includeNonNullable: true)); 138424AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138428AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true)); 138453AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138457AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138483AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138487AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138513AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138517AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138541AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138545AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
Semantics\ObjectAndCollectionInitializerTests.cs (22)
4229AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 4231AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4232AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4235AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString()); 4240AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4241AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4244AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString()); 4245AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 4246AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString()); 4250AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4251AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4283AssertEx.Equal("ref System.Int32 C.P { get; }", symbolInfo.Symbol.ToTestDisplayString()); 4285AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4286AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4289AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString()); 4294AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4295AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4298AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString()); 4299AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 4300AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString()); 4304AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4305AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
Semantics\OperatorTests.cs (1)
3217AssertEx.Equal(expected, results);
Semantics\RawInterpolationTests_Handler.cs (41)
2919AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString()); 5088AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5116AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5153AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5193AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5240AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5280AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5327AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5370AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5417AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5457AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5504AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5544AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5591AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5638AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5685AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5725AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5774AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5814AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5863AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5909AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5956AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 5986AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6112AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6181AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6211AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6445AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6507AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6629AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6869AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6996AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7149AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7262AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7333AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7393AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7511AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7629AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7757AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8029AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8107AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8534AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\RecordStructTests.cs (4)
3289AssertEx.Equal( 3364AssertEx.Equal( 3412AssertEx.Equal( 3463AssertEx.Equal(
Semantics\RefFieldTests.cs (3)
22691AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(ref System.Int32 arg)", m.ToTestDisplayString()); 22693AssertEx.Equal("System.Diagnostics.CodeAnalysis.UnscopedRefAttribute", a); 22736AssertEx.Equal("void <>A{00000001}<T1>.Invoke(ref T1 arg)", m.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (115)
Compilation\CompilationAPITests.cs (16)
2744AssertEx.Equal(display, result); 2762AssertEx.Equal(display, result); 2781AssertEx.Equal("int.operator +(int, int)", result); 2940AssertEx.Equal(display, result); 2952AssertEx.Equal(display, result); 2971AssertEx.Equal("int.operator +(int)", result); 3427AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3452AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3476AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3478AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString()); 3504AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3533AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3534AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString()); 3571AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString()); 3573AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString()); 3574AssertEx.Equal("N.C<T>", types[2].ToTestDisplayString());
DocumentationComments\DocumentationCommentCompilerTests.cs (31)
990AssertEx.Equal(expected, actualA); 1040AssertEx.Equal(expected, actualA); 1091AssertEx.Equal(expected, actualA); 1145AssertEx.Equal(expected, actualA); 1193AssertEx.Equal(expected, actualA); 1249AssertEx.Equal(expected, actualA); 1312AssertEx.Equal(expected, actual); 1375AssertEx.Equal(expected, actual); 1438AssertEx.Equal(expected, actual); 1495AssertEx.Equal(expected, actual); 1577AssertEx.Equal(expected, actualA); 1628AssertEx.Equal(expected, actualA); 1716AssertEx.Equal(expected, actualA); 1768AssertEx.Equal(expected, actualA); 1823AssertEx.Equal(expected, actualA); 1872AssertEx.Equal(expected, actualA); 1929AssertEx.Equal(expected, actualA); 1993AssertEx.Equal(expected, actual); 2057AssertEx.Equal(expected, actual); 2121AssertEx.Equal(expected, actual); 2179AssertEx.Equal(expected, actual); 8713AssertEx.Equal(expected, actual); 8742AssertEx.Equal(expected, actual); 8790AssertEx.Equal(expected, actual); 8834AssertEx.Equal(expected, actual); 8874AssertEx.Equal(expected, actual); 8911AssertEx.Equal(expected, actual); 8942AssertEx.Equal(expected, actual); 8986AssertEx.Equal(expected, actual); 9030AssertEx.Equal(expected, actual); 9077AssertEx.Equal(expected, actual);
SymbolDisplay\SymbolDisplayTests.cs (1)
3744AssertEx.Equal(expectedText, actualParts.ToDisplayString());
Symbols\FunctionPointerTypeSymbolTests.cs (6)
1559AssertEx.Equal(expectedMessage, ptr.EnsureCSharpSymbolOrNull(nameof(ptr)).GetUseSiteDiagnostic().ToString()); 1641AssertEx.Equal($"delegate* unmanaged{expectedText}<System.String>", ptr.ToTestDisplayString()); 1643AssertEx.Equal($"delegate* unmanaged{expectedText}<ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString()); 1656AssertEx.Equal("delegate* unmanaged[Cdecl, Stdcall]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", ptr.ToTestDisplayString()); 1658AssertEx.Equal("delegate* unmanaged[Cdecl, Stdcall]<ref readonly modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall) modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString()); 1661AssertEx.Equal("delegate* unmanaged[Cdecl]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl)>", ptr.ToTestDisplayString());
Symbols\PartialPropertiesTests.cs (4)
1769AssertEx.Equal("System.String C.this[System.String? x] { get; set; }", indexers[0].ToTestDisplayString()); 1770AssertEx.Equal("System.String? C.this[System.String x, System.Boolean ignored] { get; set; }", indexers[1].ToTestDisplayString()); 1771AssertEx.Equal("System.String C.this[System.Boolean ignored] { get; }", indexers[2].ToTestDisplayString()); 1772AssertEx.Equal("System.String? C.this[System.Int32 ignored] { get; }", indexers[3].ToTestDisplayString());
Symbols\RequiredMembersTests.cs (10)
3949AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString()); 3978AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString()); 4008AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString()); 4038AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString()); 6539AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()", 6601AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()", 6887AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString()); 6890AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!); 6933AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString()); 6936AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!);
Symbols\Source\CustomModifierCopyTests.cs (19)
1008AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " + 1011AssertEx.Equal("(object a, object b) I.M((object c, object d) x)", 1018AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " + 1021AssertEx.Equal("(object a, object b) C.M((object c, object d) x)", 1043AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " + 1067AssertEx.Equal("(object, object) C.M((object c, object d) x)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1084AssertEx.Equal("(object a, object b) C.M((object c, object d) x)", classMethod4.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1138AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> I.P { get; set; }", 1140AssertEx.Equal("(object a, object b) I.P", interfaceProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1141AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>", 1144AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> C.I.P { get; set; }", 1146AssertEx.Equal("(object a, object b) C.P", classProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1284AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " + 1287AssertEx.Equal("(object a, object b) Base.M((object c, object d) x)", 1307AssertEx.Equal("(object a, object b) C.M((object c, object d) y)", classMethod1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1335AssertEx.Equal("(object, object) C.M((object c, object d) y)", classMethod2.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1336AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>", 1357AssertEx.Equal("(object a, object b) C.M((object, object) y)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); 1358AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
Symbols\Source\FileModifierTests.cs (16)
221AssertEx.Equal("<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__C", symbol.MetadataName); 271AssertEx.Equal("<file2>F66382B88D8E28FDD21CEADA0DE847F8B00DA1324042DD28F8FFC58C454BD6188__C", symbol.MetadataName); 746AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", c.MetadataName); 753AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", classC.MetadataName); 779AssertEx.Equal(expectedMetadataName, c.MetadataName); 785AssertEx.Equal(expectedMetadataName, expectedSymbol.MetadataName); 810AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", c.MetadataName); 816AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", expectedSymbol.MetadataName); 892AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName); 939AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", member.MetadataName); 974AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C`1", classC.MetadataName); 1004AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName); 1154AssertEx.Equal("<My_File>FA818559F9E8E4AF40425A1819866C71357DE9017B4B7EFE1D34D9F48C0539B6E__C", c.MetadataName); 1214AssertEx.Equal(firstMetadataName, expectedSymbol.MetadataName); 1222AssertEx.Equal(secondMetadataName, expectedSymbol.MetadataName); 4238AssertEx.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", sourceMember.MetadataName);
Symbols\Source\NullablePublicAPITests.cs (10)
4933AssertEx.Equal("void M()", model.GetDeclaredSymbol(localFunction).ToTestDisplayString()); 4965AssertEx.Equal("(System.Object, System.Int32 a)", operation.Type.ToTestDisplayString()); 5008AssertEx.Equal("(System.String a, System.String b)", model.GetTypeInfo(tupleLiteral).Type.ToTestDisplayString(includeNonNullable: false)); 5047AssertEx.Equal("C..ctor(System.Int32 i)", model.GetSymbolInfo(constructor).CandidateSymbols[0].ToTestDisplayString()); 5050AssertEx.Equal("_ = s", assignmentsInLambda[0].ToString()); 5051AssertEx.Equal("_ = s", assignmentsInLambda[2].ToString()); 5052AssertEx.Equal("System.String?", model.GetTypeInfo(assignmentsInLambda[0].Right).Type.ToTestDisplayString(includeNonNullable: true)); 5053AssertEx.Equal("System.String!", model.GetTypeInfo(assignmentsInLambda[2].Right).Type.ToTestDisplayString(includeNonNullable: true)); 5065AssertEx.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true)); 5069AssertEx.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true));
Symbols\Source\UsingAliasTests.cs (1)
276AssertEx.Equal(expected, usingAliasType.ToDisplayString(SymbolDisplayFormat.TestFormat));
Symbols\SymbolExtensionTests.cs (1)
254AssertEx.Equal("System.String C1<System.Int32 modopt(C2<G>)>.Method()", method.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
IncrementalParsing\IncrementalParsingTests.cs (2)
3250AssertEx.Equal(@"System.Console.WriteLine(true) 3278AssertEx.Equal(@"if (false)
LexicalAndXml\SyntaxTokenParserTests.cs (1)
411AssertEx.Equal(expectedText.NormalizeLineEndings(), result.Token.ToFullString());
Parsing\IgnoredDirectiveParsingTests.cs (2)
168AssertEx.Equal("#!xyz", structure.WithContent(xyz).ToFullString()); 169AssertEx.Equal("#!ijk", structure.WithContent(xyz).WithContent(ijk).ToFullString());
Syntax\SyntaxNormalizerTests.cs (1)
3498AssertEx.Equal(expected.NormalizeLineEndings(), actual.NormalizeLineEndings());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
FunctionPointerUtilities.cs (4)
145AssertEx.Equal(expectedSyntax, syntax.ToString()); 157AssertEx.Equal(expectedType, semanticInfo.Type.ToTestDisplayString(includeNonNullable: false)); 166AssertEx.Equal(expectedConvertedType, semanticInfo.ConvertedType.ToTestDisplayString(includeNonNullable: false)); 219AssertEx.Equal(expectedSymbol, semanticInfo.Symbol.ToTestDisplayString(includeNonNullable: false));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (1)
52AssertEx.Equal(expectedText, normalized);
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
64AssertEx.Equal(expected, actual);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
165AssertEx.Equal(expectedCode, actual);
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
161AssertEx.Equal(expectedMarkup, updatedCode);
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
219AssertEx.Equal(expectedTestItem.Signature, signature.Content);
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
55AssertEx.Equal(expected, buffer.CurrentSnapshot.GetText());
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
223AssertEx.Equal($"[{projectId}] Error ENC1001: test.cs(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error")}", Inspect(results.SyntaxError!));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
InlayHint\AbstractInlayHintTests.cs (1)
50AssertEx.Equal(name, matchingInlayHint.Label.First.TrimEnd(':'));
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Services\ExtractRefactoringTests.cs (1)
92AssertEx.Equal(expected, updatedCode);
Microsoft.CodeAnalysis.Test.Utilities (1)
CompilationVerifier.cs (1)
388AssertEx.Equal(expectedOutput, output);
Microsoft.CodeAnalysis.UnitTests (13)
Analyzers\AnalyzerFileReferenceTests.cs (2)
327AssertEx.Equal($""" 356AssertEx.Equal($"""
FileSystem\PathUtilitiesTests.cs (3)
436AssertEx.Equal(output, PathUtilities.CollapseWithForwardSlash(input.AsSpan())); 448AssertEx.Equal(output, PathUtilities.NormalizeDriveLetter(input)); 460AssertEx.Equal(input, PathUtilities.NormalizeDriveLetter(input));
MetadataReferences\AssemblyIdentityTests.cs (1)
350AssertEx.Equal(null, an.CodeBase);
Symbols\SpecialTypeTests.cs (7)
15AssertEx.Equal("0", ((ExtendedSpecialType)SpecialType.None).ToString()); 16AssertEx.Equal("System_Object", ((ExtendedSpecialType)1).ToString()); 17AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.Count).ToString()); 18AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.First).ToString()); 19AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T).ToString()); 20AssertEx.Equal("System_Reflection_MethodInfo", ((ExtendedSpecialType)(InternalSpecialType.NextAvailable - 1)).ToString()); 21AssertEx.Equal("52", ((ExtendedSpecialType)InternalSpecialType.NextAvailable).ToString());
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AssemblyAttributes.vb (11)
2273AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString()) 2274AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString()) 2275AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString()) 2276AssertEx.Equal("A1(1)", attrs(3).ToString()) 2344AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString()) 2345AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString()) 2346AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString()) 2347AssertEx.Equal("A1(GetType(C1))", attrs(3).ToString()) 2379AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString()) 2380AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString()) 2381AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\CompilationAPITests.vb (8)
1750AssertEx.Equal(display, result) 1766AssertEx.Equal(display, result) 1775AssertEx.Equal("Public Shared Operator &(left As String, right As String) As String", result) 1785AssertEx.Equal("Public Shared Operator Like(left As String, right As String) As Boolean", result) 1796AssertEx.Equal(display, result) 1812AssertEx.Equal("Public Shared Operator +(left As Integer, right As Integer) As Integer", result) 1855AssertEx.Equal(display, result) 1899AssertEx.Equal("Public Shared Operator +(value As Integer) As Integer", result)
Semantics\OverloadResolutionPriorityTests.vb (1)
3024AssertEx.Equal("Sub System.ObsoleteAttribute..ctor(x As System.String, [y As System.Boolean = False])",
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolDisplay\SymbolDisplayTests.vb (1)
6216AssertEx.Equal(expectedText, parts.ToDisplayString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
45AssertEx.Equal(fixedExpectations, normalized)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Formatter\FormatterTests.cs (3)
59AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 4, IndentationSize = 4, NewLine = \r\n }", formattedText.ToString()); 100AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = True, TabSize = 5, IndentationSize = 6, NewLine = \r }", formattedText.ToString()); 105AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 1, IndentationSize = 7, NewLine = \n }", formattedText.ToString());
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionServiceTests.cs (2)
677AssertEx.Equal(project2.Name, project2SyncedSolution.Projects.Single().Name); 684AssertEx.Equal(project1.Name, project1SyncedSolution.Projects.Single().Name);