WebBodyFormatMessagePropertyTest.cs 628 B

123456789101112131415161718192021
  1. using System;
  2. using System.ServiceModel;
  3. using System.ServiceModel.Channels;
  4. using System.Text;
  5. using NUnit.Framework;
  6. namespace MonoTests.System.ServiceModel.Channels
  7. {
  8. [TestFixture]
  9. public class WebBodyFormatMessagePropertyTest
  10. {
  11. [Test]
  12. public void Members ()
  13. {
  14. WebBodyFormatMessageProperty p = new WebBodyFormatMessageProperty (WebContentFormat.Json);
  15. Assert.AreEqual ("WebBodyFormatMessageProperty", WebBodyFormatMessageProperty.Name, "#1");
  16. Assert.AreEqual (WebContentFormat.Json, p.Format, "#2");
  17. Assert.AreEqual ("WebBodyFormatMessageProperty: WebContentFormat=Json", p.ToString (), "#3");
  18. }
  19. }
  20. }