From ce66c5f1b99fe36b5b91e8b59cc75ce8a4e9cba5 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Tue, 28 Apr 2015 15:06:59 +0100 Subject: Updated set of unit tests and unit test protos. This commit includes changes to the C#-specific protos, and rebuilt versions of the "stock" protos. The stock protos have been locally updated to have a specific C# namespace, but this is expected to change soon, so hasn't been committed. Four areas are currently not tested: 1) Serialization - we may restore this at some point, possibly optionally. 2) Services - currently nothing is generated for this; will need to see how it interacts with GRPC 3) Fields beginning with _{digit} - see https://github.com/google/protobuf/issues/308 4) Fields with names which conflict with the declaring type in nasty ways - see https://github.com/google/protobuf/issues/309 --- csharp/src/ProtocolBuffers.Test/WireFormatTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'csharp/src/ProtocolBuffers.Test/WireFormatTest.cs') diff --git a/csharp/src/ProtocolBuffers.Test/WireFormatTest.cs b/csharp/src/ProtocolBuffers.Test/WireFormatTest.cs index 2e2c0773..05241965 100644 --- a/csharp/src/ProtocolBuffers.Test/WireFormatTest.cs +++ b/csharp/src/ProtocolBuffers.Test/WireFormatTest.cs @@ -193,8 +193,8 @@ namespace Google.ProtocolBuffers .SetMyInt(1) .SetMyString("foo") .SetMyFloat(1.0F) - .SetExtension(UnitTestProtoFile.MyExtensionInt, 23) - .SetExtension(UnitTestProtoFile.MyExtensionString, "bar") + .SetExtension(Unittest.MyExtensionInt, 23) + .SetExtension(Unittest.MyExtensionString, "bar") .Build().ToByteString(); AssertFieldsInOrder(data); @@ -204,8 +204,8 @@ namespace Google.ProtocolBuffers .SetField(descriptor.FindDescriptor("my_int"), 1L) .SetField(descriptor.FindDescriptor("my_string"), "foo") .SetField(descriptor.FindDescriptor("my_float"), 1.0F) - .SetField(UnitTestProtoFile.MyExtensionInt.Descriptor, 23) - .SetField(UnitTestProtoFile.MyExtensionString.Descriptor, "bar") + .SetField(Unittest.MyExtensionInt.Descriptor, 23) + .SetField(Unittest.MyExtensionString.Descriptor, "bar") .WeakBuild().ToByteString(); AssertFieldsInOrder(dynamic_data); } -- cgit v1.2.3