Author: atsushi
Date: 2008-02-05 11:05:03 -0500 (Tue, 05 Feb 2008)
New Revision: 94901
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/ChangeLog
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentFormat.cs
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentTypeMapper.cs
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/ChangeLog
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/ChangeLog
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs
Modified:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web_test.dll.sources
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/ChangeLog
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/WebHttpBinding.cs
Log:
2008-02-05 Atsushi Enomoto <[EMAIL PROTECTED]>
* WebHttpBinding.cs : rewrote most of properties to reuse
HttpTransportBindingElement. Implemented couple more of members.
* WebBodyFormatMessageProperty.cs, WebContentTypeMapper.cs,
WebContentFormat.cs, WebMessageEncodingBindingElement.cs :
new files.
* WebHttpBindingTest.cs : new test file.
* WebMessageEncodingBindingElementTest.cs,
WebBodyFormatMessagePropertyTest.cs : new test files.
Modified:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/ChangeLog
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/ChangeLog
2008-02-05 15:59:34 UTC (rev 94900)
+++ trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/ChangeLog
2008-02-05 16:05:03 UTC (rev 94901)
@@ -1,3 +1,8 @@
+2008-02-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * WebHttpBinding.cs : rewrote most of properties to reuse
+ HttpTransportBindingElement. Implemented couple more of members.
+
2007-12-07 Atsushi Enomoto <[EMAIL PROTECTED]>
* WebHttpBinding.cs WebHttpSecurity.cs WebHttpSecurityMode.cs:
Modified:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/WebHttpBinding.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/WebHttpBinding.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel/WebHttpBinding.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -24,72 +24,56 @@
{
}
- int max_buffer_size = 0x40000;
- long max_buffer_pool_size = 0x10000,
- max_received_msg_size = 0x40000;
- Uri proxy_address;
XmlDictionaryReaderQuotas quotas;
WebHttpSecurity security = new WebHttpSecurity ();
- TransferMode transfer_mode;
- bool allow_cookies, bypass_proxy_on_local,
- use_default_web_proxy;
- Encoding write_encoding;
- HostNameComparisonMode cmp_mode;
+ Encoding write_encoding = Encoding.UTF8;
- [MonoTODO]
+ HttpTransportBindingElement t = new HttpTransportBindingElement
();
+
public bool AllowCookies {
- get { return allow_cookies; }
- set { allow_cookies = value; }
+ get { return t.AllowCookies; }
+ set { t.AllowCookies = value; }
}
- [MonoTODO]
public bool BypassProxyOnLocal {
- get { return bypass_proxy_on_local; }
- set { bypass_proxy_on_local = value; }
+ get { return t.BypassProxyOnLocal; }
+ set { t.BypassProxyOnLocal = value; }
}
- [MonoTODO]
public EnvelopeVersion EnvelopeVersion {
- get { return EnvelopeVersion.Soap12; }
+ get { return EnvelopeVersion.None; }
}
- [MonoTODO]
public HostNameComparisonMode HostNameComparisonMode {
- get { return cmp_mode; }
- set { cmp_mode = value; }
+ get { return t.HostNameComparisonMode; }
+ set { t.HostNameComparisonMode = value; }
}
- [MonoTODO]
public long MaxBufferPoolSize {
- get { return max_buffer_pool_size; }
- set { max_buffer_pool_size = value; }
+ get { return t.MaxBufferPoolSize; }
+ set { t.MaxBufferPoolSize = value; }
}
- [MonoTODO]
public int MaxBufferSize {
- get { return max_buffer_size; }
- set { max_buffer_size = value; }
+ get { return t.MaxBufferSize; }
+ set { t.MaxBufferSize = value; }
}
- [MonoTODO]
public long MaxReceivedMessageSize {
- get { return max_received_msg_size; }
- set { max_received_msg_size = value; }
+ get { return t.MaxReceivedMessageSize; }
+ set { t.MaxReceivedMessageSize = value; }
}
- [MonoTODO]
public Uri ProxyAddress {
- get { return proxy_address; }
- set { proxy_address = value; }
+ get { return t.ProxyAddress; }
+ set { t.ProxyAddress = value; }
}
- [MonoTODO]
public XmlDictionaryReaderQuotas ReaderQuotas {
get { return quotas; }
set { quotas = value; }
}
- [MonoTODO]
public override string Scheme {
get { return Uri.UriSchemeHttp; }
}
@@ -99,28 +83,35 @@
get { return security; }
}
- [MonoTODO]
public TransferMode TransferMode {
- get { return transfer_mode; }
- set { transfer_mode = value; }
+ get { return t.TransferMode; }
+ set { t.TransferMode = value; }
}
- [MonoTODO]
public bool UseDefaultWebProxy {
- get { return use_default_web_proxy; }
- set { use_default_web_proxy = value; }
+ get { return t.UseDefaultWebProxy; }
+ set { t.UseDefaultWebProxy = value; }
}
- [MonoTODO]
public Encoding WriteEncoding {
get { return write_encoding; }
- set { write_encoding = value; }
+ set {
+ if (value == null)
+ throw new ArgumentNullException
("value");
+ write_encoding = value;
+ }
}
[MonoTODO]
public override BindingElementCollection CreateBindingElements
()
{
- throw new NotImplementedException ();
+ // FIXME: apply Security
+
+ WebMessageEncodingBindingElement m = new
WebMessageEncodingBindingElement (WriteEncoding);
+ if (ReaderQuotas != null)
+ ReaderQuotas.CopyTo (m.ReaderQuotas);
+
+ return new BindingElementCollection (m, t.Clone ());
}
}
}
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/ChangeLog
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/ChangeLog
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,5 @@
+2008-02-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * WebBodyFormatMessageProperty.cs, WebContentTypeMapper.cs,
+ WebContentFormat.cs, WebMessageEncodingBindingElement.cs :
+ new files.
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,30 @@
+using System;
+
+namespace System.ServiceModel.Channels
+{
+ public sealed class WebBodyFormatMessageProperty : IMessageProperty
+ {
+ WebContentFormat format;
+
+ public WebBodyFormatMessageProperty (WebContentFormat format)
+ {
+ this.format = format;
+ }
+
+ public const string Name = "WebBodyFormatMessageProperty";
+
+ public WebContentFormat Format {
+ get { return format; }
+ }
+
+ public IMessageProperty CreateCopy ()
+ {
+ return (IMessageProperty) MemberwiseClone ();
+ }
+
+ public override string ToString ()
+ {
+ return format.ToString ();
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentFormat.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentFormat.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentFormat.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,10 @@
+namespace System.ServiceModel.Channels
+{
+ public enum WebContentFormat
+ {
+ Default,
+ Xml,
+ Json,
+ Raw,
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentFormat.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentTypeMapper.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentTypeMapper.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentTypeMapper.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,13 @@
+using System;
+
+namespace System.ServiceModel.Channels
+{
+ public abstract class WebContentTypeMapper
+ {
+ protected WebContentTypeMapper ()
+ {
+ }
+
+ public abstract WebContentFormat GetMessageFormatForContentType
(string contentType);
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebContentTypeMapper.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,126 @@
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+using System.Text;
+using System.Xml;
+
+namespace System.ServiceModel.Channels
+{
+ public sealed class WebMessageEncodingBindingElement
+ : MessageEncodingBindingElement, IWsdlExportExtension
+ {
+ Encoding write_encoding;
+ XmlDictionaryReaderQuotas reader_quotas;
+ WebContentTypeMapper content_type_mapper;
+ int max_read_pool_size = 0x10000, max_write_pool_size = 0x10000;
+
+ // Constructors
+
+ public WebMessageEncodingBindingElement ()
+ : this (Encoding.UTF8)
+ {
+ }
+
+ public WebMessageEncodingBindingElement (Encoding writeEncoding)
+ {
+ if (writeEncoding == null)
+ throw new ArgumentNullException
("writeEncoding");
+ WriteEncoding = writeEncoding;
+ reader_quotas = new XmlDictionaryReaderQuotas ();
+ }
+
+ // Properties
+
+ [MonoTODO]
+ public WebContentTypeMapper ContentTypeMapper {
+ get { return content_type_mapper; }
+ set { content_type_mapper = value; }
+ }
+
+ [MonoTODO]
+ public int MaxReadPoolSize {
+ get { return max_read_pool_size; }
+ set { max_read_pool_size = value; }
+ }
+
+ [MonoTODO]
+ public int MaxWritePoolSize {
+ get { return max_write_pool_size; }
+ set { max_write_pool_size = value; }
+ }
+
+ public override MessageVersion MessageVersion {
+ get { return MessageVersion.None; }
+ set {
+ if (value == null)
+ throw new ArgumentNullException
("value");
+ if (!value.Equals (MessageVersion.None))
+ throw new ArgumentException ("Only
MessageVersion.None is supported for WebMessageEncodingBindingElement");
+ }
+ }
+
+ [MonoTODO]
+ public XmlDictionaryReaderQuotas ReaderQuotas {
+ get { return reader_quotas; }
+ }
+
+ [MonoTODO]
+ public Encoding WriteEncoding {
+ get { return write_encoding; }
+ set {
+ if (value == null)
+ throw new ArgumentNullException
("value");
+ write_encoding = value;
+ }
+ }
+
+ // Methods
+
+ [MonoTODO]
+ public override IChannelFactory<TChannel>
BuildChannelFactory<TChannel> (BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool CanBuildChannelListener<TChannel>
(BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override IChannelListener<TChannel>
BuildChannelListener<TChannel> (BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override BindingElement Clone ()
+ {
+ return (WebMessageEncodingBindingElement)
MemberwiseClone ();
+ }
+
+ [MonoTODO]
+ public override MessageEncoderFactory
CreateMessageEncoderFactory ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override T GetProperty<T> (BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ void IWsdlExportExtension.ExportContract (WsdlExporter
exporter, WsdlContractConversionContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ void IWsdlExportExtension.ExportEndpoint (WsdlExporter
exporter, WsdlEndpointConversionContext context)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
2008-02-05 16:05:03 UTC (rev 94901)
@@ -11,6 +11,10 @@
System.Runtime.Serialization.Json/JsonSerializationWriter.cs
System.Runtime.Serialization.Json/JsonWriter.cs
System.Runtime.Serialization.Json/TypeMap.cs
+System.ServiceModel.Channels/WebBodyFormatMessageProperty.cs
+System.ServiceModel.Channels/WebContentFormat.cs
+System.ServiceModel.Channels/WebContentTypeMapper.cs
+System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
System.ServiceModel.Syndication/Atom10FeedFormatter.cs
System.ServiceModel.Syndication/Atom10FeedFormatter_1.cs
System.ServiceModel.Syndication/Atom10ItemFormatter.cs
Modified:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web_test.dll.sources
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web_test.dll.sources
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web_test.dll.sources
2008-02-05 16:05:03 UTC (rev 94901)
@@ -1,6 +1,8 @@
System.Runtime.Serialization.Json/DataContractJsonSerializerTest.cs
System.Runtime.Serialization.Json/JsonReaderTest.cs
System.Runtime.Serialization.Json/JsonWriterTest.cs
+System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
+System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
System.ServiceModel.Syndication/Atom10FeedFormatterTest.cs
System.ServiceModel.Syndication/Atom10ItemFormatterTest.cs
System.ServiceModel.Syndication/Rss20FeedFormatterTest.cs
@@ -12,3 +14,4 @@
System.ServiceModel.Syndication/TextSyndicationContentTest.cs
System.ServiceModel.Syndication/UrlSyndicationContentTest.cs
System.ServiceModel.Syndication/XmlSyndicationContentTest.cs
+System.ServiceModel/WebHttpBindingTest.cs
Added:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/ChangeLog
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/ChangeLog
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,3 @@
+2008-02-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * WebHttpBindingTest.cs : new test file.
Added:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,33 @@
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.Text;
+using NUnit.Framework;
+
+namespace MonoTests.System.ServiceModel
+{
+ [TestFixture]
+ public class WebHttpBindingTest
+ {
+ [Test]
+ public void DefaultPropertyValues ()
+ {
+ WebHttpBinding b = new WebHttpBinding ();
+ Assert.AreEqual (EnvelopeVersion.None,
b.EnvelopeVersion, "#1");
+ Assert.AreEqual ("http", b.Scheme, "#1");
+ Assert.AreEqual (Encoding.UTF8, b.WriteEncoding, "#2");
+ Assert.AreEqual (0x10000, b.MaxBufferSize, "#3");
+ Assert.AreEqual (0x80000, b.MaxBufferPoolSize, "#4");
+ Assert.AreEqual (0x10000, b.MaxReceivedMessageSize,
"#5");
+ }
+
+ [Test]
+ public void CreateBindingElements ()
+ {
+ WebHttpBinding b = new WebHttpBinding ();
+ BindingElementCollection bc = b.CreateBindingElements
();
+ Assert.AreEqual (2, bc.Count, "#1");
+ Assert.AreEqual (typeof
(WebMessageEncodingBindingElement), bc [0].GetType (), "#2");
+ Assert.AreEqual (typeof (HttpTransportBindingElement),
bc [1].GetType (), "#3");
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/ChangeLog
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/ChangeLog
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,4 @@
+2008-02-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * WebMessageEncodingBindingElementTest.cs,
+ WebBodyFormatMessagePropertyTest.cs : new test files.
Added:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,21 @@
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.Text;
+using NUnit.Framework;
+
+namespace MonoTests.System.ServiceModel.Channels
+{
+ [TestFixture]
+ public class WebBodyFormatMessagePropertyTest
+ {
+ [Test]
+ public void Members ()
+ {
+ WebBodyFormatMessageProperty p = new
WebBodyFormatMessageProperty (WebContentFormat.Json);
+ Assert.AreEqual ("WebBodyFormatMessageProperty",
WebBodyFormatMessageProperty.Name, "#1");
+ Assert.AreEqual (WebContentFormat.Json, p.Format, "#2");
+ Assert.AreEqual ("Json", p.ToString (), "#3");
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebBodyFormatMessagePropertyTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
2008-02-05 15:59:34 UTC (rev 94900)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
2008-02-05 16:05:03 UTC (rev 94901)
@@ -0,0 +1,26 @@
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.Text;
+using NUnit.Framework;
+
+namespace MonoTests.System.ServiceModel
+{
+ [TestFixture]
+ public class WebMessageEncodingBindingElementTest
+ {
+ [Test]
+ [ExpectedException (typeof (ArgumentNullException))]
+ public void Constructor ()
+ {
+ new WebMessageEncodingBindingElement (null);
+ }
+
+ [Test]
+ public void DefaultPropertyValues ()
+ {
+ WebMessageEncodingBindingElement be = new
WebMessageEncodingBindingElement ();
+ Assert.AreEqual (Encoding.UTF8, be.WriteEncoding, "#1");
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Channels/WebMessageEncodingBindingElementTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches