diff options
author | Jie Luo <anandolee@gmail.com> | 2015-04-28 14:23:18 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-04-28 14:23:18 -0700 |
commit | 32ead755d1f97e414f4a50edb7d9f1ebd9cab562 (patch) | |
tree | afab476e3cfed30870493de145ca833c47e48868 /csharp/src/ProtocolBuffers.Test/TestWriterFormatXml.cs | |
parent | b977c3ed63146525064463c33ddfaa96152989ed (diff) | |
parent | 5ca6dd76fb39d7f76297f6a2a95466bbc8d5b691 (diff) | |
download | protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.tar.gz protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.tar.bz2 protobuf-32ead755d1f97e414f4a50edb7d9f1ebd9cab562.zip |
Merge pull request #313 from jskeet/csharp
First steps to making the C# runtime work with new codegen
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();
|