diff options
author | Jie Luo <anandolee@gmail.com> | 2015-04-28 16:26:19 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-04-28 16:26:19 -0700 |
commit | 8bae6c09bc8c8be808f0acc9b2ad4c9811493060 (patch) | |
tree | 9819ef25dbe807e4e7f0d6c7dbff7f553b1a8723 /csharp/src/ProtocolBuffersLite.Test/LiteTest.cs | |
parent | 8a3ec53e862cffd310caf434c2c0898782c952f7 (diff) | |
parent | 32ead755d1f97e414f4a50edb7d9f1ebd9cab562 (diff) | |
download | protobuf-8bae6c09bc8c8be808f0acc9b2ad4c9811493060.tar.gz protobuf-8bae6c09bc8c8be808f0acc9b2ad4c9811493060.tar.bz2 protobuf-8bae6c09bc8c8be808f0acc9b2ad4c9811493060.zip |
Merge pull request #1 from google/csharp
Csharp update
Diffstat (limited to 'csharp/src/ProtocolBuffersLite.Test/LiteTest.cs')
-rw-r--r-- | csharp/src/ProtocolBuffersLite.Test/LiteTest.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/csharp/src/ProtocolBuffersLite.Test/LiteTest.cs b/csharp/src/ProtocolBuffersLite.Test/LiteTest.cs index 3561876b..9ef5cc84 100644 --- a/csharp/src/ProtocolBuffersLite.Test/LiteTest.cs +++ b/csharp/src/ProtocolBuffersLite.Test/LiteTest.cs @@ -88,11 +88,11 @@ namespace Google.ProtocolBuffers TestAllExtensionsLite message =
TestAllExtensionsLite.CreateBuilder()
- .SetExtension(UnitTestLiteProtoFile.OptionalInt32ExtensionLite, 123)
- .AddExtension(UnitTestLiteProtoFile.RepeatedStringExtensionLite, "hello")
- .SetExtension(UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite,
+ .SetExtension(UnittestLite.OptionalInt32ExtensionLite, 123)
+ .AddExtension(UnittestLite.RepeatedStringExtensionLite, "hello")
+ .SetExtension(UnittestLite.OptionalNestedEnumExtensionLite,
TestAllTypesLite.Types.NestedEnum.BAZ)
- .SetExtension(UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite,
+ .SetExtension(UnittestLite.OptionalNestedMessageExtensionLite,
TestAllTypesLite.Types.NestedMessage.CreateBuilder().SetBb(7).Build())
.Build();
@@ -102,17 +102,17 @@ namespace Google.ProtocolBuffers TestAllExtensionsLite message2 = message.ToBuilder().Build();
Assert.AreEqual(123, (int) message2.GetExtension(
- UnitTestLiteProtoFile.OptionalInt32ExtensionLite));
+ UnittestLite.OptionalInt32ExtensionLite));
Assert.AreEqual(1, message2.GetExtensionCount(
- UnitTestLiteProtoFile.RepeatedStringExtensionLite));
+ UnittestLite.RepeatedStringExtensionLite));
Assert.AreEqual(1, message2.GetExtension(
- UnitTestLiteProtoFile.RepeatedStringExtensionLite).Count);
+ UnittestLite.RepeatedStringExtensionLite).Count);
Assert.AreEqual("hello", message2.GetExtension(
- UnitTestLiteProtoFile.RepeatedStringExtensionLite, 0));
+ UnittestLite.RepeatedStringExtensionLite, 0));
Assert.AreEqual(TestAllTypesLite.Types.NestedEnum.BAZ, message2.GetExtension(
- UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite));
+ UnittestLite.OptionalNestedEnumExtensionLite));
Assert.AreEqual(7, message2.GetExtension(
- UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite).Bb);
+ UnittestLite.OptionalNestedMessageExtensionLite).Bb);
}
}
}
\ No newline at end of file |