diff options
author | Jon Skeet <jonskeet@google.com> | 2015-08-04 07:10:36 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-08-04 07:10:36 +0100 |
commit | 99a81d297c6ddc5aaab86273b4a98c25bec2e833 (patch) | |
tree | 2f6214d04ab48434dc6b3ce56417884d07977d7b /csharp/src/Google.Protobuf.Test/IssuesTest.cs | |
parent | dc80689af3951d078cb556588eece89dd6860c91 (diff) | |
download | protobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.tar.gz protobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.tar.bz2 protobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.zip |
Fix build warnings around unused variables
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/IssuesTest.cs')
-rw-r--r-- | csharp/src/Google.Protobuf.Test/IssuesTest.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/csharp/src/Google.Protobuf.Test/IssuesTest.cs b/csharp/src/Google.Protobuf.Test/IssuesTest.cs index 47a10c50..a0350035 100644 --- a/csharp/src/Google.Protobuf.Test/IssuesTest.cs +++ b/csharp/src/Google.Protobuf.Test/IssuesTest.cs @@ -49,8 +49,7 @@ namespace Google.Protobuf ItemField message = new ItemField { Item = 3 };
FieldDescriptor field = ItemField.Descriptor.FindFieldByName("item");
Assert.NotNull(field);
- // TODO(jonskeet): Reflection...
- // Assert.AreEqual(3, (int)message[field]);
+ Assert.AreEqual(3, (int)field.Accessor.GetValue(message));
}
[Test]
|