aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test/IssuesTest.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-06-09 19:30:44 +0100
committerJon Skeet <skeet@pobox.com>2015-06-09 19:30:44 +0100
commite38294a62d7f37c0661273a9a26fda16d557423f (patch)
tree316989251907553408e7b32a12792f496333e075 /csharp/src/ProtocolBuffers.Test/IssuesTest.cs
parentf52426827e4d5e8da7d205af538799740b5199b9 (diff)
downloadprotobuf-e38294a62d7f37c0661273a9a26fda16d557423f.tar.gz
protobuf-e38294a62d7f37c0661273a9a26fda16d557423f.tar.bz2
protobuf-e38294a62d7f37c0661273a9a26fda16d557423f.zip
First pass at the mutable API. Quite a bit more to do - in particular, it's pretty slow right now.
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/IssuesTest.cs')
-rw-r--r--csharp/src/ProtocolBuffers.Test/IssuesTest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/IssuesTest.cs b/csharp/src/ProtocolBuffers.Test/IssuesTest.cs
index ce7e5f09..87960aab 100644
--- a/csharp/src/ProtocolBuffers.Test/IssuesTest.cs
+++ b/csharp/src/ProtocolBuffers.Test/IssuesTest.cs
@@ -34,13 +34,12 @@
#endregion
-
-using Google.ProtocolBuffers.Descriptors;
+using Google.Protobuf.Descriptors;
using UnitTest.Issues.TestProtos;
using NUnit.Framework;
-namespace Google.ProtocolBuffers
+namespace Google.Protobuf
{
/// <summary>
/// Tests for issues which aren't easily compartmentalized into other unit tests.
@@ -51,10 +50,11 @@ namespace Google.ProtocolBuffers
[Test]
public void FieldCalledItem()
{
- ItemField message = new ItemField.Builder { Item = 3 }.Build();
+ ItemField message = new ItemField { Item = 3 };
FieldDescriptor field = ItemField.Descriptor.FindFieldByName("item");
Assert.NotNull(field);
- Assert.AreEqual(3, (int)message[field]);
+ // TODO(jonskeet): Reflection...
+ // Assert.AreEqual(3, (int)message[field]);
}
}
}