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/ProtocolBuffers.Test/TestWriterFormatXml.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/ProtocolBuffers.Test/TestWriterFormatXml.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs b/csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs index 13ea060b..695daa84 100644 --- a/csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs +++ b/csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs @@ -315,7 +315,7 @@ namespace Google.ProtocolBuffers public void TestXmlWithExtensionText()
{
TestXmlMessage message = TestXmlMessage.CreateBuilder()
- .SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionText, " extension text value ! ")
+ .SetExtension(UnittestExtrasXmltest.ExtensionText, " extension text value ! ")
.Build();
StringWriter sw = new StringWriter();
@@ -324,7 +324,7 @@ namespace Google.ProtocolBuffers string xml = sw.ToString();
ExtensionRegistry registry = ExtensionRegistry.CreateInstance();
- UnitTestXmlSerializerTestProtoFile.RegisterAllExtensions(registry);
+ UnittestExtrasXmltest.RegisterAllExtensions(registry);
XmlFormatReader rdr = XmlFormatReader.CreateInstance(xml);
TestXmlMessage copy = rdr.Merge(TestXmlMessage.CreateBuilder(), registry).Build();
@@ -334,7 +334,7 @@ namespace Google.ProtocolBuffers public void TestXmlWithExtensionMessage()
{
TestXmlMessage message = TestXmlMessage.CreateBuilder()
- .SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionMessage,
+ .SetExtension(UnittestExtrasXmltest.ExtensionMessage,
new TestXmlExtension.Builder().SetNumber(42).Build()).Build();
StringWriter sw = new StringWriter();
@@ -343,7 +343,7 @@ namespace Google.ProtocolBuffers string xml = sw.ToString();
ExtensionRegistry registry = ExtensionRegistry.CreateInstance();
- UnitTestXmlSerializerTestProtoFile.RegisterAllExtensions(registry);
+ UnittestExtrasXmltest.RegisterAllExtensions(registry);
XmlFormatReader rdr = XmlFormatReader.CreateInstance(xml);
TestXmlMessage copy = rdr.Merge(TestXmlMessage.CreateBuilder(), registry).Build();
@@ -353,9 +353,9 @@ namespace Google.ProtocolBuffers public void TestXmlWithExtensionArray()
{
TestXmlMessage message = TestXmlMessage.CreateBuilder()
- .AddExtension(UnitTestXmlSerializerTestProtoFile.ExtensionNumber, 100)
- .AddExtension(UnitTestXmlSerializerTestProtoFile.ExtensionNumber, 101)
- .AddExtension(UnitTestXmlSerializerTestProtoFile.ExtensionNumber, 102)
+ .AddExtension(UnittestExtrasXmltest.ExtensionNumber, 100)
+ .AddExtension(UnittestExtrasXmltest.ExtensionNumber, 101)
+ .AddExtension(UnittestExtrasXmltest.ExtensionNumber, 102)
.Build();
StringWriter sw = new StringWriter();
@@ -364,7 +364,7 @@ namespace Google.ProtocolBuffers string xml = sw.ToString();
ExtensionRegistry registry = ExtensionRegistry.CreateInstance();
- UnitTestXmlSerializerTestProtoFile.RegisterAllExtensions(registry);
+ UnittestExtrasXmltest.RegisterAllExtensions(registry);
XmlFormatReader rdr = XmlFormatReader.CreateInstance(xml);
TestXmlMessage copy = rdr.Merge(TestXmlMessage.CreateBuilder(), registry).Build();
@@ -374,7 +374,7 @@ namespace Google.ProtocolBuffers public void TestXmlWithExtensionEnum()
{
TestXmlMessage message = TestXmlMessage.CreateBuilder()
- .SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionEnum, EnumOptions.ONE)
+ .SetExtension(UnittestExtrasXmltest.ExtensionEnum, EnumOptions.ONE)
.Build();
StringWriter sw = new StringWriter();
@@ -383,7 +383,7 @@ namespace Google.ProtocolBuffers string xml = sw.ToString();
ExtensionRegistry registry = ExtensionRegistry.CreateInstance();
- UnitTestXmlSerializerTestProtoFile.RegisterAllExtensions(registry);
+ UnittestExtrasXmltest.RegisterAllExtensions(registry);
XmlFormatReader rdr = XmlFormatReader.CreateInstance(xml);
TestXmlMessage copy = rdr.Merge(TestXmlMessage.CreateBuilder(), registry).Build();
|