aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test/GeneratedMessageTest.cs
Commit message (Collapse)AuthorAgeFilesLines
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-171-760/+0
| | | | We'll see what I've missed when CI fails...
* Generate the well-known types in C#Jon Skeet2015-07-141-10/+12
| | | | | | | | | | This involves: - Specifying a namespace in each proto (including ones we'd previously missed) - Updating the generation script - Changing codegen to implement IReflectedMessage.Fields explicitly (a good thing anyway) - Changing reflection tests to take account of the explicit interface implementation Non-generated code in this commit; generated code to follow
* Oneof reflection support. (Generated code changes in next commit.)Jon Skeet2015-07-101-0/+20
|
* Knock-on effects of moving GetSampleMessage.Jon Skeet2015-07-091-8/+8
|
* Implement reflection properly for fields.Jon Skeet2015-07-091-1/+140
| | | | | | | | | | | | | - FieldAccessorTable is now non-generic - We don't have a static field per message type in the umbrella class. (Message descriptors are accessed via the file descriptor.) - Removed the "descriptor assigner" complication from the descriptor fixup; without extensions, we don't need it - MapField implements IDictionary (more tests would be good...) - RepeatedField implements IList (more tests would be good) - Use expression trees to build accessors. (Will need to test this on various platforms... probably need a fallback strategy just using reflection directly.) - Added FieldDescriptor.IsMap - Added tests for reflection with generated messages Changes to generated code coming in next commit.
* Minor fix-ups as suggested in PR #560.Jon Skeet2015-07-091-55/+0
| | | | | - Added new line at the end of SampleEnum - Moved GeneratedMessageTest.GetSampleMessage to a new class, SampleMessages, and renamed it to CreateFullTestAllTypes.
* Fix copyright lines for all C# code.Jon Skeet2015-06-301-1/+33
| | | | | | Everything should now be consistent - the only difference between files is the year (aside from generated files). Fixes issue #531.
* Tidying up and extra tests.Jon Skeet2015-06-301-0/+133
| | | | This is mostly just making things internal instead of public, removing and reordering a bunch of code in CodedInputStream/CodedOutputStream, and generally tidying up.
* Tweaks and more tests for mapsJon Skeet2015-06-261-21/+161
| | | | | | | | | | | | | | | - Change the default message hash code to 1 to be consistent with other code - Change the empty list/map hash code to 0 as "empty map" is equivalent to "no map" - Removed map fields from unittest_proto3.proto - Created map_unittest_proto3.proto which is like map_unittest.proto but proto3-only - Fixed factory methods in FieldCodec highlighted by using all field types :) - Added tests for map serialization: - Extra fields within entries - Entries with value then key - Non-contiguous entries for the same map - Multiple entries for the same key Changes to generated code coming in next commit
* More map tests, and various production code improvements.Jon Skeet2015-06-251-0/+9
| | | | Generated code in next commit.
* First pass at map support.Jon Skeet2015-06-251-0/+61
| | | | More tests required. Generated code in next commit.
* Implement freezing for messages and repeated fields.Jon Skeet2015-06-241-1/+19
| | | | Fixes issue #523.
* Implement Clone.Jon Skeet2015-06-231-8/+116
| | | | Fixes issue #527.
* First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Jon Skeet2015-06-091-767/+144
| | | | pretty slow right now.
* Add oneof support for C#Jie Luo2015-05-291-0/+262
|
* Convert back to using NUnit, which is now loaded via NuGet.Jon Skeet2015-05-121-90/+90
| | | | | This includes the NUnit test adapter which allows NUnit tests to be run under VS without any extra plugins. Unfortunate the compatibility tests using the abstract test fixture class show up as "external" tests, and aren't well presented - but they do run.
* Change to using xUnit for all unit tests, and fetch that via NuGet.Jon Skeet2015-04-301-126/+108
| | | | This includes fetching the VS unit test runner package, so that tests can be run from Visual Studio's Test Explorer.
* Updated set of unit tests and unit test protos.Jon Skeet2015-04-281-21/+21
| | | | | | | | | | 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
* Imported protobuf-csharp-port into csharp/ treeJan Tattermusch2015-04-161-0/+532