From 0b72758dacf68a051e894400950cc2b37b8148eb Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 9 Feb 2023 09:55:04 -0800 Subject: [PATCH] C# test changes to account for internal/external differences. PiperOrigin-RevId: 508402030 --- .../src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs b/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs index 78008acd80..1fb08db5ed 100644 --- a/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs +++ b/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs @@ -397,6 +397,11 @@ namespace Google.Protobuf.Reflection [Test] public void DescriptorImportingExtensionsFromOldCodeGen() { + if (MethodOptions.Descriptor.FullName != "google.protobuf.MethodOptions") + { + Assert.Ignore("Embedded descriptor for OldExtensions expects google.protobuf reflection package."); + } + // The extension collection includes a null extension. There's not a lot we can do about that // in itself, as the old generator didn't provide us the extension information. var extensions = TestProtos.OldGenerator.OldExtensions2Reflection.Descriptor.Extensions;