diff options
author | Jie Luo <anandolee@gmail.com> | 2015-04-28 14:23:18 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-04-28 14:23:18 -0700 |
commit | 32ead755d1f97e414f4a50edb7d9f1ebd9cab562 (patch) | |
tree | afab476e3cfed30870493de145ca833c47e48868 /csharp/src/ProtocolBuffers.Test/ReflectionTester.cs | |
parent | b977c3ed63146525064463c33ddfaa96152989ed (diff) | |
parent | 5ca6dd76fb39d7f76297f6a2a95466bbc8d5b691 (diff) | |
download | protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.tar.gz protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.tar.bz2 protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.zip |
Merge pull request #313 from jskeet/csharp
First steps to making the C# runtime work with new codegen
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/ReflectionTester.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers.Test/ReflectionTester.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/ReflectionTester.cs b/csharp/src/ProtocolBuffers.Test/ReflectionTester.cs index 2120ff84..5385d316 100644 --- a/csharp/src/ProtocolBuffers.Test/ReflectionTester.cs +++ b/csharp/src/ProtocolBuffers.Test/ReflectionTester.cs @@ -97,10 +97,8 @@ namespace Google.ProtocolBuffers this.extensionRegistry = extensionRegistry;
this.file = baseDescriptor.File;
- // TODO(jonskeet): We've got 2 dependencies, not 1 - because of the C# options. Hmm.
- // Assert.AreEqual(1, file.Dependencies.Count);
- // TODO(jonskeet): Find dependency by name instead of number?
- this.importFile = file.Dependencies[1];
+ Assert.AreEqual(1, file.Dependencies.Count);
+ this.importFile = file.Dependencies[0];
MessageDescriptor testAllTypes;
if (baseDescriptor.Name == "TestAllTypes")
|