aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf.Test/Reflection
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-08-07 13:37:21 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-08-08 07:27:58 +0100
commit547d8e8221b8ea7ff7010cbc601f4e5742ff1e51 (patch)
treee0daca67c1ac8c80bd92253f29a6031d7f246a37 /csharp/src/Google.Protobuf.Test/Reflection
parente58cdbd2146bc8e2e2f5bf4bc8a7576f82535ae6 (diff)
Make FieldDescriptor.IsPacked work appropriately.
This is a bit of a grotty hack, as we need to sort of fake proto2 field presence, but with only a proto3 version of the descriptor messages (a bit like oneof detection). Should be okay, but will need to be careful of this if we ever implement proto2.
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/Reflection')
-rw-r--r--csharp/src/Google.Protobuf.Test/Reflection/FieldAccessTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.Test/Reflection/FieldAccessTest.cs b/csharp/src/Google.Protobuf.Test/Reflection/FieldAccessTest.cs
index 6e1d804e..936e41c6 100644
--- a/csharp/src/Google.Protobuf.Test/Reflection/FieldAccessTest.cs
+++ b/csharp/src/Google.Protobuf.Test/Reflection/FieldAccessTest.cs
@@ -213,6 +213,6 @@ namespace Google.Protobuf.Reflection
var descriptor = TestAllTypes.Descriptor;
Assert.Throws<KeyNotFoundException>(() => descriptor.Fields[999999].ToString());
Assert.Throws<KeyNotFoundException>(() => descriptor.Fields["not found"].ToString());
- }
+ }
}
}