aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2016-04-20 09:01:58 +0100
committerJon Skeet <skeet@pobox.com>2016-04-20 09:01:58 +0100
commitf265fb8152ae5f7647f876c5539f3ed174673cb2 (patch)
treee30e4012a829a2597b25a32664fd02c79052741a /csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
parent36978c39388e4dedc7d6ee88aa38b81bcee50ced (diff)
parentd90d615f716c6d2f0ede2b2ce23705d4c502ea45 (diff)
downloadprotobuf-f265fb8152ae5f7647f876c5539f3ed174673cb2.tar.gz
protobuf-f265fb8152ae5f7647f876c5539f3ed174673cb2.tar.bz2
protobuf-f265fb8152ae5f7647f876c5539f3ed174673cb2.zip
Merge pull request #1401 from jskeet/enum-casing
Enum casing in C#
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs b/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
index 086a4e98..52d5a676 100644
--- a/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
+++ b/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
@@ -195,7 +195,7 @@ namespace Google.Protobuf.Reflection
Assert.AreEqual(value, enumType.Values[1]);
Assert.AreEqual("FOREIGN_FOO", value.Name);
Assert.AreEqual(4, value.Number);
- Assert.AreEqual((int) ForeignEnum.FOREIGN_FOO, value.Number);
+ Assert.AreEqual((int) ForeignEnum.ForeignFoo, value.Number);
Assert.AreEqual(value, enumType.FindValueByNumber(4));
Assert.Null(enumType.FindValueByName("NO_SUCH_VALUE"));
for (int i = 0; i < enumType.Values.Count; i++)