From f6a908fcc4c34b39c91d62a830b30b6739c4eaf2 Mon Sep 17 00:00:00 2001 From: vsadov Date: Thu, 7 Sep 2017 10:35:41 -0700 Subject: [PATCH] fix some tests after merge from master --- .../Test/Emit/Attributes/AttributeTests_RefReadOnly.cs | 8 ++++---- .../CSharp/Test/Emit/CodeGen/CodeGenInParametersTests.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs b/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_RefReadOnly.cs index 5f7239f1d3e..274250abcad 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 59f92dfe04c..dc9ef6180ca 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 -- GitLab