diff --git a/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs b/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs index 5f7239f1d3e83cc067ee4e48f9bf4c2872549772..274250abcad71be29b51f3bf56d5b03c71588a93 100644 --- a/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs +++ b/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs @@ -584,7 +584,7 @@ public void M() var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); CompileAndVerify(text, verify: false, options: options, symbolValidator: module => { - var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner0_0"); + var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner|0_0"); Assert.Equal(RefKind.RefReadOnly, method.RefKind); Assert.True(method.ReturnsByRefReadonly); @@ -612,7 +612,7 @@ public void M() var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); CompileAndVerify(text, options: options, symbolValidator: module => { - var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner0_0").GetParameters().Single(); + var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner|0_0").GetParameters().Single(); Assert.Equal(RefKind.RefReadOnly, parameter.RefKind); AssertReferencedIsReadOnlyAttribute(Accessibility.Internal, parameter.GetAttributes(), module.ContainingAssembly.Name); @@ -639,7 +639,7 @@ public void M() var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); CompileAndVerify(text, verify: false, options: options, symbolValidator: module => { - var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner1_0"); + var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner|1_0"); Assert.Equal(RefKind.RefReadOnly, method.RefKind); Assert.True(method.ReturnsByRefReadonly); @@ -673,7 +673,7 @@ public void M() var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); CompileAndVerify(codeB, verify: false, additionalRefs: new[] { referenceA }, options: options, symbolValidator: module => { - var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner0_0"); + var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("g__Inner|0_0"); Assert.Equal(RefKind.RefReadOnly, method.RefKind); Assert.True(method.ReturnsByRefReadonly); diff --git a/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenInParametersTests.cs b/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenInParametersTests.cs index 59f92dfe04c9b8b9287a0ba79901e7be6d44ed22..dc9ef6180cafe6f752c92d0eec7ec209e37e8873 100644 --- a/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenInParametersTests.cs +++ b/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenInParametersTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; @@ -639,7 +639,7 @@ class Program var comp = CompileAndVerify(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: false); - comp.VerifyIL("Program.g__M10_0(in int, in (int Alice, int Bob))", @" + comp.VerifyIL("Program.g__M1|0_0(in int, in (int Alice, int Bob))", @" { // Code size 12 (0xc) .maxstack 1