|
|
@ -397,6 +397,11 @@ namespace Google.Protobuf.Reflection |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public void DescriptorImportingExtensionsFromOldCodeGen() |
|
|
|
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 |
|
|
|
// 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. |
|
|
|
// in itself, as the old generator didn't provide us the extension information. |
|
|
|
var extensions = TestProtos.OldGenerator.OldExtensions2Reflection.Descriptor.Extensions; |
|
|
|
var extensions = TestProtos.OldGenerator.OldExtensions2Reflection.Descriptor.Extensions; |
|
|
|